diff --git a/.github/workflows/haskell.yaml b/.github/workflows/haskell.yaml index cde4e1d086..98f1707d9e 100644 --- a/.github/workflows/haskell.yaml +++ b/.github/workflows/haskell.yaml @@ -14,7 +14,7 @@ on: jobs: build: name: Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index db49657542..89bc60ae37 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -14,7 +14,7 @@ on: jobs: tests-java-1_8: name: Test - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: gradle/gradle-build-action@v3 @@ -22,22 +22,3 @@ jobs: gradle-version: 7.1.1 - name: Run tests run: make test-java - -# sonarqube: -# name: SonarQube -# runs-on: ubuntu-20.04 -# steps: -# - uses: actions/checkout@v4 -# with: -# fetch-depth: 0 -# - uses: gradle/gradle-build-action@v3 -# with: -# gradle-version: 7.1.1 -# - name: Run tests -# run: make test-java -# -# - name: Run sonarqube -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# run: (cd java && gradle sonarqube) diff --git a/.github/workflows/javascript.yaml b/.github/workflows/javascript.yaml index 4a5135aa93..9e38a85c1e 100644 --- a/.github/workflows/javascript.yaml +++ b/.github/workflows/javascript.yaml @@ -17,7 +17,7 @@ on: jobs: coverage: name: Test - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test_validate.yaml b/.github/workflows/test_validate.yaml index c0e513c852..15631c60a6 100644 --- a/.github/workflows/test_validate.yaml +++ b/.github/workflows/test_validate.yaml @@ -8,7 +8,7 @@ on: jobs: test_validation: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Sources uses: actions/checkout@v4 diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 0fa6ec9043..36476ae7d1 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -6,17 +6,17 @@ on: - "spec/**" push: branches: - - 'v*-release' - - 'starling-v*-release' - - 'libsbp-v*-release' + - "v*-release" + - "starling-v*-release" + - "libsbp-v*-release" tags: - - 'v*' + - "v*" paths: - "spec/**" jobs: validation: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Current Spec uses: actions/checkout@v4 diff --git a/HOWTO.md b/HOWTO.md index 41d0687772..6a2cd3b39b 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -1,23 +1,26 @@ -libsbp Development Procedures -============================= +# libsbp Development Procedures -- [Adding and Testing New Messages](#adding-and-testing-new-messages) - * [Generating missing tests](#generating-missing-tests) -- [Message Guidelines](#message-guidelines) -- [Releasing New Versions of the Library](#releasing-new-versions-of-the-library) - * [Using Docker](#using-docker) - * [The Process](#the-process) -- [Installing QuickType](#installing-quicktype) -- [Distributing Rust](#distributing-rust) -- [Distributing Python](#distributing-python) - * [Troubleshooting](#troubleshooting) - + [Error: `!!! No Python wheel (.whl) file found...`](#error--no-python-wheel-whl-file-found) - + [Tox error: `ERROR: FAIL could not package project`](#tox-error-error-fail-could-not-package-project) - + [Tox error: `ERROR: cowardly refusing to delete envdir`](#tox-error-error-cowardly-refusing-to-delete-envdir) -- [Distributing Java](#distributing-java) -- [Contributions](#contributions) +- [libsbp Development Procedures](#libsbp-development-procedures) + - [Adding and Testing New Messages](#adding-and-testing-new-messages) + - [Generating missing tests](#generating-missing-tests) + - [Existing Messages](#existing-messages) + - [New Messages](#new-messages) + - [Message Guidelines](#message-guidelines) + - [Releasing New Versions of the Library](#releasing-new-versions-of-the-library) + - [Using Docker](#using-docker) + - [The Process](#the-process) + - [Installing QuickType](#installing-quicktype) + - [Distributing Rust](#distributing-rust) + - [Distributing Python](#distributing-python) + - [Troubleshooting](#troubleshooting) + - [Error: `!!! No Python wheel (.whl) file found...`](#error--no-python-wheel-whl-file-found) + - [Tox error: `ERROR: FAIL could not package project`](#tox-error-error-fail-could-not-package-project) + - [Tox error: `ERROR: cowardly refusing to delete envdir`](#tox-error-error-cowardly-refusing-to-delete-envdir) + - [Distributing Java](#distributing-java) + - [Generating GPG key for Java](#generating-gpg-key-for-java) + - [Contributions](#contributions) @@ -25,7 +28,7 @@ This document summarizes some practices around contributions to this library. These instructions don't come with a warranty yet, so please feel free to update it to mirror reality. -# Adding and Testing New Messages +## Adding and Testing New Messages Adding new SBP messages is currently a very organic, social process. This is likely to change in the future. @@ -41,8 +44,8 @@ process. This is likely to change in the future. by the corresponding number of new messages. 3. If adding a new "group" of messages (adding a new YAML file to - `spec/yaml/swiftnav/sbp`), add the new message group to - `python/sbp/table.py` and `javascript/sbp/msg.js`. + `spec/yaml/swiftnav/sbp`), add the new message group to + `python/sbp/table.py` and `javascript/sbp/msg.js`. 4. Generate new clients and documentation by running `make all`. Verify that the generated code, which isn't too complicated, @@ -66,14 +69,16 @@ process. This is likely to change in the future. new message, deploy the updated Python client first, and then the C client. We haven't quite decided on the details of this process. -## Generating missing tests +### Generating missing tests + There are some tools that can assist with generating YAML based tests, like the ones already defined in the [`test`](spec/tests/yaml/swiftnav/sbp) directory. These YAML files are used to generate tests in the various languages that libsbp supports, to ensure that serializing and deserializing messages works as intended -### Existing Messages +#### Existing Messages + For messages that are already being sent (eg: by Starling, or by a Piksi), the `generator/missing.py` script can be used to connect to a socket and automatically generate tests for any received messages that do not already have @@ -81,11 +86,12 @@ tests. Usage for `missing`: -```shell +```sh python missing.py --host [HOST] --port [PORT] ``` -### New Messages +#### New Messages + The `json2test` script can be used to automatically generate tests for newly defined messages. The json2test script uses [uv](https://docs.astral.sh/uv/) to manage its dependencies, which can be installed following the instructions on that @@ -106,7 +112,7 @@ form: And then generate a test for using `json2test` with: -```shell +```sh uv -n run json2test.py --input heartbeat.json --output ../spec/tests/yaml/swiftnav/sbp/system/test_MsgHeartbeat.yaml ``` @@ -118,14 +124,14 @@ caching is turned off. Usage for `json2test` -```shell +```sh uv -n run json2test --input [PATH_TO_JSON_IN] --output [PATH_TO_YAML_OUT] ``` -* The `msg_type` can also be provided through a CLI parameter, with `--msg-id +- The `msg_type` can also be provided through a CLI parameter, with `--msg-id [MESSAGE_ID]` -# Message Guidelines +## Message Guidelines Some thoughts to consider when adding a new message: @@ -156,23 +162,27 @@ Some thoughts to consider when adding a new message: contents is fine, as long as the migrating consumers is a well-understood process. -# Releasing New Versions of the Library +## Releasing New Versions of the Library -## Using Docker +### Using Docker It's highly recommended to use the docker container to run the release process, the docker container can be pulled from DockerHub and launched via this command: - docker run -v $PWD:/mnt/workspace -i -t swiftnav/libsbp-build:2025-02-10 +```sh +docker run -v $PWD:/mnt/workspace -i -t swiftnav/libsbp-build:2025-02-10 +``` You can invoke individual stages like so: - docker run -v $PWD:/mnt/workspace -i -t swiftnav/libsbp-build:2025-02-10 \ - /bin/bash -c "make python" +```sh +docker run -v $PWD:/mnt/workspace -i -t swiftnav/libsbp-build:2025-02-10 \ + /bin/bash -c "make python" +``` Check this [link](https://hub.docker.com/r/swiftnav/libsbp-build/tags) for newer tags. -## The Process +### The Process Oh boy, so you've decided to release a new version of libsbp. It's recommended this process is performed using the above docker container. You'll likely want @@ -181,27 +191,27 @@ inside the container (so you don't have to setup git inside the docker container This process describes running `make ` in multiple places. These targets will both regenerate the language bindings and then build and run any test suites. -Skipping tests should not be done by default, but most languages have a "gen" target -available - `make gen-` - which will only regenerate the bindings without +Skipping tests should not be done by default, but most languages have a "gen" target +available - `make gen-` - which will only regenerate the bindings without running tests. This can be used to split or speed up the process should any errors occur and something needs to be repeated. 1. It's easiest to do this on the master branch. Start by tagging the release version: - ```shell + ```sh # Produces most recent tag (e.g., v2.7.5) git describe --abbrev=0 --tags # Increment that value, create a new one (e.g, v2.7.6) git tag -a -m "Version of libsbp." ``` - For library versions (i.e. ``) we try to follow + For library versions (i.e. ``) we try to follow [SemVer](https://semver.org/). For message versioning refer to this [document on versioning](./VERSIONING.md). - + 2. Make sure that the repo is reported as clean, e.g. - ```shell + ```sh git describe --tags --dirty --always ``` @@ -210,7 +220,7 @@ and something needs to be repeated. 3. Run make targets for each language and re-tag. For python: - ```shell + ```sh make python git add python/sbp/RELEASE-VERSION git commit -m 'Release ' @@ -220,22 +230,22 @@ and something needs to be repeated. For Java, jsonschema, and Protobuf (these should not require bumping the git tag, unless the generated files are out of date): - ```shell + ```sh make java jsonschema protobuf ``` For C, Haskell and JavaScript (JavaScript, make needs to be run twice to update the package information): - ```shell + ```sh make c haskell javascript rust git add c/include/libsbp/version.h haskell/sbp.cabal rust/sbp/Cargo.toml git commit --amend -a -m 'Release ' git tag -f -a INCREMENTED_TAG -m "Version INCREMENTED_TAG of libsbp." ``` - For JavaScript, needs to be run twice to update the package information - ```shell + + ```sh make javascript make javascript git add javascript/sbp/RELEASE-VERSION package.json package-lock.json @@ -244,7 +254,7 @@ and something needs to be repeated. For Kaitai - ```shell + ```sh make kaitai git add kaitai/ksy/sbp.ksy git commit --amend -a -m 'Release ' @@ -252,17 +262,17 @@ and something needs to be repeated. 4. Build the docs: - ```shell + ```sh make docs ``` - + Be sure to inspect the [docs](docs/sbp.pdf) manually, as LaTeX sometimes needs to be run multiple - times to compile properly. If something looks off with the docs, run `make docs` repeatedly until + times to compile properly. If something looks off with the docs, run `make docs` repeatedly until the issue is fixed. Then commit the docs and re-tag: - ```shell + ```sh git add docs/sbp.pdf git commit --amend -a -m 'Release ' git tag -f -a INCREMENTED_TAG -m "Version INCREMENTED_TAG of libsbp." @@ -281,7 +291,8 @@ and something needs to be repeated. documentation are consistent. 7. Push the release to GitHub: - ```shell + + ```sh git push origin master ``` @@ -302,7 +313,7 @@ and something needs to be repeated. Again, javascript needs to be built twice to get the correct package versions - ``` + ```sh git commit --allow-empty -m "prep for next release #no_auto_pr" make all make javascript @@ -311,28 +322,28 @@ and something needs to be repeated. git push origin master ``` -9. Distribute release packages. You can attempt to run all releases - with `make dist` -- this will likely not work through... it is - advisable to run each dist target separately. In particular: +10. Distribute release packages. You can attempt to run all releases + with `make dist` -- this will likely not work through... it is + advisable to run each dist target separately. In particular: - - `make dist-javascript` - - `make dist-haskell` - - `make dist-rust` (see section on Rust below) - - `make dist-python` (see section on Python below) - - `make dist-java` (see section on Java below) + - `make dist-javascript` + - `make dist-haskell` + - `make dist-rust` (see section on Rust below) + - `make dist-python` (see section on Python below) + - `make dist-java` (see section on Java below) - You may need credentials on the appropriate package repositories. Ignore the - GPG error in `stack`, the package will get uploaded correctly anyway. If - the release is a Python only change it may be appropriate to just publish to - PyPI with `make dist-python` (see section on Python below) -- we typically - update all other supported languages when we make an official firmware - release. + You may need credentials on the appropriate package repositories. Ignore the + GPG error in `stack`, the package will get uploaded correctly anyway. If + the release is a Python only change it may be appropriate to just publish to + PyPI with `make dist-python` (see section on Python below) -- we typically + update all other supported languages when we make an official firmware + release. -10. Releases are not only never perfect, they never really end. Please +11. Releases are not only never perfect, they never really end. Please pay special attention to any downstream projects or users that may have issues or regressions as a consequence of the release version. -# Installing QuickType +## Installing QuickType For web clients we generate JSON schema definitions of the SBP message. This allows web clients to build "native" objects out of SBP JSON. @@ -343,36 +354,36 @@ In order to run the `make quicktype-*` target you need to install the quicktype tool first. No particular version of this tool is required at the moment. -# Distributing Rust +## Distributing Rust To distribute Rust. Use the `cargo-release` tool: -``` +```sh cargo install cargo-release ``` Once you have logged in to crates.io with `cargo`: -```shell +```sh cargo release --allow-branch HEAD --execute ``` Then rollback any commits that are created: -``` +```sh git reset --hard v ``` -# Distributing Python +## Distributing Python The build of the libsbp wheel can be done via the `libsbp-build` container described above. You must have the correct token set in your environment to publish to PyPI. -## Troubleshooting +### Troubleshooting -### Error: `!!! No Python wheel (.whl) file found...` +#### Error: `!!! No Python wheel (.whl) file found...` This usually means the git checkout you're building from is not in a "clean" state. The build scripts will use the git command `git describe --tag --always --dirty` to generate @@ -380,47 +391,55 @@ a version. Either temporarily force update the tag with `git tag -f vM.N.X` (do push this unintentionally) and/or make sure you're submodule are up-to-date with `git submodule update --init --checkout --recursive`. -### Tox error: `ERROR: FAIL could not package project` +#### Tox error: `ERROR: FAIL could not package project` Tox needs to be run with the Python it was installed with (and apparently must run with Python 2) otherwise you'll get an error similar to: +```sh ERROR: FAIL could not package project - v = InvocationError('/home/ubuntu/dev/libsbp/python/.tox/.tox/bin/python setup.py sdist --formats=zip --dist-dir /home/ubuntu/dev/libsbp/python/.tox/dist', -11) +``` Tox also seems to have issues interacting with conda environments. The easiest way to work around this is to remove conda from your path and make sure tox is installed with a Python2 version of the interpreter. -### Tox error: `ERROR: cowardly refusing to delete envdir` +#### Tox error: `ERROR: cowardly refusing to delete envdir` Tox may fail with the following error: +```sh ERROR: cowardly refusing to delete `envdir` (it does not look like a virtualenv): /home/ubuntu/dev/libsbp/python/.tox/py38-nojit +``` -There's an open tox issue for this: https://github.com/tox-dev/tox/issues/1354 +There's an open tox issue for this: -- the only workaround that resolved this was to downgrade tox: +```sh pip install --upgrade --force-reinstall tox==3.12.1 +``` -# Distributing Java +## Distributing Java To distribute java, ensure you have the correct credentials and prerequisites + - Gradle 7+ - gradle.properties - Sonatype deployer account - Your own GPG key -## Generating GPG key for Java +### Generating GPG key for Java SonaType open source repo requires a GPG key for signatures. Generate GPG key via: -```shell +```sh gpg --gen-key gpg --export-secret-keys >keys.gpg ``` Export your public key -``` + +```sh gpg --export -a > pub.key ``` @@ -428,7 +447,7 @@ Go to [https://keyserver.ubuntu.com/#submitKey](https://keyserver.ubuntu.com/#su To locate the value for `signing.keyId` (needed below) run: -```shell +```sh ❯ gpg --list-keys --keyid-format short (base) /home/ubuntu/.gnupg/pubring.kbx ------------------------------- @@ -442,8 +461,7 @@ The `signing.keyId` value to use from above is `BB59B113`. The `/keys` folder to should map to location where your gpg key will be stored. Then, create `gradle.properties` in the `java` directory as follows: - -```shell +```sh # last 8 digit of gpg key signing.keyId=xxx # password for gpg key @@ -466,7 +484,7 @@ For more info see: -- [Installing sbp2json, json2sbp, json2json and related tools](#installing-sbp2json-json2sbp-json2json-and-related-tools) -- [Building / installing](#building--installing) - * [Using Docker](#using-docker) - + [Fetching the prebuilt image from DockerHub](#fetching-the-prebuilt-image-from-dockerhub) - + [Creating your own image](#creating-your-own-image) - + [Using the docker image](#using-the-docker-image) - * [Installing from package managers](#installing-from-package-managers) - * [Installing development Python versions](#installing-development-python-versions) - * [Adding development version as a pip dependency](#adding-development-version-as-a-pip-dependency) - * [Installing from source](#installing-from-source) -- [SBP Development Procedures](#sbp-development-procedures) -- [SBP Protocol Specification](#sbp-protocol-specification) -- [JSON Schema Definitions](#json-schema-definitions) -- [Kaitai Struct Format Descriptions](#kaitai-struct-format-descriptions) -- [LICENSE](#license) +- [Specification and Bindings for Swift Binary Protocol](#specification-and-bindings-for-swift-binary-protocol) + - [Installing sbp2json, json2sbp, json2json and related tools](#installing-sbp2json-json2sbp-json2json-and-related-tools) + - [Building / installing](#building--installing) + - [Using Docker](#using-docker) + - [Fetching the prebuilt image from DockerHub](#fetching-the-prebuilt-image-from-dockerhub) + - [Creating your own image](#creating-your-own-image) + - [Using the docker image](#using-the-docker-image) + - [Installing from package managers](#installing-from-package-managers) + - [Installing development Python versions](#installing-development-python-versions) + - [Adding development version as a pip dependency](#adding-development-version-as-a-pip-dependency) + - [Installing from source](#installing-from-source) + - [SBP Development Procedures](#sbp-development-procedures) + - [SBP Protocol Specification](#sbp-protocol-specification) + - [JSON Schema Definitions](#json-schema-definitions) + - [Kaitai Struct Format Descriptions](#kaitai-struct-format-descriptions) + - [Notes on python bindings](#notes-on-python-bindings) + - [LICENSE](#license) @@ -32,19 +34,19 @@ messages used with SBP, a compiler for generating message bindings, and client libraries in a variety of languages. This repository is organized into the following directory structure: -* [`docs`](./docs): Protocol documentation and message definitions. -* [`spec`](./spec): Machine readable protocol specification in +- [`docs`](./docs): Protocol documentation and message definitions. +- [`spec`](./spec): Machine readable protocol specification in [YAML](http://en.wikipedia.org/wiki/YAML). -* [`generator`](./generator): Simple, template-based generator for +- [`generator`](./generator): Simple, template-based generator for different languages. -* [`python`](./python): Python client and examples. -* [`c`](./c): C client library and examples. -* [`haskell`](./haskell): Haskell client and examples. -* [`java`](./java): Java client library and examples. -* [`javascript`](./javascript): JavaScript client library and examples. -* [`rust`](./rust): Rust client library and examples. -* [`sbpjson`](./sbpjson): Tools for parsing SBP-JSON. -* [`kaitai`](./kaitai): Kaitai Struct Format Description and generated code. +- [`python`](./python): Python client and examples. +- [`c`](./c): C client library and examples. +- [`haskell`](./haskell): Haskell client and examples. +- [`java`](./java): Java client library and examples. +- [`javascript`](./javascript): JavaScript client library and examples. +- [`rust`](./rust): Rust client library and examples. +- [`sbpjson`](./sbpjson): Tools for parsing SBP-JSON. +- [`kaitai`](./kaitai): Kaitai Struct Format Description and generated code. Except for the `generator`, all of the above are generated and should not be modified directly. @@ -72,7 +74,7 @@ your platform. To install from source, you can use Rust's cargo tool (first [install Rust](https://www.rust-lang.org/tools/install)), then run: -``` +```sh cargo install --git https://github.com/swift-nav/libsbp.git --bins ``` @@ -87,13 +89,13 @@ tool as well as a `sbp2prettyjson` tool. Finally, a Python version of the `sbp2json` tool exists, which is installable on any platform that supports Python via pip, e.g.: -``` +```sh pip3 install sbp ``` The tool can then be invoked as follows: -``` +```sh python3 -m sbp2json #egg=sbp&subdirectory=python" ``` Or add this to `requirements.txt`: -``` + +```sh git+https://github.com/swift-nav/libsbp@#egg=sbp&subdirectory=python ``` ### Installing from source + You can build one binding at a time or update all at once: -``` +```sh make python ``` or -``` +```sh make all ``` are both valid. To see a list of all valid targets, run `make help`. **Python version notes:** + 1. By default the Python targets `make python` and `make test-python` (as well as `make all`) run tests on all Python versions officially supported by *the libsbp Python bindings*, currently **3.6-3.9**, skipping any versions not @@ -256,7 +279,7 @@ detection. Please see [the docs](docs/sbp.pdf) for a full description of the packet structure and the message types. Developer documentation for the -language-specific sbp libraries is [here](http://swift-nav.github.io/libsbp/). +language-specific sbp libraries is available at [http://swift-nav.github.io/libsbp/](http://swift-nav.github.io/libsbp/). Please refer to [the changelog](CHANGELOG.md) for more information about the evolution of the library and its messages. @@ -281,19 +304,19 @@ respectively. The Kaitai Struct format description files can also potentially be used to generate bindings for the following targets: -* graphviz -* csharp -* rust -* java -* go -* cpp_stl -* php -* lua -* nim -* html -* ruby -* construct -* javascript +- graphviz +- csharp +- rust +- java +- go +- cpp_stl +- php +- lua +- nim +- html +- ruby +- construct +- javascript ### Notes on python bindings diff --git a/c/README.md b/c/README.md index 0a08a35714..3e047aefa0 100644 --- a/c/README.md +++ b/c/README.md @@ -1,4 +1,4 @@ -## SBP Bindings for C +# SBP Bindings for C libsbp provides C bindings for Swift Binary Protocol (SBP), the native binary protocol used by the @@ -11,13 +11,13 @@ with no dependencies other than the standard C libraries. On Debian-based systems (including Ubuntu 12.10 or later) you can get dependencies with: -```shell +```sh sudo apt-get install build-essential pkg-config cmake doxygen check clang-format-6.0 ``` On Mac: -```shell +```sh brew tap swift-nav/swift-devs brew install check cmake pkg-config doxygen clang-tools-6.0 ``` diff --git a/c/include/libsbp/cpp/message_traits.h b/c/include/libsbp/cpp/message_traits.h index 85a3d2d97b..7dbfc9f9ce 100644 --- a/c/include/libsbp/cpp/message_traits.h +++ b/c/include/libsbp/cpp/message_traits.h @@ -6438,6 +6438,44 @@ struct MessageTraits { } }; +template <> +struct MessageTraits { + static constexpr sbp_msg_type_t id = SbpMsgSsrFlagHighLevelDepA; + static constexpr const char *name = "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"; + static const sbp_msg_ssr_flag_high_level_dep_a_t &get(const sbp_msg_t &msg) { + return msg.ssr_flag_high_level_dep_a; + } + static sbp_msg_ssr_flag_high_level_dep_a_t &get(sbp_msg_t &msg) { + return msg.ssr_flag_high_level_dep_a; + } + static void to_sbp_msg(const sbp_msg_ssr_flag_high_level_dep_a_t &msg, + sbp_msg_t *sbp_msg) { + sbp_msg->ssr_flag_high_level_dep_a = msg; + } + static sbp_msg_t to_sbp_msg(const sbp_msg_ssr_flag_high_level_dep_a_t &msg) { + sbp_msg_t sbp_msg; + sbp_msg.ssr_flag_high_level_dep_a = msg; + return sbp_msg; + } + static s8 send(sbp_state_t *state, u16 sender_id, + const sbp_msg_ssr_flag_high_level_dep_a_t &msg, + sbp_write_fn_t write) { + return sbp_msg_ssr_flag_high_level_dep_a_send(state, sender_id, &msg, + write); + } + static s8 encode(uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_flag_high_level_dep_a_t &msg) { + return sbp_msg_ssr_flag_high_level_dep_a_encode(buf, len, n_written, &msg); + } + static s8 decode(const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + return sbp_msg_ssr_flag_high_level_dep_a_decode(buf, len, n_read, msg); + } + static size_t encoded_len(const sbp_msg_ssr_flag_high_level_dep_a_t &msg) { + return sbp_msg_ssr_flag_high_level_dep_a_encoded_len(&msg); + } +}; + template <> struct MessageTraits { static constexpr sbp_msg_type_t id = SbpMsgSsrFlagHighLevel; diff --git a/c/include/libsbp/integrity.h b/c/include/libsbp/integrity.h index 2d2ff792e7..8ab8a8be95 100644 --- a/c/include/libsbp/integrity.h +++ b/c/include/libsbp/integrity.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL.h b/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL.h index a11c0aeffb..b880a2e20b 100644 --- a/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL.h +++ b/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL.h @@ -72,9 +72,14 @@ typedef struct { sbp_gps_time_sec_t obs_time; /** - * GNSS reference time of the correction associated to the flag. + * GNSS reference time of the ionospheric correction associated to the flag. */ - sbp_gps_time_sec_t corr_time; + sbp_gps_time_sec_t iono_corr_time; + + /** + * GNSS reference time of the satellite correction associated to the flag. + */ + sbp_gps_time_sec_t sat_corr_time; /** * SSR Solution ID. diff --git a/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL_DEP_A.h b/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL_DEP_A.h new file mode 100644 index 0000000000..455fd31f88 --- /dev/null +++ b/c/include/libsbp/integrity/MSG_SSR_FLAG_HIGH_LEVEL_DEP_A.h @@ -0,0 +1,254 @@ +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. + * Contact: https://support.swiftnav.com + * + * This source is subject to the license found in the file 'LICENSE' which must + * be distributed together with this source. All other rights reserved. + * + * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + */ + +/***************************************************************************** + * Automatically generated from yaml/swiftnav/sbp/integrity.yaml + * with generate.py. Please do not hand edit! + *****************************************************************************/ + +#ifndef LIBSBP_INTEGRITY_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_H +#define LIBSBP_INTEGRITY_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_H + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/****************************************************************************** + * + * SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A + * + *****************************************************************************/ +/** Deprecated + * + * Deprecated. + */ +typedef struct { + /** + * GNSS reference time of the observation used to generate the flag. + */ + sbp_gps_time_sec_t obs_time; + + /** + * GNSS reference time of the correction associated to the flag. + */ + sbp_gps_time_sec_t corr_time; + + /** + * SSR Solution ID. + */ + u8 ssr_sol_id; + + /** + * Unique identifier of the set this tile belongs to. + */ + u16 tile_set_id; + + /** + * Unique identifier of this tile in the tile set. + */ + u16 tile_id; + + /** + * Chain and type of flag. + */ + u8 chain_id; + + /** + * Use GPS satellites. + */ + u8 use_gps_sat; + + /** + * Use GAL satellites. + */ + u8 use_gal_sat; + + /** + * Use BDS satellites. + */ + u8 use_bds_sat; + + /** + * Use QZSS satellites. + */ + u8 use_qzss_sat; + + /** + * Reserved + */ + u8 reserved[SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_RESERVED_MAX]; + + /** + * Use tropo grid points. + */ + u8 use_tropo_grid_points; + + /** + * Use iono grid points. + */ + u8 use_iono_grid_points; + + /** + * Use iono tile satellite LoS. + */ + u8 use_iono_tile_sat_los; + + /** + * Use iono grid point satellite LoS. + */ + u8 use_iono_grid_point_sat_los; +} sbp_msg_ssr_flag_high_level_dep_a_t; + +/** + * Get encoded size of an instance of sbp_msg_ssr_flag_high_level_dep_a_t + * + * @param msg sbp_msg_ssr_flag_high_level_dep_a_t instance + * @return Length of on-wire representation + */ +static inline size_t sbp_msg_ssr_flag_high_level_dep_a_encoded_len( + const sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + (void)msg; + return SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_ENCODED_LEN; +} + +/** + * Encode an instance of sbp_msg_ssr_flag_high_level_dep_a_t to wire + * representation + * + * This function encodes the given instance in to the user provided buffer. The + * buffer provided to this function must be large enough to store the encoded + * message otherwise it will return SBP_ENCODE_ERROR without writing anything to + * the buffer. + * + * Specify the length of the destination buffer in the \p len parameter. If + * non-null the number of bytes written to the buffer will be returned in \p + * n_written. + * + * @param buf Destination buffer + * @param len Length of \p buf + * @param n_written If not null, on success will be set to the number of bytes + * written to \p buf + * @param msg Instance of sbp_msg_ssr_flag_high_level_dep_a_t to encode + * @return SBP_OK on success, or other libsbp error code + */ +SBP_EXPORT s8 sbp_msg_ssr_flag_high_level_dep_a_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_flag_high_level_dep_a_t *msg); + +/** + * Decode an instance of sbp_msg_ssr_flag_high_level_dep_a_t from wire + * representation + * + * This function decodes the wire representation of a + * sbp_msg_ssr_flag_high_level_dep_a_t message to the given instance. The caller + * must specify the length of the buffer in the \p len parameter. If non-null + * the number of bytes read from the buffer will be returned in \p n_read. + * + * @param buf Wire representation of the sbp_msg_ssr_flag_high_level_dep_a_t + * instance + * @param len Length of \p buf + * @param n_read If not null, on success will be set to the number of bytes read + * from \p buf + * @param msg Destination + * @return SBP_OK on success, or other libsbp error code + */ +SBP_EXPORT s8 sbp_msg_ssr_flag_high_level_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_flag_high_level_dep_a_t *msg); +/** + * Send an instance of sbp_msg_ssr_flag_high_level_dep_a_t with the given write + * function + * + * An equivalent of #sbp_message_send which operates specifically on + * sbp_msg_ssr_flag_high_level_dep_a_t + * + * The given message will be encoded to wire representation and passed in to the + * given write function callback. The write callback will be called several + * times for each invocation of this function. + * + * @param s SBP state + * @param sender_id SBP sender id + * @param msg Message to send + * @param write Write function + * @return SBP_OK on success, or other libsbp error code + */ +SBP_EXPORT s8 sbp_msg_ssr_flag_high_level_dep_a_send( + sbp_state_t *s, u16 sender_id, + const sbp_msg_ssr_flag_high_level_dep_a_t *msg, sbp_write_fn_t write); + +/** + * Compare two instances of sbp_msg_ssr_flag_high_level_dep_a_t + * + * The two instances will be compared and a value returned consistent with the + * return codes of comparison functions from the C standard library + * + * 0 will be returned if \p a and \p b are considered equal + * A value less than 0 will be returned if \p a is considered to be less than \p + * b A value greater than 0 will be returned if \p b is considered to be greater + * than \p b + * + * @param a sbp_msg_ssr_flag_high_level_dep_a_t instance + * @param b sbp_msg_ssr_flag_high_level_dep_a_t instance + * @return 0, <0, >0 + */ +SBP_EXPORT int sbp_msg_ssr_flag_high_level_dep_a_cmp( + const sbp_msg_ssr_flag_high_level_dep_a_t *a, + const sbp_msg_ssr_flag_high_level_dep_a_t *b); + +#ifdef __cplusplus +} + +static inline bool operator==(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) == 0; +} + +static inline bool operator!=(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) != 0; +} + +static inline bool operator<(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) < 0; +} + +static inline bool operator<=(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) <= 0; +} + +static inline bool operator>(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) > 0; +} + +static inline bool operator>=(const sbp_msg_ssr_flag_high_level_dep_a_t &lhs, + const sbp_msg_ssr_flag_high_level_dep_a_t &rhs) { + return sbp_msg_ssr_flag_high_level_dep_a_cmp(&lhs, &rhs) >= 0; +} + +#endif // ifdef __cplusplus + +#endif /* LIBSBP_INTEGRITY_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_H */ diff --git a/c/include/libsbp/integrity_macros.h b/c/include/libsbp/integrity_macros.h index e565900f08..83f3df97f1 100644 --- a/c/include/libsbp/integrity_macros.h +++ b/c/include/libsbp/integrity_macros.h @@ -23,6 +23,193 @@ */ #define SBP_INTEGRITY_SSR_HEADER_ENCODED_LEN 14u +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GPS_SATELLITES_NOT_MONITORED (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_GAL_SATELLITES_NOT_MONITORED (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_BDS_SATELLITES_NOT_MONITORED (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_QZSS_SATELLITES_NOT_MONITORED (3) +/** + * The maximum number of items that can be stored in + * sbp_msg_ssr_flag_high_level_dep_a_t::reserved before the maximum SBP message + * size is exceeded + */ +#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_RESERVED_MAX 5u + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_TROPO_GRID_POINTS_NOT_MONITORED (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_GET(flags) \ + ((u8)((u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_SET(flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_SHIFT))) | \ + (((val) & (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINTS_NOT_MONITORED (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_MASK (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_SHIFT (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_GET(flags) \ + ((u8)( \ + (u8)((flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_SET(flags, \ + val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_SHIFT))) | \ + (((val) & \ + (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_NOMINAL (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_WARNING (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_ALERT (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_TILE_SATELLITE_LOS_NOT_MONITORED \ + (3) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_MASK \ + (0x7u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_SHIFT \ + (0u) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_GET( \ + flags) \ + ((u8)( \ + (u8)( \ + (flags) >> \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_SHIFT) & \ + SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_MASK)) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_SET( \ + flags, val) \ + do { \ + (flags) = (u8)( \ + (flags & \ + (~(SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_MASK \ + << SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_SHIFT))) | \ + (((val) & \ + (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_MASK)) \ + << (SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_SHIFT))); \ + } while (0) + +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_NOMINAL \ + (0) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_WARNING \ + (1) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_ALERT \ + (2) +#define SBP_SSR_FLAG_HIGH_LEVEL_DEP_A_USE_IONO_GRID_POINT_SATELLITE_LOS_NOT_MONITORED \ + (3) +/** + * Encoded length of sbp_msg_ssr_flag_high_level_dep_a_t + */ +#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_ENCODED_LEN 31u + #define SBP_SSR_FLAG_HIGH_LEVEL_USE_GPS_SATELLITES_MASK (0x7u) #define SBP_SSR_FLAG_HIGH_LEVEL_USE_GPS_SATELLITES_SHIFT (0u) #define SBP_SSR_FLAG_HIGH_LEVEL_USE_GPS_SATELLITES_GET(flags) \ @@ -186,7 +373,7 @@ /** * Encoded length of sbp_msg_ssr_flag_high_level_t */ -#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_ENCODED_LEN 31u +#define SBP_MSG_SSR_FLAG_HIGH_LEVEL_ENCODED_LEN 37u /** * The maximum number of items that can be stored in diff --git a/c/include/libsbp/sbp_msg.h b/c/include/libsbp/sbp_msg.h index 754aeb8e79..16b29dcf84 100644 --- a/c/include/libsbp/sbp_msg.h +++ b/c/include/libsbp/sbp_msg.h @@ -237,6 +237,7 @@ typedef union { sbp_msg_specan_t specan; sbp_msg_ssr_code_biases_t ssr_code_biases; sbp_msg_ssr_code_phase_biases_bounds_t ssr_code_phase_biases_bounds; + sbp_msg_ssr_flag_high_level_dep_a_t ssr_flag_high_level_dep_a; sbp_msg_ssr_flag_high_level_t ssr_flag_high_level; sbp_msg_ssr_flag_iono_grid_point_sat_los_t ssr_flag_iono_grid_point_sat_los; sbp_msg_ssr_flag_iono_grid_points_t ssr_flag_iono_grid_points; @@ -800,6 +801,9 @@ static inline s8 sbp_message_encode(uint8_t *buf, uint8_t len, case SbpMsgSsrCodePhaseBiasesBounds: return sbp_msg_ssr_code_phase_biases_bounds_encode( buf, len, n_written, &msg->ssr_code_phase_biases_bounds); + case SbpMsgSsrFlagHighLevelDepA: + return sbp_msg_ssr_flag_high_level_dep_a_encode( + buf, len, n_written, &msg->ssr_flag_high_level_dep_a); case SbpMsgSsrFlagHighLevel: return sbp_msg_ssr_flag_high_level_encode(buf, len, n_written, &msg->ssr_flag_high_level); @@ -1469,6 +1473,9 @@ static inline s8 sbp_message_decode(const uint8_t *buf, uint8_t len, case SbpMsgSsrCodePhaseBiasesBounds: return sbp_msg_ssr_code_phase_biases_bounds_decode( buf, len, n_read, &msg->ssr_code_phase_biases_bounds); + case SbpMsgSsrFlagHighLevelDepA: + return sbp_msg_ssr_flag_high_level_dep_a_decode( + buf, len, n_read, &msg->ssr_flag_high_level_dep_a); case SbpMsgSsrFlagHighLevel: return sbp_msg_ssr_flag_high_level_decode(buf, len, n_read, &msg->ssr_flag_high_level); @@ -2045,6 +2052,9 @@ static inline size_t sbp_message_encoded_len(sbp_msg_type_t msg_type, case SbpMsgSsrCodePhaseBiasesBounds: return sbp_msg_ssr_code_phase_biases_bounds_encoded_len( &msg->ssr_code_phase_biases_bounds); + case SbpMsgSsrFlagHighLevelDepA: + return sbp_msg_ssr_flag_high_level_dep_a_encoded_len( + &msg->ssr_flag_high_level_dep_a); case SbpMsgSsrFlagHighLevel: return sbp_msg_ssr_flag_high_level_encoded_len(&msg->ssr_flag_high_level); case SbpMsgSsrFlagIonoGridPointSatLos: @@ -2659,6 +2669,9 @@ static inline int sbp_message_cmp(sbp_msg_type_t msg_type, const sbp_msg_t *a, case SbpMsgSsrCodePhaseBiasesBounds: return sbp_msg_ssr_code_phase_biases_bounds_cmp( &a->ssr_code_phase_biases_bounds, &b->ssr_code_phase_biases_bounds); + case SbpMsgSsrFlagHighLevelDepA: + return sbp_msg_ssr_flag_high_level_dep_a_cmp( + &a->ssr_flag_high_level_dep_a, &b->ssr_flag_high_level_dep_a); case SbpMsgSsrFlagHighLevel: return sbp_msg_ssr_flag_high_level_cmp(&a->ssr_flag_high_level, &b->ssr_flag_high_level); diff --git a/c/include/libsbp/sbp_msg_type.h b/c/include/libsbp/sbp_msg_type.h index a098bfc013..7e6a7ffe67 100644 --- a/c/include/libsbp/sbp_msg_type.h +++ b/c/include/libsbp/sbp_msg_type.h @@ -228,7 +228,8 @@ typedef enum { SbpMsgSpecan = 0x0051, SbpMsgSsrCodeBiases = 0x05E1, SbpMsgSsrCodePhaseBiasesBounds = 0x05EC, - SbpMsgSsrFlagHighLevel = 0x0BB9, + SbpMsgSsrFlagHighLevelDepA = 0x0BB9, + SbpMsgSsrFlagHighLevel = 0x0BBA, SbpMsgSsrFlagIonoGridPointSatLos = 0x0BD1, SbpMsgSsrFlagIonoGridPoints = 0x0BC7, SbpMsgSsrFlagIonoTileSatLos = 0x0BCD, @@ -650,6 +651,8 @@ static inline const char *sbp_msg_type_to_string(sbp_msg_type_t msg_type) { return "MSG_SSR_CODE_BIASES"; case SbpMsgSsrCodePhaseBiasesBounds: return "MSG_SSR_CODE_PHASE_BIASES_BOUNDS"; + case SbpMsgSsrFlagHighLevelDepA: + return "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"; case SbpMsgSsrFlagHighLevel: return "MSG_SSR_FLAG_HIGH_LEVEL"; case SbpMsgSsrFlagIonoGridPointSatLos: diff --git a/c/src/include/libsbp/internal/integrity.h b/c/src/include/libsbp/internal/integrity.h index 470067bd0d..c1f4c01cfe 100644 --- a/c/src/include/libsbp/internal/integrity.h +++ b/c/src/include/libsbp/internal/integrity.h @@ -48,6 +48,26 @@ bool sbp_integrity_ssr_header_encode_internal( bool sbp_integrity_ssr_header_decode_internal(sbp_decode_ctx_t *ctx, sbp_integrity_ssr_header_t *msg); +/** + * Internal function to encode an SBP type to a buffer + * + * @param ctx Encode context + * @param msg SBP type instance + * @return true on success, false otherwise + */ +bool sbp_msg_ssr_flag_high_level_dep_a_encode_internal( + sbp_encode_ctx_t *ctx, const sbp_msg_ssr_flag_high_level_dep_a_t *msg); + +/** + * Internal function to decode an SBP type from a buffer + * + * @param ctx Decode context + * @param msg SBP type instance + * @return true on success, false otherwise + */ +bool sbp_msg_ssr_flag_high_level_dep_a_decode_internal( + sbp_decode_ctx_t *ctx, sbp_msg_ssr_flag_high_level_dep_a_t *msg); + /** * Internal function to encode an SBP type to a buffer * diff --git a/c/src/integrity.c b/c/src/integrity.c index 290ee862dd..fa0bac3ce1 100644 --- a/c/src/integrity.c +++ b/c/src/integrity.c @@ -139,12 +139,250 @@ int sbp_integrity_ssr_header_cmp(const sbp_integrity_ssr_header_t *a, return ret; } +bool sbp_msg_ssr_flag_high_level_dep_a_encode_internal( + sbp_encode_ctx_t *ctx, const sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + if (!sbp_gps_time_sec_encode_internal(ctx, &msg->obs_time)) { + return false; + } + if (!sbp_gps_time_sec_encode_internal(ctx, &msg->corr_time)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->ssr_sol_id)) { + return false; + } + if (!sbp_u16_encode(ctx, &msg->tile_set_id)) { + return false; + } + if (!sbp_u16_encode(ctx, &msg->tile_id)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->chain_id)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_gps_sat)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_gal_sat)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_bds_sat)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_qzss_sat)) { + return false; + } + for (size_t i = 0; i < SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_RESERVED_MAX; i++) { + if (!sbp_u8_encode(ctx, &msg->reserved[i])) { + return false; + } + } + if (!sbp_u8_encode(ctx, &msg->use_tropo_grid_points)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_iono_grid_points)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_iono_tile_sat_los)) { + return false; + } + if (!sbp_u8_encode(ctx, &msg->use_iono_grid_point_sat_los)) { + return false; + } + return true; +} + +s8 sbp_msg_ssr_flag_high_level_dep_a_encode( + uint8_t *buf, uint8_t len, uint8_t *n_written, + const sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + sbp_encode_ctx_t ctx; + ctx.buf = buf; + ctx.buf_len = len; + ctx.offset = 0; + if (!sbp_msg_ssr_flag_high_level_dep_a_encode_internal(&ctx, msg)) { + return SBP_ENCODE_ERROR; + } + if (n_written != NULL) { + *n_written = (uint8_t)ctx.offset; + } + return SBP_OK; +} + +bool sbp_msg_ssr_flag_high_level_dep_a_decode_internal( + sbp_decode_ctx_t *ctx, sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + if (!sbp_gps_time_sec_decode_internal(ctx, &msg->obs_time)) { + return false; + } + if (!sbp_gps_time_sec_decode_internal(ctx, &msg->corr_time)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->ssr_sol_id)) { + return false; + } + if (!sbp_u16_decode(ctx, &msg->tile_set_id)) { + return false; + } + if (!sbp_u16_decode(ctx, &msg->tile_id)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->chain_id)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_gps_sat)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_gal_sat)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_bds_sat)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_qzss_sat)) { + return false; + } + for (uint8_t i = 0; i < SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_RESERVED_MAX; i++) { + if (!sbp_u8_decode(ctx, &msg->reserved[i])) { + return false; + } + } + if (!sbp_u8_decode(ctx, &msg->use_tropo_grid_points)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_iono_grid_points)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_iono_tile_sat_los)) { + return false; + } + if (!sbp_u8_decode(ctx, &msg->use_iono_grid_point_sat_los)) { + return false; + } + return true; +} + +s8 sbp_msg_ssr_flag_high_level_dep_a_decode( + const uint8_t *buf, uint8_t len, uint8_t *n_read, + sbp_msg_ssr_flag_high_level_dep_a_t *msg) { + sbp_decode_ctx_t ctx; + ctx.buf = buf; + ctx.buf_len = len; + ctx.offset = 0; + if (!sbp_msg_ssr_flag_high_level_dep_a_decode_internal(&ctx, msg)) { + return SBP_DECODE_ERROR; + } + if (n_read != NULL) { + *n_read = (uint8_t)ctx.offset; + } + return SBP_OK; +} + +s8 sbp_msg_ssr_flag_high_level_dep_a_send( + sbp_state_t *s, u16 sender_id, + const sbp_msg_ssr_flag_high_level_dep_a_t *msg, sbp_write_fn_t write) { + uint8_t payload[SBP_MAX_PAYLOAD_LEN]; + uint8_t payload_len; + s8 ret = sbp_msg_ssr_flag_high_level_dep_a_encode(payload, sizeof(payload), + &payload_len, msg); + if (ret != SBP_OK) { + return ret; + } + return sbp_internal_forward_payload(s, SbpMsgSsrFlagHighLevelDepA, sender_id, + payload_len, payload, write); +} + +int sbp_msg_ssr_flag_high_level_dep_a_cmp( + const sbp_msg_ssr_flag_high_level_dep_a_t *a, + const sbp_msg_ssr_flag_high_level_dep_a_t *b) { + int ret = 0; + + ret = sbp_gps_time_sec_cmp(&a->obs_time, &b->obs_time); + if (ret != 0) { + return ret; + } + + ret = sbp_gps_time_sec_cmp(&a->corr_time, &b->corr_time); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->ssr_sol_id, &b->ssr_sol_id); + if (ret != 0) { + return ret; + } + + ret = sbp_u16_cmp(&a->tile_set_id, &b->tile_set_id); + if (ret != 0) { + return ret; + } + + ret = sbp_u16_cmp(&a->tile_id, &b->tile_id); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->chain_id, &b->chain_id); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_gps_sat, &b->use_gps_sat); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_gal_sat, &b->use_gal_sat); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_bds_sat, &b->use_bds_sat); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_qzss_sat, &b->use_qzss_sat); + if (ret != 0) { + return ret; + } + + for (uint8_t i = 0; i < SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A_RESERVED_MAX; i++) { + ret = sbp_u8_cmp(&a->reserved[i], &b->reserved[i]); + if (ret != 0) { + return ret; + } + } + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_tropo_grid_points, &b->use_tropo_grid_points); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_iono_grid_points, &b->use_iono_grid_points); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_iono_tile_sat_los, &b->use_iono_tile_sat_los); + if (ret != 0) { + return ret; + } + + ret = sbp_u8_cmp(&a->use_iono_grid_point_sat_los, + &b->use_iono_grid_point_sat_los); + return ret; +} + bool sbp_msg_ssr_flag_high_level_encode_internal( sbp_encode_ctx_t *ctx, const sbp_msg_ssr_flag_high_level_t *msg) { if (!sbp_gps_time_sec_encode_internal(ctx, &msg->obs_time)) { return false; } - if (!sbp_gps_time_sec_encode_internal(ctx, &msg->corr_time)) { + if (!sbp_gps_time_sec_encode_internal(ctx, &msg->iono_corr_time)) { + return false; + } + if (!sbp_gps_time_sec_encode_internal(ctx, &msg->sat_corr_time)) { return false; } if (!sbp_u8_encode(ctx, &msg->ssr_sol_id)) { @@ -212,7 +450,10 @@ bool sbp_msg_ssr_flag_high_level_decode_internal( if (!sbp_gps_time_sec_decode_internal(ctx, &msg->obs_time)) { return false; } - if (!sbp_gps_time_sec_decode_internal(ctx, &msg->corr_time)) { + if (!sbp_gps_time_sec_decode_internal(ctx, &msg->iono_corr_time)) { + return false; + } + if (!sbp_gps_time_sec_decode_internal(ctx, &msg->sat_corr_time)) { return false; } if (!sbp_u8_decode(ctx, &msg->ssr_sol_id)) { @@ -298,7 +539,12 @@ int sbp_msg_ssr_flag_high_level_cmp(const sbp_msg_ssr_flag_high_level_t *a, return ret; } - ret = sbp_gps_time_sec_cmp(&a->corr_time, &b->corr_time); + ret = sbp_gps_time_sec_cmp(&a->iono_corr_time, &b->iono_corr_time); + if (ret != 0) { + return ret; + } + + ret = sbp_gps_time_sec_cmp(&a->sat_corr_time, &b->sat_corr_time); if (ret != 0) { return ret; } diff --git a/c/src/sbp.c b/c/src/sbp.c index fdbf029d2b..25934c2867 100644 --- a/c/src/sbp.c +++ b/c/src/sbp.c @@ -162,7 +162,7 @@ * registered for that message type. */ static s8 sbp_register_callback_generic(sbp_state_t *s, sbp_msg_type_t msg_type, - sbp_callback_t cb, + sbp_callback_t cb, void *context, sbp_msg_callbacks_node_t *node) { /* Check our callback function pointer isn't NULL. */ @@ -505,7 +505,7 @@ s8 sbp_process(sbp_state_t *s, s32 (*read)(u8 *buff, u32 n, void *context)) ret = process_frame(s, s->sender_id, s->msg_type, s->msg_len, SBP_FRAME_MSG_PAYLOAD(s->frame_buff)); return ret; - } + } return SBP_CRC_ERROR; } break; diff --git a/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevel.c b/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevel.c index 68ec2a2e64..b9b9b7a16e 100644 --- a/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevel.c +++ b/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevel.c @@ -90,13 +90,13 @@ START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevel) { logging_reset(); - sbp_callback_register(&sbp_state, 3001, &msg_callback, + sbp_callback_register(&sbp_state, 3002, &msg_callback, &DUMMY_MEMORY_FOR_CALLBACKS, &n); u8 encoded_frame[] = { - 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, - 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, 1, 2, - 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + 85, 186, 11, 66, 0, 37, 180, 0, 0, 0, 3, 0, 109, 1, 0, + 0, 6, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, + 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 177, 238, }; dummy_reset(); @@ -106,9 +106,9 @@ START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevel) { test_msg.ssr_flag_high_level.chain_id = 40; - test_msg.ssr_flag_high_level.corr_time.tow = 360; + test_msg.ssr_flag_high_level.iono_corr_time.tow = 365; - test_msg.ssr_flag_high_level.corr_time.wn = 6; + test_msg.ssr_flag_high_level.iono_corr_time.wn = 6; test_msg.ssr_flag_high_level.obs_time.tow = 180; @@ -124,6 +124,10 @@ START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevel) { test_msg.ssr_flag_high_level.reserved[4] = 0; + test_msg.ssr_flag_high_level.sat_corr_time.tow = 360; + + test_msg.ssr_flag_high_level.sat_corr_time.wn = 6; + test_msg.ssr_flag_high_level.ssr_sol_id = 10; test_msg.ssr_flag_high_level.tile_id = 30; @@ -176,17 +180,17 @@ START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevel) { "expected 40, is %" PRId64, (int64_t)last_msg.msg.ssr_flag_high_level.chain_id); - ck_assert_msg( - last_msg.msg.ssr_flag_high_level.corr_time.tow == 360, - "incorrect value for last_msg.msg.ssr_flag_high_level.corr_time.tow, " - "expected 360, is %" PRId64, - (int64_t)last_msg.msg.ssr_flag_high_level.corr_time.tow); + ck_assert_msg(last_msg.msg.ssr_flag_high_level.iono_corr_time.tow == 365, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level.iono_corr_time.tow, " + "expected 365, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level.iono_corr_time.tow); - ck_assert_msg( - last_msg.msg.ssr_flag_high_level.corr_time.wn == 6, - "incorrect value for last_msg.msg.ssr_flag_high_level.corr_time.wn, " - "expected 6, is %" PRId64, - (int64_t)last_msg.msg.ssr_flag_high_level.corr_time.wn); + ck_assert_msg(last_msg.msg.ssr_flag_high_level.iono_corr_time.wn == 6, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level.iono_corr_time.wn, " + "expected 6, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level.iono_corr_time.wn); ck_assert_msg( last_msg.msg.ssr_flag_high_level.obs_time.tow == 180, @@ -226,6 +230,18 @@ START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevel) { "expected 0, is %" PRId64, (int64_t)last_msg.msg.ssr_flag_high_level.reserved[4]); + ck_assert_msg(last_msg.msg.ssr_flag_high_level.sat_corr_time.tow == 360, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level.sat_corr_time.tow, " + "expected 360, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level.sat_corr_time.tow); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level.sat_corr_time.wn == 6, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level.sat_corr_time.wn, expected " + "6, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level.sat_corr_time.wn); + ck_assert_msg( last_msg.msg.ssr_flag_high_level.ssr_sol_id == 10, "incorrect value for last_msg.msg.ssr_flag_high_level.ssr_sol_id, " diff --git a/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.c b/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.c new file mode 100644 index 0000000000..6c17005808 --- /dev/null +++ b/c/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.c @@ -0,0 +1,313 @@ +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. + * Contact: https://support.swiftnav.com + * + * This source is subject to the license found in the file 'LICENSE' which must + * be distributed together with this source. All other rights reserved. + * + * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + */ + +// This file was auto-generated from +// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml by +// generate.py. Do not modify by hand! + +#include +#include +#include +#include // for debugging +#include // for malloc + +static struct { + u32 n_callbacks_logged; + u16 sender_id; + sbp_msg_type_t msg_type; + sbp_msg_t msg; + void *context; +} last_msg; + +static size_t dummy_wr = 0; +static size_t dummy_rd = 0; +static u8 dummy_buff[1024]; +static void *last_io_context; + +static void *DUMMY_MEMORY_FOR_CALLBACKS = (void *)0xdeadbeef; +static void *DUMMY_MEMORY_FOR_IO = (void *)0xdead0000; + +static void dummy_reset() { + dummy_rd = dummy_wr = 0; + memset(dummy_buff, 0, sizeof(dummy_buff)); +} + +static s32 dummy_write(u8 *buff, u32 n, void *context) { + last_io_context = context; + size_t real_n = n; //(dummy_n > n) ? n : dummy_n; + memcpy(dummy_buff + dummy_wr, buff, real_n); + dummy_wr += real_n; + return (s32)real_n; +} + +static s32 dummy_read(u8 *buff, u32 n, void *context) { + last_io_context = context; + size_t real_n = n; //(dummy_n > n) ? n : dummy_n; + memcpy(buff, dummy_buff + dummy_rd, real_n); + dummy_rd += real_n; + return (s32)real_n; +} + +static void logging_reset() { memset(&last_msg, 0, sizeof(last_msg)); } + +static void msg_callback(u16 sender_id, sbp_msg_type_t msg_type, + const sbp_msg_t *msg, void *context) { + last_msg.n_callbacks_logged++; + last_msg.sender_id = sender_id; + last_msg.msg_type = msg_type; + last_msg.msg = *msg; + last_msg.context = context; +} + +START_TEST(test_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA) { + static sbp_msg_callbacks_node_t n; + + // State of the SBP message parser. + // Must be statically allocated. + sbp_state_t sbp_state; + + // + // Run tests: + // + // Test successful parsing of a message + { + // SBP parser state must be initialized before sbp_process is called. + // We re-initialize before every test so that callbacks for the same message + // types can be + // allocated multiple times across different tests. + sbp_state_init(&sbp_state); + + sbp_state_set_io_context(&sbp_state, &DUMMY_MEMORY_FOR_IO); + + logging_reset(); + + sbp_callback_register(&sbp_state, 3001, &msg_callback, + &DUMMY_MEMORY_FOR_CALLBACKS, &n); + + u8 encoded_frame[] = { + 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, + 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, 1, 2, + 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + }; + + dummy_reset(); + + sbp_msg_t test_msg; + memset(&test_msg, 0, sizeof(test_msg)); + + test_msg.ssr_flag_high_level_dep_a.chain_id = 40; + + test_msg.ssr_flag_high_level_dep_a.corr_time.tow = 360; + + test_msg.ssr_flag_high_level_dep_a.corr_time.wn = 6; + + test_msg.ssr_flag_high_level_dep_a.obs_time.tow = 180; + + test_msg.ssr_flag_high_level_dep_a.obs_time.wn = 3; + + test_msg.ssr_flag_high_level_dep_a.reserved[0] = 0; + + test_msg.ssr_flag_high_level_dep_a.reserved[1] = 0; + + test_msg.ssr_flag_high_level_dep_a.reserved[2] = 0; + + test_msg.ssr_flag_high_level_dep_a.reserved[3] = 0; + + test_msg.ssr_flag_high_level_dep_a.reserved[4] = 0; + + test_msg.ssr_flag_high_level_dep_a.ssr_sol_id = 10; + + test_msg.ssr_flag_high_level_dep_a.tile_id = 30; + + test_msg.ssr_flag_high_level_dep_a.tile_set_id = 20; + + test_msg.ssr_flag_high_level_dep_a.use_bds_sat = 3; + + test_msg.ssr_flag_high_level_dep_a.use_gal_sat = 2; + + test_msg.ssr_flag_high_level_dep_a.use_gps_sat = 1; + + test_msg.ssr_flag_high_level_dep_a.use_iono_grid_point_sat_los = 8; + + test_msg.ssr_flag_high_level_dep_a.use_iono_grid_points = 6; + + test_msg.ssr_flag_high_level_dep_a.use_iono_tile_sat_los = 7; + + test_msg.ssr_flag_high_level_dep_a.use_qzss_sat = 4; + + test_msg.ssr_flag_high_level_dep_a.use_tropo_grid_points = 5; + + sbp_message_send(&sbp_state, SbpMsgSsrFlagHighLevelDepA, 66, &test_msg, + &dummy_write); + + ck_assert_msg(dummy_wr == sizeof(encoded_frame), + "not enough data was written to dummy_buff (expected: %zu, " + "actual: %zu)", + sizeof(encoded_frame), dummy_wr); + ck_assert_msg(memcmp(dummy_buff, encoded_frame, sizeof(encoded_frame)) == 0, + "frame was not encoded properly"); + + while (dummy_rd < dummy_wr) { + ck_assert_msg(sbp_process(&sbp_state, &dummy_read) >= SBP_OK, + "sbp_process threw an error!"); + } + + ck_assert_msg(last_msg.n_callbacks_logged == 1, + "msg_callback: one callback should have been logged"); + ck_assert_msg(last_msg.sender_id == 66, + "msg_callback: sender_id decoded incorrectly"); + + ck_assert_msg(sbp_message_cmp(SbpMsgSsrFlagHighLevelDepA, &last_msg.msg, + &test_msg) == 0, + "Sent and received messages did not compare equal"); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.chain_id == 40, + "incorrect value for last_msg.msg.ssr_flag_high_level_dep_a.chain_id, " + "expected 40, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.chain_id); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.corr_time.tow == 360, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.corr_time.tow, expected 360, " + "is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.corr_time.tow); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.corr_time.wn == 6, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.corr_time.wn, " + "expected 6, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.corr_time.wn); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.obs_time.tow == 180, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.obs_time.tow, " + "expected 180, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.obs_time.tow); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.obs_time.wn == 3, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.obs_time.wn, " + "expected 3, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.obs_time.wn); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.reserved[0] == 0, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.reserved[0], " + "expected 0, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.reserved[0]); + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.reserved[1] == 0, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.reserved[1], " + "expected 0, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.reserved[1]); + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.reserved[2] == 0, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.reserved[2], " + "expected 0, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.reserved[2]); + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.reserved[3] == 0, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.reserved[3], " + "expected 0, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.reserved[3]); + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.reserved[4] == 0, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.reserved[4], " + "expected 0, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.reserved[4]); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.ssr_sol_id == 10, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.ssr_sol_id, expected " + "10, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.ssr_sol_id); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.tile_id == 30, + "incorrect value for last_msg.msg.ssr_flag_high_level_dep_a.tile_id, " + "expected 30, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.tile_id); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.tile_set_id == 20, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.tile_set_id, " + "expected 20, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.tile_set_id); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.use_bds_sat == 3, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_bds_sat, " + "expected 3, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_bds_sat); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.use_gal_sat == 2, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_gal_sat, " + "expected 2, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_gal_sat); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.use_gps_sat == 1, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_gps_sat, " + "expected 1, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_gps_sat); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_point_sat_los == 8, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_point_sat_los, " + "expected 8, is %" PRId64, + (int64_t) + last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_point_sat_los); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_points == 6, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_points, expected " + "6, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_iono_grid_points); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.use_iono_tile_sat_los == 7, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_iono_tile_sat_los, " + "expected 7, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_iono_tile_sat_los); + + ck_assert_msg(last_msg.msg.ssr_flag_high_level_dep_a.use_qzss_sat == 4, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_qzss_sat, " + "expected 4, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_qzss_sat); + + ck_assert_msg( + last_msg.msg.ssr_flag_high_level_dep_a.use_tropo_grid_points == 5, + "incorrect value for " + "last_msg.msg.ssr_flag_high_level_dep_a.use_tropo_grid_points, " + "expected 5, is %" PRId64, + (int64_t)last_msg.msg.ssr_flag_high_level_dep_a.use_tropo_grid_points); + } +} +END_TEST + +Suite *auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA_suite(void) { + Suite *s = suite_create( + "SBP generated test suite: " + "auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA"); + TCase *tc_acq = tcase_create( + "Automated_Suite_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA"); + tcase_add_test(tc_acq, test_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA); + suite_add_tcase(s, tc_acq); + return s; +} diff --git a/c/test/check_main.c b/c/test/check_main.c index 02127b32c5..a714e2bce2 100644 --- a/c/test/check_main.c +++ b/c/test/check_main.c @@ -63,6 +63,8 @@ int main(void) { srunner_add_suite(sr, auto_check_sbp_imu_MsgImuRaw_suite()); srunner_add_suite(sr, auto_check_sbp_integrity_MsgAcknowledge_suite()); srunner_add_suite(sr, auto_check_sbp_integrity_MsgSsrFlagHighLevel_suite()); + srunner_add_suite(sr, + auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA_suite()); srunner_add_suite( sr, auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLos_suite()); srunner_add_suite(sr, diff --git a/c/test/check_suites.h b/c/test/check_suites.h index 47b58ebc12..887bab1cfc 100644 --- a/c/test/check_suites.h +++ b/c/test/check_suites.h @@ -53,6 +53,7 @@ Suite* auto_check_sbp_imu_MsgImuComp_suite(void); Suite* auto_check_sbp_imu_MsgImuRaw_suite(void); Suite* auto_check_sbp_integrity_MsgAcknowledge_suite(void); Suite* auto_check_sbp_integrity_MsgSsrFlagHighLevel_suite(void); +Suite* auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA_suite(void); Suite* auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLos_suite(void); Suite* auto_check_sbp_integrity_MsgSsrFlagIonoGridPoints_suite(void); Suite* auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLos_suite(void); diff --git a/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevel.cc b/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevel.cc index 0c7bc59ff4..663b9ddac2 100644 --- a/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevel.cc +++ b/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevel.cc @@ -31,8 +31,8 @@ class Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0 public: Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0() { assign(test_msg_.chain_id, 40); - assign(test_msg_.corr_time.tow, 360); - assign(test_msg_.corr_time.wn, 6); + assign(test_msg_.iono_corr_time.tow, 365); + assign(test_msg_.iono_corr_time.wn, 6); assign(test_msg_.obs_time.tow, 180); assign(test_msg_.obs_time.wn, 3); @@ -45,6 +45,8 @@ class Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0 assign(test_msg_.reserved[3], 0); assign(test_msg_.reserved[4], 0); + assign(test_msg_.sat_corr_time.tow, 360); + assign(test_msg_.sat_corr_time.wn, 6); assign(test_msg_.ssr_sol_id, 10); assign(test_msg_.tile_id, 30); assign(test_msg_.tile_set_id, 20); @@ -297,11 +299,11 @@ class Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0 info.msg_type = static_cast(SbpMsgSsrFlagHighLevel); info.sender_id = 66; info.preamble = 0x55; - info.crc = 0x0369; + info.crc = 0xEEB1; info.encoded_frame = encoded_frame_; info.frame_len = sizeof(encoded_frame_); info.encoded_payload = encoded_payload_; - info.payload_len = 31; + info.payload_len = 37; return info; } @@ -401,13 +403,14 @@ class Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0 private: sbp_msg_ssr_flag_high_level_t test_msg_{}; - uint8_t encoded_frame_[31 + 8] = { - 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, - 0, 30, 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + uint8_t encoded_frame_[37 + 8] = { + 85, 186, 11, 66, 0, 37, 180, 0, 0, 0, 3, 0, 109, 1, 0, + 0, 6, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, + 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 177, 238, }; - uint8_t encoded_payload_[31] = { - 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, - 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, + uint8_t encoded_payload_[37] = { + 180, 0, 0, 0, 3, 0, 109, 1, 0, 0, 6, 0, 104, 1, 0, 0, 6, 0, 10, + 20, 0, 30, 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, }; }; @@ -423,39 +426,39 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, EncodedLen) { TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, EncodeToBuf) { auto info = get_test_msg_info(); - uint8_t buf[31]; + uint8_t buf[37]; uint8_t n_written; EXPECT_EQ(sbp_msg_ssr_flag_high_level_encode(&buf[0], sizeof(buf), &n_written, &info.test_msg), SBP_OK); - EXPECT_EQ(n_written, 31); - EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); + EXPECT_EQ(n_written, 37); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 37), 0); memset(&buf[0], 0, sizeof(buf)); EXPECT_EQ(sbp_message_encode(&buf[0], sizeof(buf), &n_written, SbpMsgSsrFlagHighLevel, &info.test_msg_wrapped), SBP_OK); - EXPECT_EQ(n_written, 31); - EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); + EXPECT_EQ(n_written, 37); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 37), 0); } TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, EncodeToBufWithoutNwritten) { auto info = get_test_msg_info(); - uint8_t buf[31]; + uint8_t buf[37]; EXPECT_EQ(sbp_msg_ssr_flag_high_level_encode(&buf[0], sizeof(buf), nullptr, &info.test_msg), SBP_OK); - EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 37), 0); } TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, EncodedToBufUnderflow) { auto info = get_test_msg_info(); - uint8_t buf[31]; + uint8_t buf[37]; - for (uint8_t i = 0; i < 31; i++) { + for (uint8_t i = 0; i < 37; i++) { EXPECT_EQ( sbp_msg_ssr_flag_high_level_encode(&buf[0], i, nullptr, &info.test_msg), SBP_ENCODE_ERROR); @@ -470,14 +473,14 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, DecodeFromBuf) { EXPECT_EQ(sbp_msg_ssr_flag_high_level_decode(&info.encoded_payload[0], info.payload_len, &n_read, &msg), SBP_OK); - EXPECT_EQ(n_read, 31); + EXPECT_EQ(n_read, 37); EXPECT_EQ(msg, info.test_msg); sbp_msg_t wrapped_msg{}; EXPECT_EQ(sbp_message_decode(&info.encoded_payload[0], info.payload_len, &n_read, SbpMsgSsrFlagHighLevel, &wrapped_msg), SBP_OK); - EXPECT_EQ(n_read, 31); + EXPECT_EQ(n_read, 37); EXPECT_EQ(msg, info.test_msg); } @@ -669,13 +672,13 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, Comparison) { { sbp_msg_ssr_flag_high_level_t lesser = info.test_msg; sbp_msg_ssr_flag_high_level_t greater = info.test_msg; - make_lesser_greater(lesser.corr_time.tow, greater.corr_time.tow); + make_lesser_greater(lesser.iono_corr_time.tow, greater.iono_corr_time.tow); comparison_tests(lesser, greater); } { sbp_msg_ssr_flag_high_level_t lesser = info.test_msg; sbp_msg_ssr_flag_high_level_t greater = info.test_msg; - make_lesser_greater(lesser.corr_time.wn, greater.corr_time.wn); + make_lesser_greater(lesser.iono_corr_time.wn, greater.iono_corr_time.wn); comparison_tests(lesser, greater); } { @@ -725,6 +728,18 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, Comparison) { make_lesser_greater(lesser.reserved[4], greater.reserved[4]); comparison_tests(lesser, greater); } + { + sbp_msg_ssr_flag_high_level_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_t greater = info.test_msg; + make_lesser_greater(lesser.sat_corr_time.tow, greater.sat_corr_time.tow); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_t greater = info.test_msg; + make_lesser_greater(lesser.sat_corr_time.wn, greater.sat_corr_time.wn); + comparison_tests(lesser, greater); + } { sbp_msg_ssr_flag_high_level_t lesser = info.test_msg; sbp_msg_ssr_flag_high_level_t greater = info.test_msg; @@ -861,14 +876,14 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, CppTraitsEncodeToBuf) { auto info = get_test_msg_info(); - uint8_t buf[31]; + uint8_t buf[37]; uint8_t n_written; EXPECT_EQ(sbp::MessageTraits::encode( &buf[0], sizeof(buf), &n_written, info.test_msg), SBP_OK); - EXPECT_EQ(n_written, 31); - EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); + EXPECT_EQ(n_written, 37); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 37), 0); } TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, @@ -880,7 +895,7 @@ TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevel0, EXPECT_EQ(sbp::MessageTraits::decode( &info.encoded_payload[0], info.payload_len, &n_read, &msg), SBP_OK); - EXPECT_EQ(n_read, 31); + EXPECT_EQ(n_read, 37); EXPECT_EQ(msg, info.test_msg); } diff --git a/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.cc b/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.cc new file mode 100644 index 0000000000..46103eae00 --- /dev/null +++ b/c/test/cpp/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.cc @@ -0,0 +1,962 @@ +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. + * Contact: https://support.swiftnav.com + * + * This source is subject to the license found in the file 'LICENSE' which must + * be distributed together with this source. All other rights reserved. + * + * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + */ + +// This file was auto-generated from +// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml by +// generate.py. Do not modify by hand! + +#include +#include +#include +#include +#include + +namespace { + +template +void assign(T &dest, const U &source) { + dest = static_cast(source); +} +class Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0 + : public ::testing::Test { + public: + Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0() { + assign(test_msg_.chain_id, 40); + assign(test_msg_.corr_time.tow, 360); + assign(test_msg_.corr_time.wn, 6); + assign(test_msg_.obs_time.tow, 180); + assign(test_msg_.obs_time.wn, 3); + + assign(test_msg_.reserved[0], 0); + + assign(test_msg_.reserved[1], 0); + + assign(test_msg_.reserved[2], 0); + + assign(test_msg_.reserved[3], 0); + + assign(test_msg_.reserved[4], 0); + assign(test_msg_.ssr_sol_id, 10); + assign(test_msg_.tile_id, 30); + assign(test_msg_.tile_set_id, 20); + assign(test_msg_.use_bds_sat, 3); + assign(test_msg_.use_gal_sat, 2); + assign(test_msg_.use_gps_sat, 1); + assign(test_msg_.use_iono_grid_point_sat_los, 8); + assign(test_msg_.use_iono_grid_points, 6); + assign(test_msg_.use_iono_tile_sat_los, 7); + assign(test_msg_.use_qzss_sat, 4); + assign(test_msg_.use_tropo_grid_points, 5); + } + + class SlowReader final : public sbp::IReader { + public: + SlowReader(const uint8_t *buf, uint32_t len) + : sbp::IReader(), buf_{buf}, len_{len} {} + + s32 read(uint8_t *buf, const uint32_t n) override { + if (n == 0) { + return 0; + } + if (remaining() == 0) { + return -1; + } + skip_next_read = !skip_next_read; + if (skip_next_read) { + return 0; + } + uint32_t real_n = std::min(n, 1u); + memcpy(buf, buf_ + offset_, real_n); + offset_ += real_n; + return static_cast(real_n); + } + + uint32_t remaining() const noexcept { return len_ - offset_; } + + static s32 read_static(uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->read(buf, len); + } + + private: + const uint8_t *buf_; + uint32_t len_; + uint32_t offset_{}; + bool skip_next_read{}; + }; + + class Reader final : public sbp::IReader { + public: + Reader(const uint8_t *buf, uint32_t len) + : sbp::IReader(), buf_{buf}, len_{len} {} + + s32 read(uint8_t *buf, const uint32_t n) override { + if (n == 0) { + return 0; + } + uint32_t real_n = std::min(n, remaining()); + if (real_n == 0) { + return -1; + } + memcpy(buf, buf_ + offset_, real_n); + offset_ += real_n; + return static_cast(real_n); + } + + uint32_t remaining() const noexcept { return len_ - offset_; } + + static s32 read_static(uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->read(buf, len); + } + + private: + const uint8_t *buf_; + uint32_t len_; + uint32_t offset_{}; + }; + + class SlowWriter final : public sbp::IWriter { + public: + explicit SlowWriter(uint32_t max_len = cMaxLen) + : IWriter(), max_len_{max_len} {} + static constexpr uint32_t cMaxLen = SBP_MAX_FRAME_LEN; + + s32 write(const uint8_t *buf, uint32_t n) override { + if (n == 0) { + return 0; + } + uint32_t real_n = std::min(n, 1u); + if (real_n == 0) { + return -1; + } + memcpy(buf_ + offset_, buf, real_n); + offset_ += real_n; + return static_cast(real_n); + } + + uint32_t remaining() const noexcept { return max_len_ - offset_; } + + const uint8_t *data() const noexcept { return buf_; } + + uint32_t len() const noexcept { return offset_; } + + static s32 write_static(const uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->write(buf, len); + } + + static s32 write_c(uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->write(buf, len); + } + + private: + uint8_t buf_[cMaxLen]; + uint32_t max_len_; + uint32_t offset_{}; + }; + + class Writer final : public sbp::IWriter { + public: + explicit Writer(uint32_t max_len = cMaxLen) + : IWriter(), max_len_{max_len} {} + static constexpr uint32_t cMaxLen = SBP_MAX_FRAME_LEN; + + s32 write(const uint8_t *buf, uint32_t n) override { + if (n == 0) { + return 0; + } + uint32_t real_n = std::min(n, remaining()); + if (real_n == 0) { + return -1; + } + memcpy(buf_ + offset_, buf, real_n); + offset_ += real_n; + return static_cast(real_n); + } + + uint32_t remaining() const noexcept { return max_len_ - offset_; } + + const uint8_t *data() const noexcept { return buf_; } + + uint32_t len() const noexcept { return offset_; } + + static s32 write_static(const uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->write(buf, len); + } + + static s32 write_c(uint8_t *buf, uint32_t len, void *ctx) { + return static_cast(ctx)->write(buf, len); + } + + private: + uint8_t buf_[cMaxLen]; + uint32_t max_len_; + uint32_t offset_{}; + }; + + struct CppHandler final + : public sbp::MessageHandler { + using sbp::MessageHandler< + sbp_msg_ssr_flag_high_level_dep_a_t>::MessageHandler; + + struct Output final { + uint16_t sender_id; + sbp_msg_ssr_flag_high_level_dep_a_t msg; + }; + + std::vector outputs{}; + + protected: + void handle_sbp_msg( + uint16_t sender_id, + const sbp_msg_ssr_flag_high_level_dep_a_t &msg) override { + outputs.emplace_back(); + outputs.back().sender_id = sender_id; + memcpy(&outputs.back().msg, &msg, sizeof(msg)); + } + }; + + struct CHandler final { + explicit CHandler(sbp_state_t *state) : state_{state} { + sbp_callback_register(state, SbpMsgSsrFlagHighLevelDepA, + &CHandler::callback_static, this, &node_); + } + + ~CHandler() { sbp_remove_callback(state_, &node_); } + + struct Output final { + uint16_t sender_id; + sbp_msg_ssr_flag_high_level_dep_a_t msg; + }; + + std::vector outputs{}; + + private: + void callback(uint16_t sender_id, sbp_msg_type_t msg_type, + const sbp_msg_t *msg) { + ASSERT_EQ(msg_type, SbpMsgSsrFlagHighLevelDepA); + outputs.emplace_back(); + outputs.back().sender_id = sender_id; + memcpy(&outputs.back().msg, &msg->ssr_flag_high_level_dep_a, + sizeof(msg->ssr_flag_high_level_dep_a)); + } + + static void callback_static(uint16_t sender_id, sbp_msg_type_t msg_type, + const sbp_msg_t *msg, void *ctx) { + static_cast(ctx)->callback(sender_id, msg_type, msg); + } + + sbp_msg_callbacks_node_t node_{}; + sbp_state_t *state_; + }; + + struct TestMsgInfo { + sbp_msg_ssr_flag_high_level_dep_a_t test_msg; + sbp_msg_t test_msg_wrapped; + sbp_msg_type_t msg_type; + uint16_t sender_id; + uint8_t preamble; + uint16_t crc; + const uint8_t *encoded_frame; + uint32_t frame_len; + const uint8_t *encoded_payload; + uint8_t payload_len; + + Reader get_frame_reader() const noexcept { + return Reader{encoded_frame, frame_len}; + } + + Reader get_frame_reader(uint32_t max) const noexcept { + assert(max <= frame_len); + return Reader{encoded_frame, max}; + } + + SlowReader get_slow_frame_reader() const noexcept { + return SlowReader{encoded_frame, frame_len}; + } + + Writer get_frame_writer() const noexcept { return Writer{frame_len}; } + + Writer get_frame_writer(uint32_t max) const noexcept { return Writer{max}; } + + SlowWriter get_slow_frame_writer() const noexcept { + return SlowWriter{frame_len}; + } + }; + + TestMsgInfo get_test_msg_info() const noexcept { + TestMsgInfo info; + memcpy(&info.test_msg, &test_msg_, sizeof(test_msg_)); + memcpy(&info.test_msg_wrapped.ssr_flag_high_level_dep_a, &test_msg_, + sizeof(test_msg_)); + info.msg_type = static_cast(SbpMsgSsrFlagHighLevelDepA); + info.sender_id = 66; + info.preamble = 0x55; + info.crc = 0x0369; + info.encoded_frame = encoded_frame_; + info.frame_len = sizeof(encoded_frame_); + info.encoded_payload = encoded_payload_; + info.payload_len = 31; + + return info; + } + + protected: + void comparison_tests(const sbp_msg_ssr_flag_high_level_dep_a_t &lesser, + const sbp_msg_ssr_flag_high_level_dep_a_t &greater) { + sbp_msg_t wrapped_lesser = + sbp::MessageTraits::to_sbp_msg( + lesser); + sbp_msg_t wrapped_greater = + sbp::MessageTraits::to_sbp_msg( + greater); + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_cmp(&lesser, &lesser), 0); + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_cmp(&greater, &greater), 0); + EXPECT_LE(sbp_msg_ssr_flag_high_level_dep_a_cmp(&lesser, &greater), 0); + EXPECT_GT(sbp_msg_ssr_flag_high_level_dep_a_cmp(&greater, &lesser), 0); + + EXPECT_EQ(sbp_message_cmp(SbpMsgSsrFlagHighLevelDepA, &wrapped_lesser, + &wrapped_lesser), + 0); + EXPECT_EQ(sbp_message_cmp(SbpMsgSsrFlagHighLevelDepA, &wrapped_greater, + &wrapped_greater), + 0); + EXPECT_LE(sbp_message_cmp(SbpMsgSsrFlagHighLevelDepA, &wrapped_lesser, + &wrapped_greater), + 0); + EXPECT_GT(sbp_message_cmp(SbpMsgSsrFlagHighLevelDepA, &wrapped_greater, + &wrapped_lesser), + 0); + + // lesser vs lesser + EXPECT_TRUE(lesser == lesser); + EXPECT_FALSE(lesser != lesser); + EXPECT_FALSE(lesser < lesser); + EXPECT_TRUE(lesser <= lesser); + EXPECT_FALSE(lesser > lesser); + EXPECT_TRUE(lesser >= lesser); + + // greater vs greater + EXPECT_TRUE(greater == greater); + EXPECT_FALSE(greater != greater); + EXPECT_FALSE(greater < greater); + EXPECT_TRUE(greater <= greater); + EXPECT_FALSE(greater > greater); + EXPECT_TRUE(greater >= greater); + + // lesser vs greater + EXPECT_FALSE(lesser == greater); + EXPECT_TRUE(lesser != greater); + EXPECT_TRUE(lesser < greater); + EXPECT_TRUE(lesser <= greater); + EXPECT_FALSE(lesser > greater); + EXPECT_FALSE(lesser >= greater); + + // greater vs lesser + EXPECT_FALSE(greater == lesser); + EXPECT_TRUE(greater != lesser); + EXPECT_FALSE(greater < lesser); + EXPECT_FALSE(greater <= lesser); + EXPECT_TRUE(greater > lesser); + EXPECT_TRUE(greater >= lesser); + } + + template ::value, bool> = true> + void make_lesser_greater(T &lesser, T &greater) { + if (lesser > std::numeric_limits::min()) { + lesser--; + } else { + greater++; + } + } + + template ::value, bool> = true> + void make_lesser_greater(T &lesser, T &greater) { + (void)lesser; + greater += static_cast(1.0); + } + + void make_lesser_greater(sbp_string_t &lesser, sbp_string_t &greater) { + if (greater.data[0] == 'z') { + lesser.data[0]--; + } else { + greater.data[0]++; + } + } + + template + void make_lesser_greater(char (&lesser)[N], char (&greater)[N]) { + if (lesser[0] == 'z') { + lesser[0]--; + } else { + greater[0]++; + } + } + + private: + sbp_msg_ssr_flag_high_level_dep_a_t test_msg_{}; + uint8_t encoded_frame_[31 + 8] = { + 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, + 0, 30, 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + }; + uint8_t encoded_payload_[31] = { + 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, + 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, + }; +}; + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, EncodedLen) { + auto info = get_test_msg_info(); + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_encoded_len(&info.test_msg), + info.payload_len); + + EXPECT_EQ(sbp_message_encoded_len(SbpMsgSsrFlagHighLevelDepA, + &info.test_msg_wrapped), + info.payload_len); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, EncodeToBuf) { + auto info = get_test_msg_info(); + uint8_t buf[31]; + uint8_t n_written; + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_encode( + &buf[0], sizeof(buf), &n_written, &info.test_msg), + SBP_OK); + EXPECT_EQ(n_written, 31); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); + + memset(&buf[0], 0, sizeof(buf)); + EXPECT_EQ( + sbp_message_encode(&buf[0], sizeof(buf), &n_written, + SbpMsgSsrFlagHighLevelDepA, &info.test_msg_wrapped), + SBP_OK); + EXPECT_EQ(n_written, 31); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + EncodeToBufWithoutNwritten) { + auto info = get_test_msg_info(); + uint8_t buf[31]; + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_encode(&buf[0], sizeof(buf), + nullptr, &info.test_msg), + SBP_OK); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); +} +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + EncodedToBufUnderflow) { + auto info = get_test_msg_info(); + uint8_t buf[31]; + + for (uint8_t i = 0; i < 31; i++) { + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_encode(&buf[0], i, nullptr, + &info.test_msg), + SBP_ENCODE_ERROR); + } +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, DecodeFromBuf) { + auto info = get_test_msg_info(); + sbp_msg_ssr_flag_high_level_dep_a_t msg{}; + uint8_t n_read; + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_decode( + &info.encoded_payload[0], info.payload_len, &n_read, &msg), + SBP_OK); + EXPECT_EQ(n_read, 31); + EXPECT_EQ(msg, info.test_msg); + + sbp_msg_t wrapped_msg{}; + EXPECT_EQ( + sbp_message_decode(&info.encoded_payload[0], info.payload_len, &n_read, + SbpMsgSsrFlagHighLevelDepA, &wrapped_msg), + SBP_OK); + EXPECT_EQ(n_read, 31); + EXPECT_EQ(msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + DecodeFromBufWithoutNread) { + auto info = get_test_msg_info(); + sbp_msg_ssr_flag_high_level_dep_a_t msg{}; + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_decode( + &info.encoded_payload[0], info.payload_len, nullptr, &msg), + SBP_OK); + EXPECT_EQ(msg, info.test_msg); +} +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + DecodeFromBufUnderflow) { + auto info = get_test_msg_info(); + sbp_msg_ssr_flag_high_level_dep_a_t msg{}; + + for (uint8_t i = 0; i < info.payload_len; i++) { + int expected_return = SBP_DECODE_ERROR; + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_decode(&info.encoded_payload[0], + i, nullptr, &msg), + expected_return); + } +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + ReceiveThroughSbpState) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto reader = info.get_frame_reader(); + sbp_state_set_io_context(&state, &reader); + + CHandler handler{&state}; + + while (reader.remaining() > 0) { + EXPECT_GE(sbp_process(&state, &Reader::read_static), SBP_OK); + } + + EXPECT_EQ(handler.outputs.size(), 1); + EXPECT_EQ(handler.outputs[0].sender_id, info.sender_id); + EXPECT_EQ(handler.outputs[0].msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + ReceiveThroughSbpStateUnderflow) { + auto info = get_test_msg_info(); + + for (uint32_t i = 0; i < info.frame_len; i++) { + sbp_state_t state; + sbp_state_init(&state); + + auto reader = info.get_frame_reader(i); + sbp_state_set_io_context(&state, &reader); + + CHandler handler(&state); + + int most_recent_return = sbp_process(&state, &Reader::read_static); + while (most_recent_return == SBP_OK || reader.remaining() > 0) { + most_recent_return = sbp_process(&state, &Reader::read_static); + } + + EXPECT_NE(most_recent_return, SBP_OK); + EXPECT_EQ(reader.remaining(), 0); + + EXPECT_EQ(handler.outputs.size(), 0); + } +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, SlowRead) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto reader = info.get_slow_frame_reader(); + sbp_state_set_io_context(&state, &reader); + + CHandler handler{&state}; + + while (reader.remaining() > 0) { + EXPECT_GE(sbp_process(&state, &SlowReader::read_static), SBP_OK); + } + + EXPECT_EQ(handler.outputs.size(), 1); + EXPECT_EQ(handler.outputs[0].sender_id, info.sender_id); + EXPECT_EQ(handler.outputs[0].msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, BadCRC) { + auto info = get_test_msg_info(); + uint8_t buf[SBP_MAX_FRAME_LEN]; + memcpy(&buf[0], info.encoded_frame, info.frame_len); + + // Introduce a CRC error which should cause an error return and no callback + buf[info.frame_len - 1]++; + + sbp_state_t state; + sbp_state_init(&state); + + Reader reader{buf, info.frame_len}; + sbp_state_set_io_context(&state, &reader); + + CHandler handler{&state}; + + while (reader.remaining() > 0) { + int res = sbp_process(&state, &Reader::read_static); + EXPECT_EQ(res, reader.remaining() == 0 ? SBP_CRC_ERROR : SBP_OK); + } + + EXPECT_EQ(handler.outputs.size(), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + SendThroughSbpState) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto writer = info.get_frame_writer(); + sbp_state_set_io_context(&state, &writer); + + EXPECT_EQ(sbp_msg_ssr_flag_high_level_dep_a_send( + &state, info.sender_id, &info.test_msg, &Writer::write_c), + SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), &info.encoded_frame[0], writer.len()), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + SendWrappedThroughSbpState) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto writer = info.get_frame_writer(); + sbp_state_set_io_context(&state, &writer); + + EXPECT_EQ(sbp_message_send(&state, SbpMsgSsrFlagHighLevelDepA, info.sender_id, + &info.test_msg_wrapped, &Writer::write_c), + SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), info.encoded_frame, info.frame_len), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + SendThroughSbpStateUnderflow) { + auto info = get_test_msg_info(); + + for (uint32_t i = 0; i < info.frame_len; i++) { + sbp_state_t state; + sbp_state_init(&state); + + auto writer = info.get_frame_writer(i); + sbp_state_set_io_context(&state, &writer); + + EXPECT_NE( + sbp_message_send(&state, SbpMsgSsrFlagHighLevelDepA, info.sender_id, + &info.test_msg_wrapped, &Writer::write_c), + SBP_OK); + EXPECT_EQ(writer.len(), i); + EXPECT_EQ(memcmp(writer.data(), info.encoded_frame, i), 0); + } +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + DISABLED_SlowWrite) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto writer = info.get_slow_frame_writer(); + sbp_state_set_io_context(&state, &writer); + + EXPECT_EQ(sbp_message_send(&state, SbpMsgSsrFlagHighLevelDepA, info.sender_id, + &info.test_msg_wrapped, &SlowWriter::write_c), + SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), info.encoded_frame, info.frame_len), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, Comparison) { + auto info = get_test_msg_info(); + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.chain_id, greater.chain_id); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.corr_time.tow, greater.corr_time.tow); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.corr_time.wn, greater.corr_time.wn); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.obs_time.tow, greater.obs_time.tow); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.obs_time.wn, greater.obs_time.wn); + comparison_tests(lesser, greater); + } + + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.reserved[0], greater.reserved[0]); + comparison_tests(lesser, greater); + } + + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.reserved[1], greater.reserved[1]); + comparison_tests(lesser, greater); + } + + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.reserved[2], greater.reserved[2]); + comparison_tests(lesser, greater); + } + + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.reserved[3], greater.reserved[3]); + comparison_tests(lesser, greater); + } + + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.reserved[4], greater.reserved[4]); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.ssr_sol_id, greater.ssr_sol_id); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.tile_id, greater.tile_id); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.tile_set_id, greater.tile_set_id); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_bds_sat, greater.use_bds_sat); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_gal_sat, greater.use_gal_sat); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_gps_sat, greater.use_gps_sat); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_iono_grid_point_sat_los, + greater.use_iono_grid_point_sat_los); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_iono_grid_points, + greater.use_iono_grid_points); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_iono_tile_sat_los, + greater.use_iono_tile_sat_los); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_qzss_sat, greater.use_qzss_sat); + comparison_tests(lesser, greater); + } + { + sbp_msg_ssr_flag_high_level_dep_a_t lesser = info.test_msg; + sbp_msg_ssr_flag_high_level_dep_a_t greater = info.test_msg; + make_lesser_greater(lesser.use_tropo_grid_points, + greater.use_tropo_grid_points); + comparison_tests(lesser, greater); + } +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsProperties) { + // EXPECT_EQ(sbp::MessageTraits::id, + // SbpMsgSsrFlagHighLevelDepA); + EXPECT_STREQ(sbp::MessageTraits::name, + "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsFromSbpMsgT) { + auto info = get_test_msg_info(); + + const sbp_msg_t &const_sbp_msg_t = info.test_msg_wrapped; + sbp_msg_t &non_const_sbp_msg_t = info.test_msg_wrapped; + + const sbp_msg_ssr_flag_high_level_dep_a_t &const_unwrapped = + sbp::MessageTraits::get( + const_sbp_msg_t); + sbp_msg_ssr_flag_high_level_dep_a_t &non_const_unwrapped = + sbp::MessageTraits::get( + non_const_sbp_msg_t); + + EXPECT_EQ((const void *)&const_sbp_msg_t, (const void *)&const_unwrapped); + EXPECT_EQ((void *)&non_const_sbp_msg_t, (void *)&non_const_unwrapped); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsToSbpMsgT) { + auto info = get_test_msg_info(); + + sbp_msg_t msg1 = + sbp::MessageTraits::to_sbp_msg( + info.test_msg); + EXPECT_EQ(msg1.ssr_flag_high_level_dep_a, info.test_msg); + + sbp_msg_t msg2; + sbp::MessageTraits::to_sbp_msg( + info.test_msg, &msg2); + EXPECT_EQ(msg2.ssr_flag_high_level_dep_a, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsEncodedLen) { + auto info = get_test_msg_info(); + EXPECT_EQ( + sbp::MessageTraits::encoded_len( + info.test_msg), + info.payload_len); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsSendThroughSbpState) { + auto info = get_test_msg_info(); + sbp_state_t state; + sbp_state_init(&state); + + auto writer = info.get_frame_writer(); + sbp_state_set_io_context(&state, &writer); + + EXPECT_EQ(sbp::MessageTraits::send( + &state, info.sender_id, info.test_msg, &Writer::write_c), + SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), &info.encoded_frame[0], writer.len()), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsEncodeToBuf) { + auto info = get_test_msg_info(); + uint8_t buf[31]; + uint8_t n_written; + + EXPECT_EQ(sbp::MessageTraits::encode( + &buf[0], sizeof(buf), &n_written, info.test_msg), + SBP_OK); + EXPECT_EQ(n_written, 31); + EXPECT_EQ(memcmp(&buf[0], info.encoded_payload, 31), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + CppTraitsDecodeFromBuf) { + auto info = get_test_msg_info(); + sbp_msg_ssr_flag_high_level_dep_a_t msg{}; + uint8_t n_read; + + EXPECT_EQ(sbp::MessageTraits::decode( + &info.encoded_payload[0], info.payload_len, &n_read, &msg), + SBP_OK); + EXPECT_EQ(n_read, 31); + EXPECT_EQ(msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + ReceiveThroughMessageHandler) { + auto info = get_test_msg_info(); + auto reader = info.get_frame_reader(); + + sbp::State state{}; + state.set_reader(&reader); + + CppHandler handler{&state}; + + while (reader.remaining() > 0) { + EXPECT_GE(state.process(), SBP_OK); + } + + EXPECT_EQ(handler.outputs.size(), 1); + EXPECT_EQ(handler.outputs[0].sender_id, info.sender_id); + EXPECT_EQ(handler.outputs[0].msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + ProcessSbpMsgTThroughMessageHandler) { + auto info = get_test_msg_info(); + sbp::State state{}; + CppHandler handler(&state); + + state.process_message(info.sender_id, SbpMsgSsrFlagHighLevelDepA, + &info.test_msg_wrapped); + + EXPECT_EQ(handler.outputs.size(), 1); + EXPECT_EQ(handler.outputs[0].sender_id, info.sender_id); + EXPECT_EQ(handler.outputs[0].msg, info.test_msg); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + SendThroughCppState) { + auto info = get_test_msg_info(); + auto writer = info.get_frame_writer(); + + sbp::State state{}; + state.set_writer(&writer); + + EXPECT_EQ(state.send_message(info.sender_id, info.test_msg), SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), info.encoded_frame, info.frame_len), 0); +} + +TEST_F(Testauto_check_sbp_integrity_MsgSsrFlagHighLevelDepA0, + SendWrappedSbpMsgTThroughCppState) { + auto info = get_test_msg_info(); + auto writer = info.get_frame_writer(); + + sbp::State state{}; + state.set_writer(&writer); + + EXPECT_EQ(state.send_message(info.sender_id, SbpMsgSsrFlagHighLevelDepA, + info.test_msg_wrapped), + SBP_OK); + EXPECT_EQ(writer.len(), info.frame_len); + EXPECT_EQ(memcmp(writer.data(), info.encoded_frame, info.frame_len), 0); +} + +} // namespace diff --git a/docs/sbp.pdf b/docs/sbp.pdf index a9e6a28390..3cace5b8cb 100644 Binary files a/docs/sbp.pdf and b/docs/sbp.pdf differ diff --git a/haskell/src/SwiftNav/SBP/Integrity.hs b/haskell/src/SwiftNav/SBP/Integrity.hs index f4782d9d5a..d278c06d43 100644 --- a/haskell/src/SwiftNav/SBP/Integrity.hs +++ b/haskell/src/SwiftNav/SBP/Integrity.hs @@ -76,10 +76,89 @@ instance Binary IntegritySSRHeader where $(makeJSON "_integritySSRHeader_" ''IntegritySSRHeader) $(makeLenses ''IntegritySSRHeader) +msgSsrFlagHighLevelDepA :: Word16 +msgSsrFlagHighLevelDepA = 0x0BB9 + +-- | SBP class for message MSG_SSR_FLAG_HIGH_LEVEL_DEP_A (0x0BB9). +-- +-- Deprecated. +data MsgSsrFlagHighLevelDepA = MsgSsrFlagHighLevelDepA + { _msgSsrFlagHighLevelDepA_obs_time :: !GpsTimeSec + -- ^ GNSS reference time of the observation used to generate the flag. + , _msgSsrFlagHighLevelDepA_corr_time :: !GpsTimeSec + -- ^ GNSS reference time of the correction associated to the flag. + , _msgSsrFlagHighLevelDepA_ssr_sol_id :: !Word8 + -- ^ SSR Solution ID. + , _msgSsrFlagHighLevelDepA_tile_set_id :: !Word16 + -- ^ Unique identifier of the set this tile belongs to. + , _msgSsrFlagHighLevelDepA_tile_id :: !Word16 + -- ^ Unique identifier of this tile in the tile set. + , _msgSsrFlagHighLevelDepA_chain_id :: !Word8 + -- ^ Chain and type of flag. + , _msgSsrFlagHighLevelDepA_use_gps_sat :: !Word8 + -- ^ Use GPS satellites. + , _msgSsrFlagHighLevelDepA_use_gal_sat :: !Word8 + -- ^ Use GAL satellites. + , _msgSsrFlagHighLevelDepA_use_bds_sat :: !Word8 + -- ^ Use BDS satellites. + , _msgSsrFlagHighLevelDepA_use_qzss_sat :: !Word8 + -- ^ Use QZSS satellites. + , _msgSsrFlagHighLevelDepA_reserved :: ![Word8] + -- ^ Reserved + , _msgSsrFlagHighLevelDepA_use_tropo_grid_points :: !Word8 + -- ^ Use tropo grid points. + , _msgSsrFlagHighLevelDepA_use_iono_grid_points :: !Word8 + -- ^ Use iono grid points. + , _msgSsrFlagHighLevelDepA_use_iono_tile_sat_los :: !Word8 + -- ^ Use iono tile satellite LoS. + , _msgSsrFlagHighLevelDepA_use_iono_grid_point_sat_los :: !Word8 + -- ^ Use iono grid point satellite LoS. + } deriving ( Show, Read, Eq ) + +instance Binary MsgSsrFlagHighLevelDepA where + get = do + _msgSsrFlagHighLevelDepA_obs_time <- get + _msgSsrFlagHighLevelDepA_corr_time <- get + _msgSsrFlagHighLevelDepA_ssr_sol_id <- getWord8 + _msgSsrFlagHighLevelDepA_tile_set_id <- getWord16le + _msgSsrFlagHighLevelDepA_tile_id <- getWord16le + _msgSsrFlagHighLevelDepA_chain_id <- getWord8 + _msgSsrFlagHighLevelDepA_use_gps_sat <- getWord8 + _msgSsrFlagHighLevelDepA_use_gal_sat <- getWord8 + _msgSsrFlagHighLevelDepA_use_bds_sat <- getWord8 + _msgSsrFlagHighLevelDepA_use_qzss_sat <- getWord8 + _msgSsrFlagHighLevelDepA_reserved <- replicateM 5 getWord8 + _msgSsrFlagHighLevelDepA_use_tropo_grid_points <- getWord8 + _msgSsrFlagHighLevelDepA_use_iono_grid_points <- getWord8 + _msgSsrFlagHighLevelDepA_use_iono_tile_sat_los <- getWord8 + _msgSsrFlagHighLevelDepA_use_iono_grid_point_sat_los <- getWord8 + pure MsgSsrFlagHighLevelDepA {..} + + put MsgSsrFlagHighLevelDepA {..} = do + put _msgSsrFlagHighLevelDepA_obs_time + put _msgSsrFlagHighLevelDepA_corr_time + putWord8 _msgSsrFlagHighLevelDepA_ssr_sol_id + putWord16le _msgSsrFlagHighLevelDepA_tile_set_id + putWord16le _msgSsrFlagHighLevelDepA_tile_id + putWord8 _msgSsrFlagHighLevelDepA_chain_id + putWord8 _msgSsrFlagHighLevelDepA_use_gps_sat + putWord8 _msgSsrFlagHighLevelDepA_use_gal_sat + putWord8 _msgSsrFlagHighLevelDepA_use_bds_sat + putWord8 _msgSsrFlagHighLevelDepA_use_qzss_sat + mapM_ putWord8 _msgSsrFlagHighLevelDepA_reserved + putWord8 _msgSsrFlagHighLevelDepA_use_tropo_grid_points + putWord8 _msgSsrFlagHighLevelDepA_use_iono_grid_points + putWord8 _msgSsrFlagHighLevelDepA_use_iono_tile_sat_los + putWord8 _msgSsrFlagHighLevelDepA_use_iono_grid_point_sat_los + +$(makeSBP 'msgSsrFlagHighLevelDepA ''MsgSsrFlagHighLevelDepA) +$(makeJSON "_msgSsrFlagHighLevelDepA_" ''MsgSsrFlagHighLevelDepA) +$(makeLenses ''MsgSsrFlagHighLevelDepA) + msgSsrFlagHighLevel :: Word16 -msgSsrFlagHighLevel = 0x0BB9 +msgSsrFlagHighLevel = 0x0BBA --- | SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BB9). +-- | SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BBA). -- -- Integrity monitoring flags for multiple aggregated elements. An element -- could be a satellite, SSR grid point, or SSR tile. A group of aggregated @@ -109,8 +188,11 @@ msgSsrFlagHighLevel = 0x0BB9 data MsgSsrFlagHighLevel = MsgSsrFlagHighLevel { _msgSsrFlagHighLevel_obs_time :: !GpsTimeSec -- ^ GNSS reference time of the observation used to generate the flag. - , _msgSsrFlagHighLevel_corr_time :: !GpsTimeSec - -- ^ GNSS reference time of the correction associated to the flag. + , _msgSsrFlagHighLevel_iono_corr_time :: !GpsTimeSec + -- ^ GNSS reference time of the ionospheric correction associated to the + -- flag. + , _msgSsrFlagHighLevel_sat_corr_time :: !GpsTimeSec + -- ^ GNSS reference time of the satellite correction associated to the flag. , _msgSsrFlagHighLevel_ssr_sol_id :: !Word8 -- ^ SSR Solution ID. , _msgSsrFlagHighLevel_tile_set_id :: !Word16 @@ -142,7 +224,8 @@ data MsgSsrFlagHighLevel = MsgSsrFlagHighLevel instance Binary MsgSsrFlagHighLevel where get = do _msgSsrFlagHighLevel_obs_time <- get - _msgSsrFlagHighLevel_corr_time <- get + _msgSsrFlagHighLevel_iono_corr_time <- get + _msgSsrFlagHighLevel_sat_corr_time <- get _msgSsrFlagHighLevel_ssr_sol_id <- getWord8 _msgSsrFlagHighLevel_tile_set_id <- getWord16le _msgSsrFlagHighLevel_tile_id <- getWord16le @@ -160,7 +243,8 @@ instance Binary MsgSsrFlagHighLevel where put MsgSsrFlagHighLevel {..} = do put _msgSsrFlagHighLevel_obs_time - put _msgSsrFlagHighLevel_corr_time + put _msgSsrFlagHighLevel_iono_corr_time + put _msgSsrFlagHighLevel_sat_corr_time putWord8 _msgSsrFlagHighLevel_ssr_sol_id putWord16le _msgSsrFlagHighLevel_tile_set_id putWord16le _msgSsrFlagHighLevel_tile_id diff --git a/haskell/src/SwiftNav/SBP/Msg.hs b/haskell/src/SwiftNav/SBP/Msg.hs index cbd229261f..06b92befa7 100644 --- a/haskell/src/SwiftNav/SBP/Msg.hs +++ b/haskell/src/SwiftNav/SBP/Msg.hs @@ -237,6 +237,7 @@ data SBPMsg = | SBPMsgSsrCodeBiases MsgSsrCodeBiases Msg | SBPMsgSsrCodePhaseBiasesBounds MsgSsrCodePhaseBiasesBounds Msg | SBPMsgSsrFlagHighLevel MsgSsrFlagHighLevel Msg + | SBPMsgSsrFlagHighLevelDepA MsgSsrFlagHighLevelDepA Msg | SBPMsgSsrFlagIonoGridPointSatLos MsgSsrFlagIonoGridPointSatLos Msg | SBPMsgSsrFlagIonoGridPoints MsgSsrFlagIonoGridPoints Msg | SBPMsgSsrFlagIonoTileSatLos MsgSsrFlagIonoTileSatLos Msg @@ -489,6 +490,7 @@ instance Binary SBPMsg where | _msgSBPType == msgSsrCodeBiases = SBPMsgSsrCodeBiases (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgSsrCodePhaseBiasesBounds = SBPMsgSsrCodePhaseBiasesBounds (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgSsrFlagHighLevel = SBPMsgSsrFlagHighLevel (decode (fromStrict (unBytes _msgSBPPayload))) m + | _msgSBPType == msgSsrFlagHighLevelDepA = SBPMsgSsrFlagHighLevelDepA (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgSsrFlagIonoGridPointSatLos = SBPMsgSsrFlagIonoGridPointSatLos (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgSsrFlagIonoGridPoints = SBPMsgSsrFlagIonoGridPoints (decode (fromStrict (unBytes _msgSBPPayload))) m | _msgSBPType == msgSsrFlagIonoTileSatLos = SBPMsgSsrFlagIonoTileSatLos (decode (fromStrict (unBytes _msgSBPPayload))) m @@ -733,6 +735,7 @@ instance Binary SBPMsg where encoder (SBPMsgSsrCodeBiases _ m) = put m encoder (SBPMsgSsrCodePhaseBiasesBounds _ m) = put m encoder (SBPMsgSsrFlagHighLevel _ m) = put m + encoder (SBPMsgSsrFlagHighLevelDepA _ m) = put m encoder (SBPMsgSsrFlagIonoGridPointSatLos _ m) = put m encoder (SBPMsgSsrFlagIonoGridPoints _ m) = put m encoder (SBPMsgSsrFlagIonoTileSatLos _ m) = put m @@ -981,6 +984,7 @@ instance FromJSON SBPMsg where | msgType == msgSsrCodeBiases = SBPMsgSsrCodeBiases <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgSsrCodePhaseBiasesBounds = SBPMsgSsrCodePhaseBiasesBounds <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgSsrFlagHighLevel = SBPMsgSsrFlagHighLevel <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj + | msgType == msgSsrFlagHighLevelDepA = SBPMsgSsrFlagHighLevelDepA <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgSsrFlagIonoGridPointSatLos = SBPMsgSsrFlagIonoGridPointSatLos <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgSsrFlagIonoGridPoints = SBPMsgSsrFlagIonoGridPoints <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj | msgType == msgSsrFlagIonoTileSatLos = SBPMsgSsrFlagIonoTileSatLos <$> pure (decode (fromStrict (unBytes payload))) <*> parseJSON obj @@ -1230,6 +1234,7 @@ instance ToJSON SBPMsg where toJSON (SBPMsgSsrCodeBiases n m) = toJSON n <<>> toJSON m toJSON (SBPMsgSsrCodePhaseBiasesBounds n m) = toJSON n <<>> toJSON m toJSON (SBPMsgSsrFlagHighLevel n m) = toJSON n <<>> toJSON m + toJSON (SBPMsgSsrFlagHighLevelDepA n m) = toJSON n <<>> toJSON m toJSON (SBPMsgSsrFlagIonoGridPointSatLos n m) = toJSON n <<>> toJSON m toJSON (SBPMsgSsrFlagIonoGridPoints n m) = toJSON n <<>> toJSON m toJSON (SBPMsgSsrFlagIonoTileSatLos n m) = toJSON n <<>> toJSON m @@ -1473,6 +1478,7 @@ instance HasMsg SBPMsg where msg f (SBPMsgSsrCodeBiases n m) = SBPMsgSsrCodeBiases n <$> f m msg f (SBPMsgSsrCodePhaseBiasesBounds n m) = SBPMsgSsrCodePhaseBiasesBounds n <$> f m msg f (SBPMsgSsrFlagHighLevel n m) = SBPMsgSsrFlagHighLevel n <$> f m + msg f (SBPMsgSsrFlagHighLevelDepA n m) = SBPMsgSsrFlagHighLevelDepA n <$> f m msg f (SBPMsgSsrFlagIonoGridPointSatLos n m) = SBPMsgSsrFlagIonoGridPointSatLos n <$> f m msg f (SBPMsgSsrFlagIonoGridPoints n m) = SBPMsgSsrFlagIonoGridPoints n <$> f m msg f (SBPMsgSsrFlagIonoTileSatLos n m) = SBPMsgSsrFlagIonoTileSatLos n <$> f m diff --git a/java/src/com/swiftnav/sbp/acquisition/AcqSvProfile.java b/java/src/com/swiftnav/sbp/acquisition/AcqSvProfile.java index f9e07353d1..063d88e93d 100644 --- a/java/src/com/swiftnav/sbp/acquisition/AcqSvProfile.java +++ b/java/src/com/swiftnav/sbp/acquisition/AcqSvProfile.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class AcqSvProfile extends SBPStruct { - + /** SV search job type (deep, fallback, etc) */ public int job_type; - + /** Acquisition status 1 is Success, 0 is Failure */ public int status; - + /** CN0 value. Only valid if status is '1' */ public int cn0; - + /** Acquisition integration time */ public int int_time; - + /** GNSS signal for which acquisition was attempted */ public GnssSignal sid; - + /** Acq frequency bin width */ public int bin_width; - + /** Timestamp of the job complete event */ public long timestamp; - + /** Time spent to search for sid.code */ public long time_spent; - + /** Doppler range lowest frequency */ public int cf_min; - + /** Doppler range highest frequency */ public int cf_max; - + /** Doppler value of detected peak. Only valid if status is '1' */ public int cf; - + /** Codephase of detected peak. Only valid if status is '1' */ public long cp; + - public AcqSvProfile() {} + public AcqSvProfile () {} @Override public AcqSvProfile parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/acquisition/AcqSvProfileDep.java b/java/src/com/swiftnav/sbp/acquisition/AcqSvProfileDep.java index f2a4557f03..7d3412e7b4 100644 --- a/java/src/com/swiftnav/sbp/acquisition/AcqSvProfileDep.java +++ b/java/src/com/swiftnav/sbp/acquisition/AcqSvProfileDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class AcqSvProfileDep extends SBPStruct { - + /** SV search job type (deep, fallback, etc) */ public int job_type; - + /** Acquisition status 1 is Success, 0 is Failure */ public int status; - + /** CN0 value. Only valid if status is '1' */ public int cn0; - + /** Acquisition integration time */ public int int_time; - + /** GNSS signal for which acquisition was attempted */ public GnssSignalDep sid; - + /** Acq frequency bin width */ public int bin_width; - + /** Timestamp of the job complete event */ public long timestamp; - + /** Time spent to search for sid.code */ public long time_spent; - + /** Doppler range lowest frequency */ public int cf_min; - + /** Doppler range highest frequency */ public int cf_max; - + /** Doppler value of detected peak. Only valid if status is '1' */ public int cf; - + /** Codephase of detected peak. Only valid if status is '1' */ public long cp; + - public AcqSvProfileDep() {} + public AcqSvProfileDep () {} @Override public AcqSvProfileDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResult.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResult.java index 24e49abbd2..feaa1245bf 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResult.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResult.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ACQ_RESULT (0x002F). + +/** SBP class for message MSG_ACQ_RESULT (0x002F). * - *

You can have MSG_ACQ_RESULT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ACQ_RESULT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message describes the results from an attempted GPS signal acquisition search for a - * satellite PRN over a code phase/carrier frequency range. It contains the parameters of the point - * in the acquisition search space with the best carrier-to-noise (CN/0) ratio. - */ + * This message describes the results from an attempted GPS signal acquisition + * search for a satellite PRN over a code phase/carrier frequency range. It + * contains the parameters of the point in the acquisition search space with + * the best carrier-to-noise (CN/0) ratio. */ + public class MsgAcqResult extends SBPMessage { public static final int TYPE = 0x002F; + /** CN/0 of best point */ public float cn0; - + /** Code phase of best point */ public float cp; - + /** Carrier frequency of best point */ public float cf; - + /** GNSS signal for which acquisition was attempted */ public GnssSignal sid; + - public MsgAcqResult(int sender) { - super(sender, TYPE); - } - - public MsgAcqResult() { - super(TYPE); - } - - public MsgAcqResult(SBPMessage msg) throws SBPBinaryException { + public MsgAcqResult (int sender) { super(sender, TYPE); } + public MsgAcqResult () { super(TYPE); } + public MsgAcqResult (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqResult, expected 47, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqResult, expected 47, actual " + msg.type); } @Override @@ -65,7 +68,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cn0 = parser.getFloat(); cp = parser.getFloat(); cf = parser.getFloat(); - sid = new GnssSignal().parse(parser); + sid = new GnssSignal().parse(parser); } @Override @@ -73,7 +76,7 @@ protected void build(Builder builder) { builder.putFloat(cn0); builder.putFloat(cp); builder.putFloat(cf); - sid.build(builder); + sid.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepA.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepA.java index e820153867..4c32d947b9 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepA.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ACQ_RESULT_DEP_A (0x0015). + +/** SBP class for message MSG_ACQ_RESULT_DEP_A (0x0015). * - *

You can have MSG_ACQ_RESULT_DEP_A inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_ACQ_RESULT_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAcqResultDepA extends SBPMessage { public static final int TYPE = 0x0015; - /** - * SNR of best point. Currently dimensionless, but will have units of dB Hz in the revision of - * this message. - */ + + /** SNR of best point. Currently dimensionless, but will have units of dB + * Hz in the revision of this message. */ public float snr; - + /** Code phase of best point */ public float cp; - + /** Carrier frequency of best point */ public float cf; - - /** PRN-1 identifier of the satellite signal for which acquisition was attempted */ + + /** PRN-1 identifier of the satellite signal for which acquisition was + * attempted */ public int prn; + - public MsgAcqResultDepA(int sender) { - super(sender, TYPE); - } - - public MsgAcqResultDepA() { - super(TYPE); - } - - public MsgAcqResultDepA(SBPMessage msg) throws SBPBinaryException { + public MsgAcqResultDepA (int sender) { super(sender, TYPE); } + public MsgAcqResultDepA () { super(TYPE); } + public MsgAcqResultDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqResultDepA, expected 21, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqResultDepA, expected 21, actual " + msg.type); } @Override @@ -66,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { snr = parser.getFloat(); cp = parser.getFloat(); cf = parser.getFloat(); - prn = parser.getU8(); + prn = parser.getU8(); } @Override @@ -74,7 +75,7 @@ protected void build(Builder builder) { builder.putFloat(snr); builder.putFloat(cp); builder.putFloat(cf); - builder.putU8(prn); + builder.putU8(prn); } @Override diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepB.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepB.java index 1016356188..f5f17cdcbf 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepB.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ACQ_RESULT_DEP_B (0x0014). + +/** SBP class for message MSG_ACQ_RESULT_DEP_B (0x0014). * - *

You can have MSG_ACQ_RESULT_DEP_B inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_ACQ_RESULT_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAcqResultDepB extends SBPMessage { public static final int TYPE = 0x0014; - /** - * SNR of best point. Currently in arbitrary SNR points, but will be in units of dB Hz in a - * later revision of this message. - */ + + /** SNR of best point. Currently in arbitrary SNR points, but will be in + * units of dB Hz in a later revision of this message. */ public float snr; - + /** Code phase of best point */ public float cp; - + /** Carrier frequency of best point */ public float cf; - + /** GNSS signal for which acquisition was attempted */ public GnssSignalDep sid; + - public MsgAcqResultDepB(int sender) { - super(sender, TYPE); - } - - public MsgAcqResultDepB() { - super(TYPE); - } - - public MsgAcqResultDepB(SBPMessage msg) throws SBPBinaryException { + public MsgAcqResultDepB (int sender) { super(sender, TYPE); } + public MsgAcqResultDepB () { super(TYPE); } + public MsgAcqResultDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqResultDepB, expected 20, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqResultDepB, expected 20, actual " + msg.type); } @Override @@ -66,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { snr = parser.getFloat(); cp = parser.getFloat(); cf = parser.getFloat(); - sid = new GnssSignalDep().parse(parser); + sid = new GnssSignalDep().parse(parser); } @Override @@ -74,7 +74,7 @@ protected void build(Builder builder) { builder.putFloat(snr); builder.putFloat(cp); builder.putFloat(cf); - sid.build(builder); + sid.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepC.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepC.java index d6a51f5c07..7a0a069820 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepC.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqResultDepC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ACQ_RESULT_DEP_C (0x001F). + +/** SBP class for message MSG_ACQ_RESULT_DEP_C (0x001F). * - *

You can have MSG_ACQ_RESULT_DEP_C inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_ACQ_RESULT_DEP_C inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAcqResultDepC extends SBPMessage { public static final int TYPE = 0x001F; + /** CN/0 of best point */ public float cn0; - + /** Code phase of best point */ public float cp; - + /** Carrier frequency of best point */ public float cf; - + /** GNSS signal for which acquisition was attempted */ public GnssSignalDep sid; + - public MsgAcqResultDepC(int sender) { - super(sender, TYPE); - } - - public MsgAcqResultDepC() { - super(TYPE); - } - - public MsgAcqResultDepC(SBPMessage msg) throws SBPBinaryException { + public MsgAcqResultDepC (int sender) { super(sender, TYPE); } + public MsgAcqResultDepC () { super(TYPE); } + public MsgAcqResultDepC (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqResultDepC, expected 31, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqResultDepC, expected 31, actual " + msg.type); } @Override @@ -63,7 +65,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cn0 = parser.getFloat(); cp = parser.getFloat(); cf = parser.getFloat(); - sid = new GnssSignalDep().parse(parser); + sid = new GnssSignalDep().parse(parser); } @Override @@ -71,7 +73,7 @@ protected void build(Builder builder) { builder.putFloat(cn0); builder.putFloat(cp); builder.putFloat(cf); - sid.build(builder); + sid.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfile.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfile.java index 3993b57a3b..9bfae3f3b4 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfile.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfile.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ACQ_SV_PROFILE (0x002E). +/** SBP class for message MSG_ACQ_SV_PROFILE (0x002E). * - *

You can have MSG_ACQ_SV_PROFILE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ACQ_SV_PROFILE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The message describes all SV profiles during acquisition time. The message is used to debug - * and measure the performance. - */ + * The message describes all SV profiles during acquisition time. The message + * is used to debug and measure the performance. */ + public class MsgAcqSvProfile extends SBPMessage { public static final int TYPE = 0x002E; + /** SV profiles during acquisition time */ public AcqSvProfile[] acq_sv_profile; + - public MsgAcqSvProfile(int sender) { - super(sender, TYPE); - } - - public MsgAcqSvProfile() { - super(TYPE); - } - - public MsgAcqSvProfile(SBPMessage msg) throws SBPBinaryException { + public MsgAcqSvProfile (int sender) { super(sender, TYPE); } + public MsgAcqSvProfile () { super(TYPE); } + public MsgAcqSvProfile (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqSvProfile, expected 46, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqSvProfile, expected 46, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - acq_sv_profile = parser.getArray(AcqSvProfile.class); + acq_sv_profile = parser.getArray(AcqSvProfile.class); } @Override protected void build(Builder builder) { - builder.putArray(acq_sv_profile); + builder.putArray(acq_sv_profile); } @Override diff --git a/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfileDep.java b/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfileDep.java index 17f726dfb8..8bb9856343 100644 --- a/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfileDep.java +++ b/java/src/com/swiftnav/sbp/acquisition/MsgAcqSvProfileDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.acquisition; // This file was auto-generated from yaml/swiftnav/sbp/acquisition.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ACQ_SV_PROFILE_DEP (0x001E). +/** SBP class for message MSG_ACQ_SV_PROFILE_DEP (0x001E). * - *

You can have MSG_ACQ_SV_PROFILE_DEP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_ACQ_SV_PROFILE_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAcqSvProfileDep extends SBPMessage { public static final int TYPE = 0x001E; + /** SV profiles during acquisition time */ public AcqSvProfileDep[] acq_sv_profile; + - public MsgAcqSvProfileDep(int sender) { - super(sender, TYPE); - } - - public MsgAcqSvProfileDep() { - super(TYPE); - } - - public MsgAcqSvProfileDep(SBPMessage msg) throws SBPBinaryException { + public MsgAcqSvProfileDep (int sender) { super(sender, TYPE); } + public MsgAcqSvProfileDep () { super(TYPE); } + public MsgAcqSvProfileDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcqSvProfileDep, expected 30, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcqSvProfileDep, expected 30, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - acq_sv_profile = parser.getArray(AcqSvProfileDep.class); + acq_sv_profile = parser.getArray(AcqSvProfileDep.class); } @Override protected void build(Builder builder) { - builder.putArray(acq_sv_profile); + builder.putArray(acq_sv_profile); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeDepA.java b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeDepA.java index a911c92e2b..47d6058852 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeDepA.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BOOTLOADER_HANDSHAKE_DEP_A (0x00B0). +/** SBP class for message MSG_BOOTLOADER_HANDSHAKE_DEP_A (0x00B0). * - *

You can have MSG_BOOTLOADER_HANDSHAKE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BOOTLOADER_HANDSHAKE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgBootloaderHandshakeDepA extends SBPMessage { public static final int TYPE = 0x00B0; + /** Version number string (not NULL terminated) */ public int[] handshake; + - public MsgBootloaderHandshakeDepA(int sender) { - super(sender, TYPE); - } - - public MsgBootloaderHandshakeDepA() { - super(TYPE); - } - - public MsgBootloaderHandshakeDepA(SBPMessage msg) throws SBPBinaryException { + public MsgBootloaderHandshakeDepA (int sender) { super(sender, TYPE); } + public MsgBootloaderHandshakeDepA () { super(TYPE); } + public MsgBootloaderHandshakeDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBootloaderHandshakeDepA, expected 176, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBootloaderHandshakeDepA, expected 176, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - handshake = parser.getArrayofU8(); + handshake = parser.getArrayofU8(); } @Override protected void build(Builder builder) { - builder.putArrayofU8(handshake); + builder.putArrayofU8(handshake); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeReq.java b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeReq.java index c64e581d1d..0f2c10bdeb 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeReq.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,43 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BOOTLOADER_HANDSHAKE_REQ (0x00B3). +/** SBP class for message MSG_BOOTLOADER_HANDSHAKE_REQ (0x00B3). * - *

You can have MSG_BOOTLOADER_HANDSHAKE_REQ inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BOOTLOADER_HANDSHAKE_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The handshake message request from the host establishes a handshake between the device - * bootloader and the host. The response from the device is MSG_BOOTLOADER_HANDSHAKE_RESP. - */ + * The handshake message request from the host establishes a handshake between + * the device bootloader and the host. The response from the device is + * MSG_BOOTLOADER_HANDSHAKE_RESP. */ + public class MsgBootloaderHandshakeReq extends SBPMessage { public static final int TYPE = 0x00B3; - public MsgBootloaderHandshakeReq(int sender) { - super(sender, TYPE); - } - - public MsgBootloaderHandshakeReq() { - super(TYPE); - } + - public MsgBootloaderHandshakeReq(SBPMessage msg) throws SBPBinaryException { + public MsgBootloaderHandshakeReq (int sender) { super(sender, TYPE); } + public MsgBootloaderHandshakeReq () { super(TYPE); } + public MsgBootloaderHandshakeReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBootloaderHandshakeReq, expected 179, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBootloaderHandshakeReq, expected 179, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeResp.java b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeResp.java index 78b685b868..11c109b696 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeResp.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderHandshakeResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BOOTLOADER_HANDSHAKE_RESP (0x00B4). +/** SBP class for message MSG_BOOTLOADER_HANDSHAKE_RESP (0x00B4). * - *

You can have MSG_BOOTLOADER_HANDSHAKE_RESP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BOOTLOADER_HANDSHAKE_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The handshake message response from the device establishes a handshake between the device - * bootloader and the host. The request from the host is MSG_BOOTLOADER_HANDSHAKE_REQ. The payload - * contains the bootloader version number and the SBP protocol version number. - */ + * The handshake message response from the device establishes a handshake + * between the device bootloader and the host. The request from the host is + * MSG_BOOTLOADER_HANDSHAKE_REQ. The payload contains the bootloader version + * number and the SBP protocol version number. */ + public class MsgBootloaderHandshakeResp extends SBPMessage { public static final int TYPE = 0x00B4; + /** Bootloader flags */ public long flags; - + /** Bootloader version number */ public String version; + - public MsgBootloaderHandshakeResp(int sender) { - super(sender, TYPE); - } - - public MsgBootloaderHandshakeResp() { - super(TYPE); - } - - public MsgBootloaderHandshakeResp(SBPMessage msg) throws SBPBinaryException { + public MsgBootloaderHandshakeResp (int sender) { super(sender, TYPE); } + public MsgBootloaderHandshakeResp () { super(TYPE); } + public MsgBootloaderHandshakeResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBootloaderHandshakeResp, expected 180, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBootloaderHandshakeResp, expected 180, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ flags = parser.getU32(); - version = parser.getString(); + version = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(flags); - builder.putString(version); + builder.putString(version); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderJumpToApp.java b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderJumpToApp.java index d2dcc4c741..34916078bb 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgBootloaderJumpToApp.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgBootloaderJumpToApp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BOOTLOADER_JUMP_TO_APP (0x00B1). +/** SBP class for message MSG_BOOTLOADER_JUMP_TO_APP (0x00B1). * - *

You can have MSG_BOOTLOADER_JUMP_TO_APP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BOOTLOADER_JUMP_TO_APP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The host initiates the bootloader to jump to the application. - */ + * The host initiates the bootloader to jump to the application. */ + public class MsgBootloaderJumpToApp extends SBPMessage { public static final int TYPE = 0x00B1; + /** Ignored by the device */ public int jump; + - public MsgBootloaderJumpToApp(int sender) { - super(sender, TYPE); - } - - public MsgBootloaderJumpToApp() { - super(TYPE); - } - - public MsgBootloaderJumpToApp(SBPMessage msg) throws SBPBinaryException { + public MsgBootloaderJumpToApp (int sender) { super(sender, TYPE); } + public MsgBootloaderJumpToApp () { super(TYPE); } + public MsgBootloaderJumpToApp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBootloaderJumpToApp, expected 177, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBootloaderJumpToApp, expected 177, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - jump = parser.getU8(); + jump = parser.getU8(); } @Override protected void build(Builder builder) { - builder.putU8(jump); + builder.putU8(jump); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaReq.java b/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaReq.java index cb95820bc8..fb955575af 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaReq.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,43 +9,46 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NAP_DEVICE_DNA_REQ (0x00DE). +/** SBP class for message MSG_NAP_DEVICE_DNA_REQ (0x00DE). * - *

You can have MSG_NAP_DEVICE_DNA_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_NAP_DEVICE_DNA_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The device message from the host reads a unique device identifier from the SwiftNAP, an FPGA. - * The host requests the ID by sending a MSG_NAP_DEVICE_DNA_REQ message. The device responds with a - * MSG_NAP_DEVICE_DNA_RESP message with the device ID in the payload. Note that this ID is tied to - * the FPGA, and not related to the Piksi's serial number. - */ + * The device message from the host reads a unique device identifier from the + * SwiftNAP, an FPGA. The host requests the ID by sending a + * MSG_NAP_DEVICE_DNA_REQ message. The device responds with a + * MSG_NAP_DEVICE_DNA_RESP message with the device ID in the payload. Note + * that this ID is tied to the FPGA, and not related to the Piksi's serial + * number. */ + public class MsgNapDeviceDnaReq extends SBPMessage { public static final int TYPE = 0x00DE; - public MsgNapDeviceDnaReq(int sender) { - super(sender, TYPE); - } - - public MsgNapDeviceDnaReq() { - super(TYPE); - } + - public MsgNapDeviceDnaReq(SBPMessage msg) throws SBPBinaryException { + public MsgNapDeviceDnaReq (int sender) { super(sender, TYPE); } + public MsgNapDeviceDnaReq () { super(TYPE); } + public MsgNapDeviceDnaReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNapDeviceDnaReq, expected 222, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNapDeviceDnaReq, expected 222, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaResp.java b/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaResp.java index a6ae4a76c0..42e3758021 100644 --- a/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaResp.java +++ b/java/src/com/swiftnav/sbp/bootload/MsgNapDeviceDnaResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,58 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.bootload; // This file was auto-generated from yaml/swiftnav/sbp/bootload.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NAP_DEVICE_DNA_RESP (0x00DD). +/** SBP class for message MSG_NAP_DEVICE_DNA_RESP (0x00DD). * - *

You can have MSG_NAP_DEVICE_DNA_RESP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_NAP_DEVICE_DNA_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The device message from the host reads a unique device identifier from the SwiftNAP, an FPGA. - * The host requests the ID by sending a MSG_NAP_DEVICE_DNA_REQ message. The device responds with a - * MSG_NAP_DEVICE_DNA_RESP message with the device ID in the payload. Note that this ID is tied to - * the FPGA, and not related to the Piksi's serial number. - */ + * The device message from the host reads a unique device identifier from the + * SwiftNAP, an FPGA. The host requests the ID by sending a + * MSG_NAP_DEVICE_DNA_REQ message. The device responds with a + * MSG_NAP_DEVICE_DNA_RESP message with the device ID in the payload. Note + * that this ID is tied to the FPGA, and not related to the Piksi's serial + * number. */ + public class MsgNapDeviceDnaResp extends SBPMessage { public static final int TYPE = 0x00DD; - /** 57-bit SwiftNAP FPGA Device ID. Remaining bits are padded on the right. */ + + /** 57-bit SwiftNAP FPGA Device ID. Remaining bits are padded on the + * right. */ public int[] dna; + - public MsgNapDeviceDnaResp(int sender) { - super(sender, TYPE); - } - - public MsgNapDeviceDnaResp() { - super(TYPE); - } - - public MsgNapDeviceDnaResp(SBPMessage msg) throws SBPBinaryException { + public MsgNapDeviceDnaResp (int sender) { super(sender, TYPE); } + public MsgNapDeviceDnaResp () { super(TYPE); } + public MsgNapDeviceDnaResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNapDeviceDnaResp, expected 221, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNapDeviceDnaResp, expected 221, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - dna = parser.getArrayofU8(8); + dna = parser.getArrayofU8(8); } @Override protected void build(Builder builder) { - builder.putArrayofU8(dna, 8); + builder.putArrayofU8(dna, 8); } @Override diff --git a/java/src/com/swiftnav/sbp/client/MessageTable.java b/java/src/com/swiftnav/sbp/client/MessageTable.java index 9a992a1ccb..31bed9926e 100644 --- a/java/src/com/swiftnav/sbp/client/MessageTable.java +++ b/java/src/com/swiftnav/sbp/client/MessageTable.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -10,245 +11,247 @@ */ package com.swiftnav.sbp.client; - import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPMessage.Builder; +import com.swiftnav.sbp.SBPMessage.Parser; import com.swiftnav.sbp.acquisition.MsgAcqResult; -import com.swiftnav.sbp.acquisition.MsgAcqResultDepA; -import com.swiftnav.sbp.acquisition.MsgAcqResultDepB; import com.swiftnav.sbp.acquisition.MsgAcqResultDepC; +import com.swiftnav.sbp.acquisition.MsgAcqResultDepB; +import com.swiftnav.sbp.acquisition.MsgAcqResultDepA; import com.swiftnav.sbp.acquisition.MsgAcqSvProfile; import com.swiftnav.sbp.acquisition.MsgAcqSvProfileDep; -import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeDepA; import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeReq; import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeResp; import com.swiftnav.sbp.bootload.MsgBootloaderJumpToApp; import com.swiftnav.sbp.bootload.MsgNapDeviceDnaReq; import com.swiftnav.sbp.bootload.MsgNapDeviceDnaResp; +import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeDepA; import com.swiftnav.sbp.ext_events.MsgExtEvent; -import com.swiftnav.sbp.file_io.MsgFileioConfigReq; -import com.swiftnav.sbp.file_io.MsgFileioConfigResp; -import com.swiftnav.sbp.file_io.MsgFileioReadDirReq; -import com.swiftnav.sbp.file_io.MsgFileioReadDirResp; import com.swiftnav.sbp.file_io.MsgFileioReadReq; import com.swiftnav.sbp.file_io.MsgFileioReadResp; +import com.swiftnav.sbp.file_io.MsgFileioReadDirReq; +import com.swiftnav.sbp.file_io.MsgFileioReadDirResp; import com.swiftnav.sbp.file_io.MsgFileioRemove; import com.swiftnav.sbp.file_io.MsgFileioWriteReq; import com.swiftnav.sbp.file_io.MsgFileioWriteResp; -import com.swiftnav.sbp.flash.MsgFlashDone; -import com.swiftnav.sbp.flash.MsgFlashErase; +import com.swiftnav.sbp.file_io.MsgFileioConfigReq; +import com.swiftnav.sbp.file_io.MsgFileioConfigResp; import com.swiftnav.sbp.flash.MsgFlashProgram; +import com.swiftnav.sbp.flash.MsgFlashDone; import com.swiftnav.sbp.flash.MsgFlashReadReq; import com.swiftnav.sbp.flash.MsgFlashReadResp; -import com.swiftnav.sbp.flash.MsgM25FlashWriteStatus; +import com.swiftnav.sbp.flash.MsgFlashErase; import com.swiftnav.sbp.flash.MsgStmFlashLockSector; import com.swiftnav.sbp.flash.MsgStmFlashUnlockSector; import com.swiftnav.sbp.flash.MsgStmUniqueIdReq; import com.swiftnav.sbp.flash.MsgStmUniqueIdResp; +import com.swiftnav.sbp.flash.MsgM25FlashWriteStatus; +import com.swiftnav.sbp.imu.MsgImuRaw; import com.swiftnav.sbp.imu.MsgImuAux; import com.swiftnav.sbp.imu.MsgImuComp; -import com.swiftnav.sbp.imu.MsgImuRaw; -import com.swiftnav.sbp.integrity.MsgAcknowledge; +import com.swiftnav.sbp.integrity.MsgSsrFlagHighLevelDepA; import com.swiftnav.sbp.integrity.MsgSsrFlagHighLevel; -import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPointSatLos; -import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPoints; -import com.swiftnav.sbp.integrity.MsgSsrFlagIonoTileSatLos; import com.swiftnav.sbp.integrity.MsgSsrFlagSatellites; import com.swiftnav.sbp.integrity.MsgSsrFlagTropoGridPoints; -import com.swiftnav.sbp.linux.MsgLinuxCpuState; +import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPoints; +import com.swiftnav.sbp.integrity.MsgSsrFlagIonoTileSatLos; +import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPointSatLos; +import com.swiftnav.sbp.integrity.MsgAcknowledge; import com.swiftnav.sbp.linux.MsgLinuxCpuStateDepA; -import com.swiftnav.sbp.linux.MsgLinuxMemState; import com.swiftnav.sbp.linux.MsgLinuxMemStateDepA; -import com.swiftnav.sbp.linux.MsgLinuxProcessFdCount; -import com.swiftnav.sbp.linux.MsgLinuxProcessFdSummary; +import com.swiftnav.sbp.linux.MsgLinuxSysStateDepA; import com.swiftnav.sbp.linux.MsgLinuxProcessSocketCounts; import com.swiftnav.sbp.linux.MsgLinuxProcessSocketQueues; import com.swiftnav.sbp.linux.MsgLinuxSocketUsage; +import com.swiftnav.sbp.linux.MsgLinuxProcessFdCount; +import com.swiftnav.sbp.linux.MsgLinuxProcessFdSummary; +import com.swiftnav.sbp.linux.MsgLinuxCpuState; +import com.swiftnav.sbp.linux.MsgLinuxMemState; import com.swiftnav.sbp.linux.MsgLinuxSysState; -import com.swiftnav.sbp.linux.MsgLinuxSysStateDepA; -import com.swiftnav.sbp.logging.MsgFwd; import com.swiftnav.sbp.logging.MsgLog; +import com.swiftnav.sbp.logging.MsgFwd; import com.swiftnav.sbp.logging.MsgPrintDep; import com.swiftnav.sbp.mag.MsgMagRaw; -import com.swiftnav.sbp.navigation.MsgAgeCorrections; -import com.swiftnav.sbp.navigation.MsgBaselineECEF; -import com.swiftnav.sbp.navigation.MsgBaselineECEFDepA; -import com.swiftnav.sbp.navigation.MsgBaselineHeadingDepA; -import com.swiftnav.sbp.navigation.MsgBaselineNED; -import com.swiftnav.sbp.navigation.MsgBaselineNEDDepA; -import com.swiftnav.sbp.navigation.MsgDops; -import com.swiftnav.sbp.navigation.MsgDopsDepA; import com.swiftnav.sbp.navigation.MsgGPSTime; -import com.swiftnav.sbp.navigation.MsgGPSTimeDepA; import com.swiftnav.sbp.navigation.MsgGPSTimeGnss; +import com.swiftnav.sbp.navigation.MsgUtcTime; +import com.swiftnav.sbp.navigation.MsgUtcTimeGnss; +import com.swiftnav.sbp.navigation.MsgDops; import com.swiftnav.sbp.navigation.MsgPosECEF; import com.swiftnav.sbp.navigation.MsgPosECEFCov; -import com.swiftnav.sbp.navigation.MsgPosECEFCovGnss; -import com.swiftnav.sbp.navigation.MsgPosECEFDepA; -import com.swiftnav.sbp.navigation.MsgPosECEFGnss; import com.swiftnav.sbp.navigation.MsgPosLLH; -import com.swiftnav.sbp.navigation.MsgPosLLHAcc; import com.swiftnav.sbp.navigation.MsgPosLLHCov; -import com.swiftnav.sbp.navigation.MsgPosLLHCovGnss; -import com.swiftnav.sbp.navigation.MsgPosLLHDepA; -import com.swiftnav.sbp.navigation.MsgPosLLHGnss; -import com.swiftnav.sbp.navigation.MsgPoseRelative; -import com.swiftnav.sbp.navigation.MsgProtectionLevel; -import com.swiftnav.sbp.navigation.MsgProtectionLevelDepA; -import com.swiftnav.sbp.navigation.MsgReferenceFrameParam; -import com.swiftnav.sbp.navigation.MsgUtcLeapSecond; -import com.swiftnav.sbp.navigation.MsgUtcTime; -import com.swiftnav.sbp.navigation.MsgUtcTimeGnss; -import com.swiftnav.sbp.navigation.MsgVelBody; -import com.swiftnav.sbp.navigation.MsgVelCog; +import com.swiftnav.sbp.navigation.MsgPosLLHAcc; +import com.swiftnav.sbp.navigation.MsgBaselineECEF; +import com.swiftnav.sbp.navigation.MsgBaselineNED; import com.swiftnav.sbp.navigation.MsgVelECEF; import com.swiftnav.sbp.navigation.MsgVelECEFCov; -import com.swiftnav.sbp.navigation.MsgVelECEFCovGnss; -import com.swiftnav.sbp.navigation.MsgVelECEFDepA; -import com.swiftnav.sbp.navigation.MsgVelECEFGnss; import com.swiftnav.sbp.navigation.MsgVelNED; import com.swiftnav.sbp.navigation.MsgVelNEDCov; +import com.swiftnav.sbp.navigation.MsgPosECEFGnss; +import com.swiftnav.sbp.navigation.MsgPosECEFCovGnss; +import com.swiftnav.sbp.navigation.MsgPosLLHGnss; +import com.swiftnav.sbp.navigation.MsgPosLLHCovGnss; +import com.swiftnav.sbp.navigation.MsgVelECEFGnss; +import com.swiftnav.sbp.navigation.MsgVelECEFCovGnss; +import com.swiftnav.sbp.navigation.MsgVelNEDGnss; import com.swiftnav.sbp.navigation.MsgVelNEDCovGnss; +import com.swiftnav.sbp.navigation.MsgVelBody; +import com.swiftnav.sbp.navigation.MsgVelCog; +import com.swiftnav.sbp.navigation.MsgAgeCorrections; +import com.swiftnav.sbp.navigation.MsgGPSTimeDepA; +import com.swiftnav.sbp.navigation.MsgDopsDepA; +import com.swiftnav.sbp.navigation.MsgPosECEFDepA; +import com.swiftnav.sbp.navigation.MsgPosLLHDepA; +import com.swiftnav.sbp.navigation.MsgBaselineECEFDepA; +import com.swiftnav.sbp.navigation.MsgBaselineNEDDepA; +import com.swiftnav.sbp.navigation.MsgVelECEFDepA; import com.swiftnav.sbp.navigation.MsgVelNEDDepA; -import com.swiftnav.sbp.navigation.MsgVelNEDGnss; +import com.swiftnav.sbp.navigation.MsgBaselineHeadingDepA; +import com.swiftnav.sbp.navigation.MsgProtectionLevelDepA; +import com.swiftnav.sbp.navigation.MsgProtectionLevel; +import com.swiftnav.sbp.navigation.MsgUtcLeapSecond; +import com.swiftnav.sbp.navigation.MsgReferenceFrameParam; +import com.swiftnav.sbp.navigation.MsgPoseRelative; import com.swiftnav.sbp.ndb.MsgNdbEvent; -import com.swiftnav.sbp.observation.MsgAlmanacGPS; -import com.swiftnav.sbp.observation.MsgAlmanacGPSDep; -import com.swiftnav.sbp.observation.MsgAlmanacGlo; -import com.swiftnav.sbp.observation.MsgAlmanacGloDep; -import com.swiftnav.sbp.observation.MsgBasePosECEF; +import com.swiftnav.sbp.observation.MsgObs; import com.swiftnav.sbp.observation.MsgBasePosLLH; -import com.swiftnav.sbp.observation.MsgEphemerisBds; -import com.swiftnav.sbp.observation.MsgEphemerisDepA; -import com.swiftnav.sbp.observation.MsgEphemerisDepB; -import com.swiftnav.sbp.observation.MsgEphemerisDepC; -import com.swiftnav.sbp.observation.MsgEphemerisDepD; -import com.swiftnav.sbp.observation.MsgEphemerisGPS; +import com.swiftnav.sbp.observation.MsgBasePosECEF; import com.swiftnav.sbp.observation.MsgEphemerisGPSDepE; import com.swiftnav.sbp.observation.MsgEphemerisGPSDepF; -import com.swiftnav.sbp.observation.MsgEphemerisGal; +import com.swiftnav.sbp.observation.MsgEphemerisGPS; +import com.swiftnav.sbp.observation.MsgEphemerisQzss; +import com.swiftnav.sbp.observation.MsgEphemerisBds; import com.swiftnav.sbp.observation.MsgEphemerisGalDepA; -import com.swiftnav.sbp.observation.MsgEphemerisGlo; +import com.swiftnav.sbp.observation.MsgEphemerisGal; +import com.swiftnav.sbp.observation.MsgEphemerisSbasDepA; import com.swiftnav.sbp.observation.MsgEphemerisGloDepA; +import com.swiftnav.sbp.observation.MsgEphemerisSbasDepB; +import com.swiftnav.sbp.observation.MsgEphemerisSbas; import com.swiftnav.sbp.observation.MsgEphemerisGloDepB; import com.swiftnav.sbp.observation.MsgEphemerisGloDepC; import com.swiftnav.sbp.observation.MsgEphemerisGloDepD; -import com.swiftnav.sbp.observation.MsgEphemerisQzss; -import com.swiftnav.sbp.observation.MsgEphemerisSbas; -import com.swiftnav.sbp.observation.MsgEphemerisSbasDepA; -import com.swiftnav.sbp.observation.MsgEphemerisSbasDepB; -import com.swiftnav.sbp.observation.MsgGloBiases; -import com.swiftnav.sbp.observation.MsgGnssCapb; -import com.swiftnav.sbp.observation.MsgGroupDelay; -import com.swiftnav.sbp.observation.MsgGroupDelayDepA; -import com.swiftnav.sbp.observation.MsgGroupDelayDepB; -import com.swiftnav.sbp.observation.MsgIono; -import com.swiftnav.sbp.observation.MsgObs; +import com.swiftnav.sbp.observation.MsgEphemerisGlo; +import com.swiftnav.sbp.observation.MsgEphemerisDepD; +import com.swiftnav.sbp.observation.MsgEphemerisDepA; +import com.swiftnav.sbp.observation.MsgEphemerisDepB; +import com.swiftnav.sbp.observation.MsgEphemerisDepC; import com.swiftnav.sbp.observation.MsgObsDepA; import com.swiftnav.sbp.observation.MsgObsDepB; import com.swiftnav.sbp.observation.MsgObsDepC; -import com.swiftnav.sbp.observation.MsgOsr; -import com.swiftnav.sbp.observation.MsgSvAzEl; +import com.swiftnav.sbp.observation.MsgIono; import com.swiftnav.sbp.observation.MsgSvConfigurationGPSDep; -import com.swiftnav.sbp.orientation.MsgAngularRate; +import com.swiftnav.sbp.observation.MsgGnssCapb; +import com.swiftnav.sbp.observation.MsgGroupDelayDepA; +import com.swiftnav.sbp.observation.MsgGroupDelayDepB; +import com.swiftnav.sbp.observation.MsgGroupDelay; +import com.swiftnav.sbp.observation.MsgAlmanacGPSDep; +import com.swiftnav.sbp.observation.MsgAlmanacGPS; +import com.swiftnav.sbp.observation.MsgAlmanacGloDep; +import com.swiftnav.sbp.observation.MsgAlmanacGlo; +import com.swiftnav.sbp.observation.MsgGloBiases; +import com.swiftnav.sbp.observation.MsgSvAzEl; +import com.swiftnav.sbp.observation.MsgOsr; import com.swiftnav.sbp.orientation.MsgBaselineHeading; -import com.swiftnav.sbp.orientation.MsgOrientEuler; import com.swiftnav.sbp.orientation.MsgOrientQuat; +import com.swiftnav.sbp.orientation.MsgOrientEuler; +import com.swiftnav.sbp.orientation.MsgAngularRate; import com.swiftnav.sbp.piksi.MsgAlmanac; -import com.swiftnav.sbp.piksi.MsgCellModemStatus; -import com.swiftnav.sbp.piksi.MsgCommandOutput; -import com.swiftnav.sbp.piksi.MsgCommandReq; -import com.swiftnav.sbp.piksi.MsgCommandResp; +import com.swiftnav.sbp.piksi.MsgSetTime; +import com.swiftnav.sbp.piksi.MsgReset; +import com.swiftnav.sbp.piksi.MsgResetDep; import com.swiftnav.sbp.piksi.MsgCwResults; import com.swiftnav.sbp.piksi.MsgCwStart; -import com.swiftnav.sbp.piksi.MsgDeviceMonitor; -import com.swiftnav.sbp.piksi.MsgFrontEndGain; -import com.swiftnav.sbp.piksi.MsgIarState; +import com.swiftnav.sbp.piksi.MsgResetFilters; import com.swiftnav.sbp.piksi.MsgInitBaseDep; +import com.swiftnav.sbp.piksi.MsgThreadState; +import com.swiftnav.sbp.piksi.MsgUartState; +import com.swiftnav.sbp.piksi.MsgUartStateDepa; +import com.swiftnav.sbp.piksi.MsgIarState; import com.swiftnav.sbp.piksi.MsgMaskSatellite; import com.swiftnav.sbp.piksi.MsgMaskSatelliteDep; -import com.swiftnav.sbp.piksi.MsgNetworkBandwidthUsage; +import com.swiftnav.sbp.piksi.MsgDeviceMonitor; +import com.swiftnav.sbp.piksi.MsgCommandReq; +import com.swiftnav.sbp.piksi.MsgCommandResp; +import com.swiftnav.sbp.piksi.MsgCommandOutput; import com.swiftnav.sbp.piksi.MsgNetworkStateReq; import com.swiftnav.sbp.piksi.MsgNetworkStateResp; -import com.swiftnav.sbp.piksi.MsgReset; -import com.swiftnav.sbp.piksi.MsgResetDep; -import com.swiftnav.sbp.piksi.MsgResetFilters; -import com.swiftnav.sbp.piksi.MsgSetTime; -import com.swiftnav.sbp.piksi.MsgSpecan; +import com.swiftnav.sbp.piksi.MsgNetworkBandwidthUsage; +import com.swiftnav.sbp.piksi.MsgCellModemStatus; import com.swiftnav.sbp.piksi.MsgSpecanDep; -import com.swiftnav.sbp.piksi.MsgThreadState; -import com.swiftnav.sbp.piksi.MsgUartState; -import com.swiftnav.sbp.piksi.MsgUartStateDepa; +import com.swiftnav.sbp.piksi.MsgSpecan; +import com.swiftnav.sbp.piksi.MsgFrontEndGain; import com.swiftnav.sbp.profiling.MsgMeasurementPoint; -import com.swiftnav.sbp.profiling.MsgProfilingResourceCounter; import com.swiftnav.sbp.profiling.MsgProfilingSystemInfo; import com.swiftnav.sbp.profiling.MsgProfilingThreadInfo; +import com.swiftnav.sbp.profiling.MsgProfilingResourceCounter; import com.swiftnav.sbp.sbas.MsgSbasRaw; -import com.swiftnav.sbp.settings.MsgSettingsReadByIndexDone; -import com.swiftnav.sbp.settings.MsgSettingsReadByIndexReq; -import com.swiftnav.sbp.settings.MsgSettingsReadByIndexResp; +import com.swiftnav.sbp.settings.MsgSettingsSave; +import com.swiftnav.sbp.settings.MsgSettingsWrite; +import com.swiftnav.sbp.settings.MsgSettingsWriteResp; import com.swiftnav.sbp.settings.MsgSettingsReadReq; import com.swiftnav.sbp.settings.MsgSettingsReadResp; +import com.swiftnav.sbp.settings.MsgSettingsReadByIndexReq; +import com.swiftnav.sbp.settings.MsgSettingsReadByIndexResp; +import com.swiftnav.sbp.settings.MsgSettingsReadByIndexDone; import com.swiftnav.sbp.settings.MsgSettingsRegister; import com.swiftnav.sbp.settings.MsgSettingsRegisterResp; -import com.swiftnav.sbp.settings.MsgSettingsSave; -import com.swiftnav.sbp.settings.MsgSettingsWrite; -import com.swiftnav.sbp.settings.MsgSettingsWriteResp; -import com.swiftnav.sbp.signing.MsgAesCmacSignature; +import com.swiftnav.sbp.signing.MsgEcdsaCertificate; import com.swiftnav.sbp.signing.MsgCertificateChain; import com.swiftnav.sbp.signing.MsgCertificateChainDep; -import com.swiftnav.sbp.signing.MsgEcdsaCertificate; +import com.swiftnav.sbp.signing.MsgAesCmacSignature; import com.swiftnav.sbp.signing.MsgEcdsaSignature; -import com.swiftnav.sbp.signing.MsgEcdsaSignatureDepA; import com.swiftnav.sbp.signing.MsgEcdsaSignatureDepB; +import com.swiftnav.sbp.signing.MsgEcdsaSignatureDepA; import com.swiftnav.sbp.signing.MsgEd25519CertificateDep; import com.swiftnav.sbp.signing.MsgEd25519SignatureDepA; import com.swiftnav.sbp.signing.MsgEd25519SignatureDepB; -import com.swiftnav.sbp.solution_meta.MsgSolnMeta; import com.swiftnav.sbp.solution_meta.MsgSolnMetaDepA; +import com.swiftnav.sbp.solution_meta.MsgSolnMeta; +import com.swiftnav.sbp.ssr.MsgSsrOrbitClock; import com.swiftnav.sbp.ssr.MsgSsrCodeBiases; -import com.swiftnav.sbp.ssr.MsgSsrCodePhaseBiasesBounds; -import com.swiftnav.sbp.ssr.MsgSsrGridDefinitionDepA; +import com.swiftnav.sbp.ssr.MsgSsrPhaseBiases; +import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDep; +import com.swiftnav.sbp.ssr.MsgSsrStecCorrection; import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrection; import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionBounds; -import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionDepA; +import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepA; +import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepB; +import com.swiftnav.sbp.ssr.MsgSsrTileDefinition; +import com.swiftnav.sbp.ssr.MsgSsrSatelliteApcDep; +import com.swiftnav.sbp.ssr.MsgSsrSatelliteApc; +import com.swiftnav.sbp.ssr.MsgSsrOrbitClockDepA; +import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDepA; import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionNoStdDepA; -import com.swiftnav.sbp.ssr.MsgSsrOrbitClock; +import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionDepA; +import com.swiftnav.sbp.ssr.MsgSsrGridDefinitionDepA; import com.swiftnav.sbp.ssr.MsgSsrOrbitClockBounds; +import com.swiftnav.sbp.ssr.MsgSsrCodePhaseBiasesBounds; import com.swiftnav.sbp.ssr.MsgSsrOrbitClockBoundsDegradation; -import com.swiftnav.sbp.ssr.MsgSsrOrbitClockDepA; -import com.swiftnav.sbp.ssr.MsgSsrPhaseBiases; -import com.swiftnav.sbp.ssr.MsgSsrSatelliteApc; -import com.swiftnav.sbp.ssr.MsgSsrSatelliteApcDep; -import com.swiftnav.sbp.ssr.MsgSsrStecCorrection; -import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDep; -import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDepA; -import com.swiftnav.sbp.ssr.MsgSsrTileDefinition; -import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepA; -import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepB; -import com.swiftnav.sbp.system.MsgCsacTelemetry; -import com.swiftnav.sbp.system.MsgCsacTelemetryLabels; +import com.swiftnav.sbp.system.MsgStartup; import com.swiftnav.sbp.system.MsgDgnssStatus; -import com.swiftnav.sbp.system.MsgGnssTimeOffset; -import com.swiftnav.sbp.system.MsgGroupMeta; import com.swiftnav.sbp.system.MsgHeartbeat; +import com.swiftnav.sbp.system.MsgStatusReport; +import com.swiftnav.sbp.system.MsgStatusJournal; import com.swiftnav.sbp.system.MsgInsStatus; +import com.swiftnav.sbp.system.MsgCsacTelemetry; +import com.swiftnav.sbp.system.MsgCsacTelemetryLabels; import com.swiftnav.sbp.system.MsgInsUpdates; +import com.swiftnav.sbp.system.MsgGnssTimeOffset; import com.swiftnav.sbp.system.MsgPpsTime; import com.swiftnav.sbp.system.MsgSensorAidEvent; -import com.swiftnav.sbp.system.MsgStartup; -import com.swiftnav.sbp.system.MsgStatusJournal; -import com.swiftnav.sbp.system.MsgStatusReport; +import com.swiftnav.sbp.system.MsgGroupMeta; import com.swiftnav.sbp.telemetry.MsgTelSv; +import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDepA; +import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDep; +import com.swiftnav.sbp.tracking.MsgTrackingState; import com.swiftnav.sbp.tracking.MsgMeasurementState; import com.swiftnav.sbp.tracking.MsgTrackingIq; -import com.swiftnav.sbp.tracking.MsgTrackingIqDepA; import com.swiftnav.sbp.tracking.MsgTrackingIqDepB; -import com.swiftnav.sbp.tracking.MsgTrackingState; +import com.swiftnav.sbp.tracking.MsgTrackingIqDepA; import com.swiftnav.sbp.tracking.MsgTrackingStateDepA; import com.swiftnav.sbp.tracking.MsgTrackingStateDepB; -import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDep; -import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDepA; import com.swiftnav.sbp.user.MsgUserData; import com.swiftnav.sbp.vehicle.MsgOdometry; import com.swiftnav.sbp.vehicle.MsgWheeltick; @@ -326,6 +329,8 @@ static SBPMessage dispatch(SBPMessage msg) throws SBPBinaryException { return new MsgImuAux(msg); case MsgImuComp.TYPE: return new MsgImuComp(msg); + case MsgSsrFlagHighLevelDepA.TYPE: + return new MsgSsrFlagHighLevelDepA(msg); case MsgSsrFlagHighLevel.TYPE: return new MsgSsrFlagHighLevel(msg); case MsgSsrFlagSatellites.TYPE: @@ -738,3 +743,5 @@ static SBPMessage dispatch(SBPMessage msg) throws SBPBinaryException { return msg; } } + + diff --git a/java/src/com/swiftnav/sbp/ext_events/MsgExtEvent.java b/java/src/com/swiftnav/sbp/ext_events/MsgExtEvent.java index 2b3d607e1e..ecddfbf10f 100644 --- a/java/src/com/swiftnav/sbp/ext_events/MsgExtEvent.java +++ b/java/src/com/swiftnav/sbp/ext_events/MsgExtEvent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ext_events; // This file was auto-generated from yaml/swiftnav/sbp/ext_events.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_EXT_EVENT (0x0101). + +/** SBP class for message MSG_EXT_EVENT (0x0101). * - *

You can have MSG_EXT_EVENT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EXT_EVENT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Reports detection of an external event, the GPS time it occurred, which pin it was and whether - * it was rising or falling. - */ + * Reports detection of an external event, the GPS time it occurred, which pin + * it was and whether it was rising or falling. */ + public class MsgExtEvent extends SBPMessage { public static final int TYPE = 0x0101; + /** GPS week number */ public int wn; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - - /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) */ + + /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to + * 500000) */ public int ns_residual; - + /** Flags */ public int flags; - - /** Pin number. 0..9 = DEBUG0..9. */ + + /** Pin number. 0..9 = DEBUG0..9. */ public int pin; + - public MsgExtEvent(int sender) { - super(sender, TYPE); - } - - public MsgExtEvent() { - super(TYPE); - } - - public MsgExtEvent(SBPMessage msg) throws SBPBinaryException { + public MsgExtEvent (int sender) { super(sender, TYPE); } + public MsgExtEvent () { super(TYPE); } + public MsgExtEvent (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgExtEvent, expected 257, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgExtEvent, expected 257, actual " + msg.type); } @Override @@ -67,7 +70,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tow = parser.getU32(); ns_residual = parser.getS32(); flags = parser.getU8(); - pin = parser.getU8(); + pin = parser.getU8(); } @Override @@ -76,7 +79,7 @@ protected void build(Builder builder) { builder.putU32(tow); builder.putS32(ns_residual); builder.putU8(flags); - builder.putU8(pin); + builder.putU8(pin); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigReq.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigReq.java index adcb6831c3..a3165e7de3 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigReq.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FILEIO_CONFIG_REQ (0x1001). +/** SBP class for message MSG_FILEIO_CONFIG_REQ (0x1001). * - *

You can have MSG_FILEIO_CONFIG_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_CONFIG_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Requests advice on the optimal configuration for a FileIO transfer. Newer version of FileIO - * can support greater throughput by supporting a large window of FileIO data that can be in-flight - * during read or write operations. - */ + * Requests advice on the optimal configuration for a FileIO transfer. Newer + * version of FileIO can support greater throughput by supporting a large + * window of FileIO data that can be in-flight during read or write + * operations. */ + public class MsgFileioConfigReq extends SBPMessage { public static final int TYPE = 0x1001; + /** Advice sequence number */ public long sequence; + - public MsgFileioConfigReq(int sender) { - super(sender, TYPE); - } - - public MsgFileioConfigReq() { - super(TYPE); - } - - public MsgFileioConfigReq(SBPMessage msg) throws SBPBinaryException { + public MsgFileioConfigReq (int sender) { super(sender, TYPE); } + public MsgFileioConfigReq () { super(TYPE); } + public MsgFileioConfigReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioConfigReq, expected 4097, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioConfigReq, expected 4097, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - sequence = parser.getU32(); + sequence = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(sequence); + builder.putU32(sequence); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigResp.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigResp.java index e52b6671dd..926d616c60 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigResp.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioConfigResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FILEIO_CONFIG_RESP (0x1002). + +/** SBP class for message MSG_FILEIO_CONFIG_RESP (0x1002). * - *

You can have MSG_FILEIO_CONFIG_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_CONFIG_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The advice on the optimal configuration for a FileIO transfer. Newer version of FileIO can - * support greater throughput by supporting a large window of FileIO data that can be in-flight - * during read or write operations. - */ + * The advice on the optimal configuration for a FileIO transfer. Newer + * version of FileIO can support greater throughput by supporting a large + * window of FileIO data that can be in-flight during read or write + * operations. */ + public class MsgFileioConfigResp extends SBPMessage { public static final int TYPE = 0x1002; + /** Advice sequence number */ public long sequence; - + /** The number of SBP packets in the data in-flight window */ public long window_size; - + /** The number of SBP packets sent in one PDU */ public long batch_size; - + /** The version of FileIO that is supported */ public long fileio_version; + - public MsgFileioConfigResp(int sender) { - super(sender, TYPE); - } - - public MsgFileioConfigResp() { - super(TYPE); - } - - public MsgFileioConfigResp(SBPMessage msg) throws SBPBinaryException { + public MsgFileioConfigResp (int sender) { super(sender, TYPE); } + public MsgFileioConfigResp () { super(TYPE); } + public MsgFileioConfigResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioConfigResp, expected 4098, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioConfigResp, expected 4098, actual " + msg.type); } @Override @@ -64,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sequence = parser.getU32(); window_size = parser.getU32(); batch_size = parser.getU32(); - fileio_version = parser.getU32(); + fileio_version = parser.getU32(); } @Override @@ -72,7 +75,7 @@ protected void build(Builder builder) { builder.putU32(sequence); builder.putU32(window_size); builder.putU32(batch_size); - builder.putU32(fileio_version); + builder.putU32(fileio_version); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirReq.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirReq.java index ac3b2ede3d..26d83ba02c 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirReq.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FILEIO_READ_DIR_REQ (0x00A9). + +/** SBP class for message MSG_FILEIO_READ_DIR_REQ (0x00A9). * - *

You can have MSG_FILEIO_READ_DIR_REQ inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_READ_DIR_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The read directory message lists the files in a directory on the device's onboard flash file - * system. The offset parameter can be used to skip the first n elements of the file list. Returns a - * MSG_FILEIO_READ_DIR_RESP message containing the directory listings as a NULL delimited list. The - * listing is chunked over multiple SBP packets. The sequence number in the request will be returned - * in the response. If message is invalid, a followup MSG_PRINT message will print "Invalid fileio - * read message". A device will only respond to this message when it is received from sender ID - * 0x42. - */ + * The read directory message lists the files in a directory on the device's + * onboard flash file system. The offset parameter can be used to skip the + * first n elements of the file list. Returns a MSG_FILEIO_READ_DIR_RESP + * message containing the directory listings as a NULL delimited list. The + * listing is chunked over multiple SBP packets. The sequence number in the + * request will be returned in the response. If message is invalid, a + * followup MSG_PRINT message will print "Invalid fileio read message". A + * device will only respond to this message when it is received from sender ID + * 0x42. */ + public class MsgFileioReadDirReq extends SBPMessage { public static final int TYPE = 0x00A9; + /** Read sequence number */ public long sequence; - + /** The offset to skip the first n elements of the file list */ public long offset; - + /** Name of the directory to list */ public String dirname; + - public MsgFileioReadDirReq(int sender) { - super(sender, TYPE); - } - - public MsgFileioReadDirReq() { - super(TYPE); - } - - public MsgFileioReadDirReq(SBPMessage msg) throws SBPBinaryException { + public MsgFileioReadDirReq (int sender) { super(sender, TYPE); } + public MsgFileioReadDirReq () { super(TYPE); } + public MsgFileioReadDirReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioReadDirReq, expected 169, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioReadDirReq, expected 169, actual " + msg.type); } @Override @@ -64,14 +68,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); offset = parser.getU32(); - dirname = parser.getString(); + dirname = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(sequence); builder.putU32(offset); - builder.putString(dirname); + builder.putString(dirname); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirResp.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirResp.java index 46cdcf8df8..e582a0b072 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirResp.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadDirResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FILEIO_READ_DIR_RESP (0x00AA). +/** SBP class for message MSG_FILEIO_READ_DIR_RESP (0x00AA). * - *

You can have MSG_FILEIO_READ_DIR_RESP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_READ_DIR_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The read directory message lists the files in a directory on the device's onboard flash file - * system. Message contains the directory listings as a NULL delimited list. The listing is chunked - * over multiple SBP packets and the end of the list is identified by an packet with no entries. The - * sequence number in the response is preserved from the request. - */ + * The read directory message lists the files in a directory on the device's + * onboard flash file system. Message contains the directory listings as a + * NULL delimited list. The listing is chunked over multiple SBP packets and + * the end of the list is identified by an packet with no entries. The + * sequence number in the response is preserved from the request. */ + public class MsgFileioReadDirResp extends SBPMessage { public static final int TYPE = 0x00AA; + /** Read sequence number */ public long sequence; - + /** Contents of read directory */ public String contents; + - public MsgFileioReadDirResp(int sender) { - super(sender, TYPE); - } - - public MsgFileioReadDirResp() { - super(TYPE); - } - - public MsgFileioReadDirResp(SBPMessage msg) throws SBPBinaryException { + public MsgFileioReadDirResp (int sender) { super(sender, TYPE); } + public MsgFileioReadDirResp () { super(TYPE); } + public MsgFileioReadDirResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioReadDirResp, expected 170, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioReadDirResp, expected 170, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); - contents = parser.getString(); + contents = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(sequence); - builder.putString(contents); + builder.putString(contents); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadReq.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadReq.java index 8550674355..55fa748ecc 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadReq.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FILEIO_READ_REQ (0x00A8). + +/** SBP class for message MSG_FILEIO_READ_REQ (0x00A8). * - *

You can have MSG_FILEIO_READ_REQ inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FILEIO_READ_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The file read message reads a certain length (up to 255 bytes) from a given offset into a - * file, and returns the data in a MSG_FILEIO_READ_RESP message where the message length field - * indicates how many bytes were successfully read. The sequence number in the request will be - * returned in the response. If the message is invalid, a followup MSG_PRINT message will print - * "Invalid fileio read message". A device will only respond to this message when it is received - * from sender ID 0x42. - */ + * The file read message reads a certain length (up to 255 bytes) from a given + * offset into a file, and returns the data in a MSG_FILEIO_READ_RESP message + * where the message length field indicates how many bytes were successfully + * read. The sequence number in the request will be returned in the response. + * If the message is invalid, a followup MSG_PRINT message will print "Invalid + * fileio read message". A device will only respond to this message when it is + * received from sender ID 0x42. */ + public class MsgFileioReadReq extends SBPMessage { public static final int TYPE = 0x00A8; + /** Read sequence number */ public long sequence; - + /** File offset */ public long offset; - + /** Chunk size to read */ public int chunk_size; - + /** Name of the file to read from */ public String filename; + - public MsgFileioReadReq(int sender) { - super(sender, TYPE); - } - - public MsgFileioReadReq() { - super(TYPE); - } - - public MsgFileioReadReq(SBPMessage msg) throws SBPBinaryException { + public MsgFileioReadReq (int sender) { super(sender, TYPE); } + public MsgFileioReadReq () { super(TYPE); } + public MsgFileioReadReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioReadReq, expected 168, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioReadReq, expected 168, actual " + msg.type); } @Override @@ -67,7 +70,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sequence = parser.getU32(); offset = parser.getU32(); chunk_size = parser.getU8(); - filename = parser.getString(); + filename = parser.getString(); } @Override @@ -75,7 +78,7 @@ protected void build(Builder builder) { builder.putU32(sequence); builder.putU32(offset); builder.putU8(chunk_size); - builder.putString(filename); + builder.putString(filename); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadResp.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadResp.java index b5af5db304..92fd661991 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioReadResp.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioReadResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FILEIO_READ_RESP (0x00A3). +/** SBP class for message MSG_FILEIO_READ_RESP (0x00A3). * - *

You can have MSG_FILEIO_READ_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_READ_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The file read message reads a certain length (up to 255 bytes) from a given offset into a - * file, and returns the data in a message where the message length field indicates how many bytes - * were successfully read. The sequence number in the response is preserved from the request. - */ + * The file read message reads a certain length (up to 255 bytes) from a given + * offset into a file, and returns the data in a message where the message + * length field indicates how many bytes were successfully read. The sequence + * number in the response is preserved from the request. */ + public class MsgFileioReadResp extends SBPMessage { public static final int TYPE = 0x00A3; + /** Read sequence number */ public long sequence; - + /** Contents of read file */ public int[] contents; + - public MsgFileioReadResp(int sender) { - super(sender, TYPE); - } - - public MsgFileioReadResp() { - super(TYPE); - } - - public MsgFileioReadResp(SBPMessage msg) throws SBPBinaryException { + public MsgFileioReadResp (int sender) { super(sender, TYPE); } + public MsgFileioReadResp () { super(TYPE); } + public MsgFileioReadResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioReadResp, expected 163, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioReadResp, expected 163, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); - contents = parser.getArrayofU8(); + contents = parser.getArrayofU8(); } @Override protected void build(Builder builder) { builder.putU32(sequence); - builder.putArrayofU8(contents); + builder.putArrayofU8(contents); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioRemove.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioRemove.java index 151abe48b4..88f43b7a46 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioRemove.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioRemove.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FILEIO_REMOVE (0x00AC). +/** SBP class for message MSG_FILEIO_REMOVE (0x00AC). * - *

You can have MSG_FILEIO_REMOVE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FILEIO_REMOVE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The file remove message deletes a file from the file system. If the message is invalid, a - * followup MSG_PRINT message will print "Invalid fileio remove message". A device will only process - * this message when it is received from sender ID 0x42. - */ + * The file remove message deletes a file from the file system. If the message + * is invalid, a followup MSG_PRINT message will print "Invalid fileio remove + * message". A device will only process this message when it is received from + * sender ID 0x42. */ + public class MsgFileioRemove extends SBPMessage { public static final int TYPE = 0x00AC; + /** Name of the file to delete */ public String filename; + - public MsgFileioRemove(int sender) { - super(sender, TYPE); - } - - public MsgFileioRemove() { - super(TYPE); - } - - public MsgFileioRemove(SBPMessage msg) throws SBPBinaryException { + public MsgFileioRemove (int sender) { super(sender, TYPE); } + public MsgFileioRemove () { super(TYPE); } + public MsgFileioRemove (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioRemove, expected 172, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioRemove, expected 172, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - filename = parser.getString(); + filename = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(filename); + builder.putString(filename); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteReq.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteReq.java index 6555886ef0..44a14e0ec5 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteReq.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FILEIO_WRITE_REQ (0x00AD). + +/** SBP class for message MSG_FILEIO_WRITE_REQ (0x00AD). * - *

You can have MSG_FILEIO_WRITE_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_WRITE_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The file write message writes a certain length (up to 255 bytes) of data to a file at a given - * offset. Returns a copy of the original MSG_FILEIO_WRITE_RESP message to check integrity of the - * write. The sequence number in the request will be returned in the response. If message is - * invalid, a followup MSG_PRINT message will print "Invalid fileio write message". A device will - * only process this message when it is received from sender ID 0x42. - */ + * The file write message writes a certain length (up to 255 bytes) of data to + * a file at a given offset. Returns a copy of the original + * MSG_FILEIO_WRITE_RESP message to check integrity of the write. The sequence + * number in the request will be returned in the response. If message is + * invalid, a followup MSG_PRINT message will print "Invalid fileio write + * message". A device will only process this message when it is received from + * sender ID 0x42. */ + public class MsgFileioWriteReq extends SBPMessage { public static final int TYPE = 0x00AD; + /** Write sequence number */ public long sequence; - + /** Offset into the file at which to start writing in bytes */ public long offset; - + /** Name of the file to write to */ public String filename; - + /** Variable-length array of data to write */ public int[] data; + - public MsgFileioWriteReq(int sender) { - super(sender, TYPE); - } - - public MsgFileioWriteReq() { - super(TYPE); - } - - public MsgFileioWriteReq(SBPMessage msg) throws SBPBinaryException { + public MsgFileioWriteReq (int sender) { super(sender, TYPE); } + public MsgFileioWriteReq () { super(TYPE); } + public MsgFileioWriteReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioWriteReq, expected 173, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioWriteReq, expected 173, actual " + msg.type); } @Override @@ -67,7 +70,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sequence = parser.getU32(); offset = parser.getU32(); filename = parser.getString(); - data = parser.getArrayofU8(); + data = parser.getArrayofU8(); } @Override @@ -75,7 +78,7 @@ protected void build(Builder builder) { builder.putU32(sequence); builder.putU32(offset); builder.putString(filename); - builder.putArrayofU8(data); + builder.putArrayofU8(data); } @Override diff --git a/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteResp.java b/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteResp.java index c3356af5f4..ce4dfa98a9 100644 --- a/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteResp.java +++ b/java/src/com/swiftnav/sbp/file_io/MsgFileioWriteResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.file_io; // This file was auto-generated from yaml/swiftnav/sbp/file_io.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FILEIO_WRITE_RESP (0x00AB). +/** SBP class for message MSG_FILEIO_WRITE_RESP (0x00AB). * - *

You can have MSG_FILEIO_WRITE_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_FILEIO_WRITE_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The file write message writes a certain length (up to 255 bytes) of data to a file at a given - * offset. The message is a copy of the original MSG_FILEIO_WRITE_REQ message to check integrity of - * the write. The sequence number in the response is preserved from the request. - */ + * The file write message writes a certain length (up to 255 bytes) of data to + * a file at a given offset. The message is a copy of the original + * MSG_FILEIO_WRITE_REQ message to check integrity of the write. The sequence + * number in the response is preserved from the request. */ + public class MsgFileioWriteResp extends SBPMessage { public static final int TYPE = 0x00AB; + /** Write sequence number */ public long sequence; + - public MsgFileioWriteResp(int sender) { - super(sender, TYPE); - } - - public MsgFileioWriteResp() { - super(TYPE); - } - - public MsgFileioWriteResp(SBPMessage msg) throws SBPBinaryException { + public MsgFileioWriteResp (int sender) { super(sender, TYPE); } + public MsgFileioWriteResp () { super(TYPE); } + public MsgFileioWriteResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFileioWriteResp, expected 171, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFileioWriteResp, expected 171, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - sequence = parser.getU32(); + sequence = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(sequence); + builder.putU32(sequence); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgFlashDone.java b/java/src/com/swiftnav/sbp/flash/MsgFlashDone.java index cf2b9bfa8c..fd3eb34513 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgFlashDone.java +++ b/java/src/com/swiftnav/sbp/flash/MsgFlashDone.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FLASH_DONE (0x00E0). +/** SBP class for message MSG_FLASH_DONE (0x00E0). * - *

You can have MSG_FLASH_DONE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FLASH_DONE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message defines success or failure codes for a variety of flash memory requests from the - * host to the device. Flash read and write messages, such as MSG_FLASH_READ_REQ, or - * MSG_FLASH_PROGRAM, may return this message on failure. - */ + * This message defines success or failure codes for a variety of flash memory + * requests from the host to the device. Flash read and write messages, such + * as MSG_FLASH_READ_REQ, or MSG_FLASH_PROGRAM, may return this message on + * failure. */ + public class MsgFlashDone extends SBPMessage { public static final int TYPE = 0x00E0; + /** Response flags */ public int response; + - public MsgFlashDone(int sender) { - super(sender, TYPE); - } - - public MsgFlashDone() { - super(TYPE); - } - - public MsgFlashDone(SBPMessage msg) throws SBPBinaryException { + public MsgFlashDone (int sender) { super(sender, TYPE); } + public MsgFlashDone () { super(TYPE); } + public MsgFlashDone (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFlashDone, expected 224, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFlashDone, expected 224, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - response = parser.getU8(); + response = parser.getU8(); } @Override protected void build(Builder builder) { - builder.putU8(response); + builder.putU8(response); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgFlashErase.java b/java/src/com/swiftnav/sbp/flash/MsgFlashErase.java index a7a3a3da43..19d36ccff9 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgFlashErase.java +++ b/java/src/com/swiftnav/sbp/flash/MsgFlashErase.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FLASH_ERASE (0x00E2). +/** SBP class for message MSG_FLASH_ERASE (0x00E2). * - *

You can have MSG_FLASH_ERASE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FLASH_ERASE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash erase message from the host erases a sector of either the STM or M25 onboard flash - * memory. The device will reply with a MSG_FLASH_DONE message containing the return code - FLASH_OK - * (0) on success or FLASH_INVALID_FLASH (1) if the flash specified is invalid. - */ + * The flash erase message from the host erases a sector of either the STM or + * M25 onboard flash memory. The device will reply with a MSG_FLASH_DONE + * message containing the return code - FLASH_OK (0) on success or + * FLASH_INVALID_FLASH (1) if the flash specified is invalid. */ + public class MsgFlashErase extends SBPMessage { public static final int TYPE = 0x00E2; + /** Target flags */ public int target; - + /** Flash sector number to erase (0-11 for the STM, 0-15 for the M25) */ public long sector_num; + - public MsgFlashErase(int sender) { - super(sender, TYPE); - } - - public MsgFlashErase() { - super(TYPE); - } - - public MsgFlashErase(SBPMessage msg) throws SBPBinaryException { + public MsgFlashErase (int sender) { super(sender, TYPE); } + public MsgFlashErase () { super(TYPE); } + public MsgFlashErase (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFlashErase, expected 226, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFlashErase, expected 226, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ target = parser.getU8(); - sector_num = parser.getU32(); + sector_num = parser.getU32(); } @Override protected void build(Builder builder) { builder.putU8(target); - builder.putU32(sector_num); + builder.putU32(sector_num); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgFlashProgram.java b/java/src/com/swiftnav/sbp/flash/MsgFlashProgram.java index 9b11564e1a..0eb3d297fc 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgFlashProgram.java +++ b/java/src/com/swiftnav/sbp/flash/MsgFlashProgram.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FLASH_PROGRAM (0x00E6). + +/** SBP class for message MSG_FLASH_PROGRAM (0x00E6). * - *

You can have MSG_FLASH_PROGRAM inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FLASH_PROGRAM inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash program message programs a set of addresses of either the STM or M25 flash. The - * device replies with either a MSG_FLASH_DONE message containing the return code FLASH_OK (0) on - * success, or FLASH_INVALID_LEN (2) if the maximum write size is exceeded. Note that the - * sector-containing addresses must be erased before addresses can be programmed. - */ + * The flash program message programs a set of addresses of either the STM or + * M25 flash. The device replies with either a MSG_FLASH_DONE message + * containing the return code FLASH_OK (0) on success, or FLASH_INVALID_LEN + * (2) if the maximum write size is exceeded. Note that the sector-containing + * addresses must be erased before addresses can be programmed. */ + public class MsgFlashProgram extends SBPMessage { public static final int TYPE = 0x00E6; + /** Target flags */ public int target; - + /** Starting address offset to program */ public int[] addr_start; - - /** Length of set of addresses to program, counting up from starting address */ + + /** Length of set of addresses to program, counting up from starting + * address */ public int addr_len; - + /** Data to program addresses with, with length N=addr_len */ public int[] data; + - public MsgFlashProgram(int sender) { - super(sender, TYPE); - } - - public MsgFlashProgram() { - super(TYPE); - } - - public MsgFlashProgram(SBPMessage msg) throws SBPBinaryException { + public MsgFlashProgram (int sender) { super(sender, TYPE); } + public MsgFlashProgram () { super(TYPE); } + public MsgFlashProgram (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFlashProgram, expected 230, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFlashProgram, expected 230, actual " + msg.type); } @Override @@ -66,7 +69,7 @@ protected void parse(Parser parser) throws SBPBinaryException { target = parser.getU8(); addr_start = parser.getArrayofU8(3); addr_len = parser.getU8(); - data = parser.getArrayofU8(); + data = parser.getArrayofU8(); } @Override @@ -74,7 +77,7 @@ protected void build(Builder builder) { builder.putU8(target); builder.putArrayofU8(addr_start, 3); builder.putU8(addr_len); - builder.putArrayofU8(data); + builder.putArrayofU8(data); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgFlashReadReq.java b/java/src/com/swiftnav/sbp/flash/MsgFlashReadReq.java index 30f75d94b6..49b7e4aba0 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgFlashReadReq.java +++ b/java/src/com/swiftnav/sbp/flash/MsgFlashReadReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FLASH_READ_REQ (0x00E7). + +/** SBP class for message MSG_FLASH_READ_REQ (0x00E7). * - *

You can have MSG_FLASH_READ_REQ inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FLASH_READ_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash read message reads a set of addresses of either the STM or M25 onboard flash. The - * device replies with a MSG_FLASH_READ_RESP message containing either the read data on success or a - * MSG_FLASH_DONE message containing the return code FLASH_INVALID_LEN (2) if the maximum read size - * is exceeded or FLASH_INVALID_ADDR (3) if the address is outside of the allowed range. - */ + * The flash read message reads a set of addresses of either the STM or M25 + * onboard flash. The device replies with a MSG_FLASH_READ_RESP message + * containing either the read data on success or a MSG_FLASH_DONE message + * containing the return code FLASH_INVALID_LEN (2) if the maximum read size + * is exceeded or FLASH_INVALID_ADDR (3) if the address is outside of the + * allowed range. */ + public class MsgFlashReadReq extends SBPMessage { public static final int TYPE = 0x00E7; + /** Target flags */ public int target; - + /** Starting address offset to read from */ public int[] addr_start; - + /** Length of set of addresses to read, counting up from starting address */ public int addr_len; + - public MsgFlashReadReq(int sender) { - super(sender, TYPE); - } - - public MsgFlashReadReq() { - super(TYPE); - } - - public MsgFlashReadReq(SBPMessage msg) throws SBPBinaryException { + public MsgFlashReadReq (int sender) { super(sender, TYPE); } + public MsgFlashReadReq () { super(TYPE); } + public MsgFlashReadReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFlashReadReq, expected 231, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFlashReadReq, expected 231, actual " + msg.type); } @Override @@ -62,14 +65,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ target = parser.getU8(); addr_start = parser.getArrayofU8(3); - addr_len = parser.getU8(); + addr_len = parser.getU8(); } @Override protected void build(Builder builder) { builder.putU8(target); builder.putArrayofU8(addr_start, 3); - builder.putU8(addr_len); + builder.putU8(addr_len); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgFlashReadResp.java b/java/src/com/swiftnav/sbp/flash/MsgFlashReadResp.java index dfc42d3865..dc2aefe390 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgFlashReadResp.java +++ b/java/src/com/swiftnav/sbp/flash/MsgFlashReadResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FLASH_READ_RESP (0x00E1). + +/** SBP class for message MSG_FLASH_READ_RESP (0x00E1). * - *

You can have MSG_FLASH_READ_RESP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FLASH_READ_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash read message reads a set of addresses of either the STM or M25 onboard flash. The - * device replies with a MSG_FLASH_READ_RESP message containing either the read data on success or a - * MSG_FLASH_DONE message containing the return code FLASH_INVALID_LEN (2) if the maximum read size - * is exceeded or FLASH_INVALID_ADDR (3) if the address is outside of the allowed range. - */ + * The flash read message reads a set of addresses of either the STM or M25 + * onboard flash. The device replies with a MSG_FLASH_READ_RESP message + * containing either the read data on success or a MSG_FLASH_DONE message + * containing the return code FLASH_INVALID_LEN (2) if the maximum read size + * is exceeded or FLASH_INVALID_ADDR (3) if the address is outside of the + * allowed range. */ + public class MsgFlashReadResp extends SBPMessage { public static final int TYPE = 0x00E1; + /** Target flags */ public int target; - + /** Starting address offset to read from */ public int[] addr_start; - + /** Length of set of addresses to read, counting up from starting address */ public int addr_len; + - public MsgFlashReadResp(int sender) { - super(sender, TYPE); - } - - public MsgFlashReadResp() { - super(TYPE); - } - - public MsgFlashReadResp(SBPMessage msg) throws SBPBinaryException { + public MsgFlashReadResp (int sender) { super(sender, TYPE); } + public MsgFlashReadResp () { super(TYPE); } + public MsgFlashReadResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFlashReadResp, expected 225, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFlashReadResp, expected 225, actual " + msg.type); } @Override @@ -62,14 +65,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ target = parser.getU8(); addr_start = parser.getArrayofU8(3); - addr_len = parser.getU8(); + addr_len = parser.getU8(); } @Override protected void build(Builder builder) { builder.putU8(target); builder.putArrayofU8(addr_start, 3); - builder.putU8(addr_len); + builder.putU8(addr_len); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgM25FlashWriteStatus.java b/java/src/com/swiftnav/sbp/flash/MsgM25FlashWriteStatus.java index 9a2ef2bb93..0c0ac27638 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgM25FlashWriteStatus.java +++ b/java/src/com/swiftnav/sbp/flash/MsgM25FlashWriteStatus.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_M25_FLASH_WRITE_STATUS (0x00F3). +/** SBP class for message MSG_M25_FLASH_WRITE_STATUS (0x00F3). * - *

You can have MSG_M25_FLASH_WRITE_STATUS inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_M25_FLASH_WRITE_STATUS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash status message writes to the 8-bit M25 flash status register. The device replies - * with a MSG_FLASH_DONE message. - */ + * The flash status message writes to the 8-bit M25 flash status register. The + * device replies with a MSG_FLASH_DONE message. */ + public class MsgM25FlashWriteStatus extends SBPMessage { public static final int TYPE = 0x00F3; + /** Byte to write to the M25 flash status register */ public int[] status; + - public MsgM25FlashWriteStatus(int sender) { - super(sender, TYPE); - } - - public MsgM25FlashWriteStatus() { - super(TYPE); - } - - public MsgM25FlashWriteStatus(SBPMessage msg) throws SBPBinaryException { + public MsgM25FlashWriteStatus (int sender) { super(sender, TYPE); } + public MsgM25FlashWriteStatus () { super(TYPE); } + public MsgM25FlashWriteStatus (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgM25FlashWriteStatus, expected 243, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgM25FlashWriteStatus, expected 243, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - status = parser.getArrayofU8(1); + status = parser.getArrayofU8(1); } @Override protected void build(Builder builder) { - builder.putArrayofU8(status, 1); + builder.putArrayofU8(status, 1); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgStmFlashLockSector.java b/java/src/com/swiftnav/sbp/flash/MsgStmFlashLockSector.java index 3530b94622..95af9ba514 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgStmFlashLockSector.java +++ b/java/src/com/swiftnav/sbp/flash/MsgStmFlashLockSector.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_STM_FLASH_LOCK_SECTOR (0x00E3). +/** SBP class for message MSG_STM_FLASH_LOCK_SECTOR (0x00E3). * - *

You can have MSG_STM_FLASH_LOCK_SECTOR inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_STM_FLASH_LOCK_SECTOR inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash lock message locks a sector of the STM flash memory. The device replies with a - * MSG_FLASH_DONE message. - */ + * The flash lock message locks a sector of the STM flash memory. The device + * replies with a MSG_FLASH_DONE message. */ + public class MsgStmFlashLockSector extends SBPMessage { public static final int TYPE = 0x00E3; + /** Flash sector number to lock */ public long sector; + - public MsgStmFlashLockSector(int sender) { - super(sender, TYPE); - } - - public MsgStmFlashLockSector() { - super(TYPE); - } - - public MsgStmFlashLockSector(SBPMessage msg) throws SBPBinaryException { + public MsgStmFlashLockSector (int sender) { super(sender, TYPE); } + public MsgStmFlashLockSector () { super(TYPE); } + public MsgStmFlashLockSector (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStmFlashLockSector, expected 227, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStmFlashLockSector, expected 227, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - sector = parser.getU32(); + sector = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(sector); + builder.putU32(sector); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgStmFlashUnlockSector.java b/java/src/com/swiftnav/sbp/flash/MsgStmFlashUnlockSector.java index 13e5156f6d..f25b353af1 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgStmFlashUnlockSector.java +++ b/java/src/com/swiftnav/sbp/flash/MsgStmFlashUnlockSector.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_STM_FLASH_UNLOCK_SECTOR (0x00E4). +/** SBP class for message MSG_STM_FLASH_UNLOCK_SECTOR (0x00E4). * - *

You can have MSG_STM_FLASH_UNLOCK_SECTOR inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_STM_FLASH_UNLOCK_SECTOR inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The flash unlock message unlocks a sector of the STM flash memory. The device replies with a - * MSG_FLASH_DONE message. - */ + * The flash unlock message unlocks a sector of the STM flash memory. The + * device replies with a MSG_FLASH_DONE message. */ + public class MsgStmFlashUnlockSector extends SBPMessage { public static final int TYPE = 0x00E4; + /** Flash sector number to unlock */ public long sector; + - public MsgStmFlashUnlockSector(int sender) { - super(sender, TYPE); - } - - public MsgStmFlashUnlockSector() { - super(TYPE); - } - - public MsgStmFlashUnlockSector(SBPMessage msg) throws SBPBinaryException { + public MsgStmFlashUnlockSector (int sender) { super(sender, TYPE); } + public MsgStmFlashUnlockSector () { super(TYPE); } + public MsgStmFlashUnlockSector (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStmFlashUnlockSector, expected 228, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStmFlashUnlockSector, expected 228, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - sector = parser.getU32(); + sector = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(sector); + builder.putU32(sector); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdReq.java b/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdReq.java index 9de61b55ee..7b40798c65 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdReq.java +++ b/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,43 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_STM_UNIQUE_ID_REQ (0x00E8). +/** SBP class for message MSG_STM_UNIQUE_ID_REQ (0x00E8). * - *

You can have MSG_STM_UNIQUE_ID_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_STM_UNIQUE_ID_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reads the device's hard-coded unique ID. The host requests the ID by sending a - * MSG_STM_UNIQUE_ID_REQ. The device responds with a MSG_STM_UNIQUE_ID_RESP with the 12-byte unique - * ID in the payload. - */ + * This message reads the device's hard-coded unique ID. The host requests the + * ID by sending a MSG_STM_UNIQUE_ID_REQ. The device responds with a + * MSG_STM_UNIQUE_ID_RESP with the 12-byte unique ID in the payload. */ + public class MsgStmUniqueIdReq extends SBPMessage { public static final int TYPE = 0x00E8; - public MsgStmUniqueIdReq(int sender) { - super(sender, TYPE); - } - - public MsgStmUniqueIdReq() { - super(TYPE); - } + - public MsgStmUniqueIdReq(SBPMessage msg) throws SBPBinaryException { + public MsgStmUniqueIdReq (int sender) { super(sender, TYPE); } + public MsgStmUniqueIdReq () { super(TYPE); } + public MsgStmUniqueIdReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStmUniqueIdReq, expected 232, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStmUniqueIdReq, expected 232, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdResp.java b/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdResp.java index b26b11f2e4..79b2028a80 100644 --- a/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdResp.java +++ b/java/src/com/swiftnav/sbp/flash/MsgStmUniqueIdResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.flash; // This file was auto-generated from yaml/swiftnav/sbp/flash.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_STM_UNIQUE_ID_RESP (0x00E5). +/** SBP class for message MSG_STM_UNIQUE_ID_RESP (0x00E5). * - *

You can have MSG_STM_UNIQUE_ID_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_STM_UNIQUE_ID_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reads the device's hard-coded unique ID. The host requests the ID by sending a - * MSG_STM_UNIQUE_ID_REQ. The device responds with a MSG_STM_UNIQUE_ID_RESP with the 12-byte unique - * ID in the payload. - */ + * This message reads the device's hard-coded unique ID. The host requests the + * ID by sending a MSG_STM_UNIQUE_ID_REQ. The device responds with a + * MSG_STM_UNIQUE_ID_RESP with the 12-byte unique ID in the payload. */ + public class MsgStmUniqueIdResp extends SBPMessage { public static final int TYPE = 0x00E5; + /** Device unique ID */ public int[] stm_id; + - public MsgStmUniqueIdResp(int sender) { - super(sender, TYPE); - } - - public MsgStmUniqueIdResp() { - super(TYPE); - } - - public MsgStmUniqueIdResp(SBPMessage msg) throws SBPBinaryException { + public MsgStmUniqueIdResp (int sender) { super(sender, TYPE); } + public MsgStmUniqueIdResp () { super(TYPE); } + public MsgStmUniqueIdResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStmUniqueIdResp, expected 229, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStmUniqueIdResp, expected 229, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - stm_id = parser.getArrayofU8(12); + stm_id = parser.getArrayofU8(12); } @Override protected void build(Builder builder) { - builder.putArrayofU8(stm_id, 12); + builder.putArrayofU8(stm_id, 12); } @Override diff --git a/java/src/com/swiftnav/sbp/gnss/CarrierPhase.java b/java/src/com/swiftnav/sbp/gnss/CarrierPhase.java index 29d1e2e9cb..7d3a391d55 100644 --- a/java/src/com/swiftnav/sbp/gnss/CarrierPhase.java +++ b/java/src/com/swiftnav/sbp/gnss/CarrierPhase.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,26 +9,31 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class CarrierPhase extends SBPStruct { - + /** Carrier phase whole cycles */ public int i; - + /** Carrier phase fractional part */ public int f; + - public CarrierPhase() {} + public CarrierPhase () {} @Override public CarrierPhase parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/GPSTime.java b/java/src/com/swiftnav/sbp/gnss/GPSTime.java index bda6c7d394..8e4a82154e 100644 --- a/java/src/com/swiftnav/sbp/gnss/GPSTime.java +++ b/java/src/com/swiftnav/sbp/gnss/GPSTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,29 +9,34 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GPSTime extends SBPStruct { - + /** Milliseconds since start of GPS week */ public long tow; - + /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) */ public int ns_residual; - + /** GPS week number */ public int wn; + - public GPSTime() {} + public GPSTime () {} @Override public GPSTime parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/GPSTimeDep.java b/java/src/com/swiftnav/sbp/gnss/GPSTimeDep.java index 6450535461..84cc2bea59 100644 --- a/java/src/com/swiftnav/sbp/gnss/GPSTimeDep.java +++ b/java/src/com/swiftnav/sbp/gnss/GPSTimeDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,26 +9,31 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GPSTimeDep extends SBPStruct { - + /** Milliseconds since start of GPS week */ public long tow; - + /** GPS week number */ public int wn; + - public GPSTimeDep() {} + public GPSTimeDep () {} @Override public GPSTimeDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/GPSTimeSec.java b/java/src/com/swiftnav/sbp/gnss/GPSTimeSec.java index bb44e76332..d83de49253 100644 --- a/java/src/com/swiftnav/sbp/gnss/GPSTimeSec.java +++ b/java/src/com/swiftnav/sbp/gnss/GPSTimeSec.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,26 +9,31 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GPSTimeSec extends SBPStruct { - + /** Seconds since start of GPS week */ public long tow; - + /** GPS week number */ public int wn; + - public GPSTimeSec() {} + public GPSTimeSec () {} @Override public GPSTimeSec parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/GnssSignal.java b/java/src/com/swiftnav/sbp/gnss/GnssSignal.java index 7eb33e72dc..1b35c497c8 100644 --- a/java/src/com/swiftnav/sbp/gnss/GnssSignal.java +++ b/java/src/com/swiftnav/sbp/gnss/GnssSignal.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,29 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GnssSignal extends SBPStruct { - - /** - * Constellation-specific satellite id. For GLO can either be (100+FCN) where FCN is in [-7,+6] - * or the Slot ID in [1,28]. - */ + + /** Constellation-specific satellite id. For GLO can either be (100+FCN) where FCN + * is in [-7,+6] or the Slot ID in [1,28]. */ public int sat; - + /** Signal constellation, band and code */ public int code; + - public GnssSignal() {} + public GnssSignal () {} @Override public GnssSignal parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/GnssSignalDep.java b/java/src/com/swiftnav/sbp/gnss/GnssSignalDep.java index 85f8ee3d72..3a866e8fda 100644 --- a/java/src/com/swiftnav/sbp/gnss/GnssSignalDep.java +++ b/java/src/com/swiftnav/sbp/gnss/GnssSignalDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,34 +9,37 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GnssSignalDep extends SBPStruct { - - /** - * Constellation-specific satellite identifier. - * - *

Note: unlike GnssSignal, GPS satellites are encoded as (PRN - 1). Other constellations do - * not have this offset. - */ + + /** Constellation-specific satellite identifier. + * + * Note: unlike GnssSignal, GPS satellites are encoded as (PRN - 1). Other + * constellations do not have this offset. */ public int sat; - + /** Signal constellation, band and code */ public int code; - + /** Reserved */ public int reserved; + - public GnssSignalDep() {} + public GnssSignalDep () {} @Override public GnssSignalDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/gnss/SvId.java b/java/src/com/swiftnav/sbp/gnss/SvId.java index 235c7cc3b8..f72a780f12 100644 --- a/java/src/com/swiftnav/sbp/gnss/SvId.java +++ b/java/src/com/swiftnav/sbp/gnss/SvId.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,29 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.gnss; // This file was auto-generated from yaml/swiftnav/sbp/gnss.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class SvId extends SBPStruct { - - /** - * Constellation-specific satellite id. For GLO can either be (100+FCN) where FCN is in [-7,+6] - * or the Slot ID in [1,28]. - */ + + /** Constellation-specific satellite id. For GLO can either be (100+FCN) where FCN + * is in [-7,+6] or the Slot ID in [1,28]. */ public int satId; - + /** Constellation ID to which the SV belongs */ public int constellation; + - public SvId() {} + public SvId () {} @Override public SvId parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/imu/MsgImuAux.java b/java/src/com/swiftnav/sbp/imu/MsgImuAux.java index b9dbb0f3b0..0b89a6d94e 100644 --- a/java/src/com/swiftnav/sbp/imu/MsgImuAux.java +++ b/java/src/com/swiftnav/sbp/imu/MsgImuAux.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,50 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.imu; // This file was auto-generated from yaml/swiftnav/sbp/imu.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_IMU_AUX (0x0901). + +/** SBP class for message MSG_IMU_AUX (0x0901). * - *

You can have MSG_IMU_AUX inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_IMU_AUX inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Auxiliary data specific to a particular IMU. The `imu_type` field will always be consistent - * but the rest of the payload is device specific and depends on the value of `imu_type`. - */ + * Auxiliary data specific to a particular IMU. The `imu_type` field will + * always be consistent but the rest of the payload is device specific and + * depends on the value of `imu_type`. */ + public class MsgImuAux extends SBPMessage { public static final int TYPE = 0x0901; + /** IMU type */ public int imu_type; - + /** Raw IMU temperature */ public int temp; - + /** IMU configuration */ public int imu_conf; + - public MsgImuAux(int sender) { - super(sender, TYPE); - } - - public MsgImuAux() { - super(TYPE); - } - - public MsgImuAux(SBPMessage msg) throws SBPBinaryException { + public MsgImuAux (int sender) { super(sender, TYPE); } + public MsgImuAux () { super(TYPE); } + public MsgImuAux (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgImuAux, expected 2305, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgImuAux, expected 2305, actual " + msg.type); } @Override @@ -59,14 +62,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ imu_type = parser.getU8(); temp = parser.getS16(); - imu_conf = parser.getU8(); + imu_conf = parser.getU8(); } @Override protected void build(Builder builder) { builder.putU8(imu_type); builder.putS16(temp); - builder.putU8(imu_conf); + builder.putU8(imu_conf); } @Override diff --git a/java/src/com/swiftnav/sbp/imu/MsgImuComp.java b/java/src/com/swiftnav/sbp/imu/MsgImuComp.java index ae8c64286a..1a4131c5fd 100644 --- a/java/src/com/swiftnav/sbp/imu/MsgImuComp.java +++ b/java/src/com/swiftnav/sbp/imu/MsgImuComp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,67 +9,69 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.imu; // This file was auto-generated from yaml/swiftnav/sbp/imu.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_IMU_COMP (0x0905). +/** SBP class for message MSG_IMU_COMP (0x0905). * - *

You can have MSG_IMU_COMP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_IMU_COMP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Data from the Inertial Measurement Unit, containing accelerometer and gyroscope readings - * compensated for estimated errors and constant physical effects. The output is valid for - * inertially referenced center of navigation (IMU body frame) represented in vehicle body frame. - */ + * Data from the Inertial Measurement Unit, containing accelerometer and + * gyroscope readings compensated for estimated errors and constant physical + * effects. The output is valid for inertially referenced center of + * navigation (IMU body frame) represented in vehicle body frame. */ + public class MsgImuComp extends SBPMessage { public static final int TYPE = 0x0905; + /** Microseconds since reference epoch */ public BigInteger time; - - /** Contains the applied compensation parameters and time synchronization mode */ + + /** Contains the applied compensation parameters and time synchronization + * mode */ public int flags; - + /** Compensated acceleration X axis */ public int acc_comp_x; - + /** Compensated acceleration Y axis */ public int acc_comp_y; - + /** Compensated acceleration Z axis */ public int acc_comp_z; - + /** Compensated angular rate X axis */ public int gyr_comp_x; - + /** Compensated angular rate Y axis */ public int gyr_comp_y; - + /** Compensated angular rate Z axis */ public int gyr_comp_z; + - public MsgImuComp(int sender) { - super(sender, TYPE); - } - - public MsgImuComp() { - super(TYPE); - } - - public MsgImuComp(SBPMessage msg) throws SBPBinaryException { + public MsgImuComp (int sender) { super(sender, TYPE); } + public MsgImuComp () { super(TYPE); } + public MsgImuComp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgImuComp, expected 2309, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgImuComp, expected 2309, actual " + msg.type); } @Override @@ -81,7 +84,7 @@ protected void parse(Parser parser) throws SBPBinaryException { acc_comp_z = parser.getS32(); gyr_comp_x = parser.getS32(); gyr_comp_y = parser.getS32(); - gyr_comp_z = parser.getS32(); + gyr_comp_z = parser.getS32(); } @Override @@ -93,7 +96,7 @@ protected void build(Builder builder) { builder.putS32(acc_comp_z); builder.putS32(gyr_comp_x); builder.putS32(gyr_comp_y); - builder.putS32(gyr_comp_z); + builder.putS32(gyr_comp_z); } @Override diff --git a/java/src/com/swiftnav/sbp/imu/MsgImuRaw.java b/java/src/com/swiftnav/sbp/imu/MsgImuRaw.java index 6b89884716..74e265469e 100644 --- a/java/src/com/swiftnav/sbp/imu/MsgImuRaw.java +++ b/java/src/com/swiftnav/sbp/imu/MsgImuRaw.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,74 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.imu; // This file was auto-generated from yaml/swiftnav/sbp/imu.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_IMU_RAW (0x0900). +/** SBP class for message MSG_IMU_RAW (0x0900). * - *

You can have MSG_IMU_RAW inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_IMU_RAW inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Raw data from the Inertial Measurement Unit, containing accelerometer and gyroscope readings. - * The sense of the measurements are to be aligned with the indications on the device itself. - * Measurement units, which are specific to the device hardware and settings, are communicated via - * the MSG_IMU_AUX message. If using "time since startup" local time tags, the receiving end will - * expect either a MSG_GNSS_TIME_OFFSET or MSG_PPS_TIME to establish the relationship between IMU - * time and GNSS time. Regardless of the timestamping mode, the timestamp is required to roll over - * to zero when reaching one week (604800 seconds, or 604800000 milliseconds). The time-tagging mode - * should not change throughout a run. - */ + * Raw data from the Inertial Measurement Unit, containing accelerometer and + * gyroscope readings. The sense of the measurements are to be aligned with + * the indications on the device itself. Measurement units, which are specific + * to the device hardware and settings, are communicated via the MSG_IMU_AUX + * message. If using "time since startup" local time tags, the receiving end + * will expect either a MSG_GNSS_TIME_OFFSET or MSG_PPS_TIME to establish the + * relationship between IMU time and GNSS time. + * Regardless of the timestamping mode, the timestamp is required to roll over + * to zero when reaching one week (604800 seconds, or 604800000 milliseconds). + * The time-tagging mode should not change throughout a run. */ + public class MsgImuRaw extends SBPMessage { public static final int TYPE = 0x0900; + /** Milliseconds since reference epoch and time status. */ public long tow; - + /** Milliseconds since reference epoch, fractional part */ public int tow_f; - + /** Acceleration in the IMU frame X axis */ public int acc_x; - + /** Acceleration in the IMU frame Y axis */ public int acc_y; - + /** Acceleration in the IMU frame Z axis */ public int acc_z; - + /** Angular rate around IMU frame X axis */ public int gyr_x; - + /** Angular rate around IMU frame Y axis */ public int gyr_y; - + /** Angular rate around IMU frame Z axis */ public int gyr_z; + - public MsgImuRaw(int sender) { - super(sender, TYPE); - } - - public MsgImuRaw() { - super(TYPE); - } - - public MsgImuRaw(SBPMessage msg) throws SBPBinaryException { + public MsgImuRaw (int sender) { super(sender, TYPE); } + public MsgImuRaw () { super(TYPE); } + public MsgImuRaw (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgImuRaw, expected 2304, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgImuRaw, expected 2304, actual " + msg.type); } @Override @@ -85,7 +89,7 @@ protected void parse(Parser parser) throws SBPBinaryException { acc_z = parser.getS16(); gyr_x = parser.getS16(); gyr_y = parser.getS16(); - gyr_z = parser.getS16(); + gyr_z = parser.getS16(); } @Override @@ -97,7 +101,7 @@ protected void build(Builder builder) { builder.putS16(acc_z); builder.putS16(gyr_x); builder.putS16(gyr_y); - builder.putS16(gyr_z); + builder.putS16(gyr_z); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/IntegritySSRHeader.java b/java/src/com/swiftnav/sbp/integrity/IntegritySSRHeader.java index 6ca184514f..b6eb47ee20 100644 --- a/java/src/com/swiftnav/sbp/integrity/IntegritySSRHeader.java +++ b/java/src/com/swiftnav/sbp/integrity/IntegritySSRHeader.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,47 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class IntegritySSRHeader extends SBPStruct { - + /** GNSS reference time of the observation used to generate the flag. */ public GPSTimeSec obs_time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - + /** SSR Solution ID. */ public int ssr_sol_id; - + /** Unique identifier of the set this tile belongs to. */ public int tile_set_id; - + /** Unique identifier of this tile in the tile set. */ public int tile_id; - + /** Chain and type of flag. */ public int chain_id; + - public IntegritySSRHeader() {} + public IntegritySSRHeader () {} @Override public IntegritySSRHeader parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/integrity/MsgAcknowledge.java b/java/src/com/swiftnav/sbp/integrity/MsgAcknowledge.java index 302931247b..678d89f8d6 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgAcknowledge.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgAcknowledge.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgAcknowledge extends SBPMessage { public static final int TYPE = 0x0BD2; - /** - * Echo of the request ID field from the corresponding CRA message, or 255 if no request ID was - * provided. - */ + + /** Echo of the request ID field from the corresponding CRA message, or + * 255 if no request ID was provided. */ public int request_id; - + /** Echo of the Area ID field from the corresponding CRA message. */ public long area_id; - + /** Reported status of the request. */ public int response_code; - - /** - * Contains the message group(s) that will be sent in response from the corresponding CRA - * correction mask. An echo of the correction mask field from the corresponding CRA message. - */ + + /** Contains the message group(s) that will be sent in response from the + * corresponding CRA correction mask. An echo of the correction mask + * field from the corresponding CRA message. */ public int correction_mask_on_demand; - + /** For future expansion. Always set to 0. */ public int correction_mask_stream; - + /** The solution ID of the instance providing the corrections. */ public int solution_id; + - public MsgAcknowledge(int sender) { - super(sender, TYPE); - } - - public MsgAcknowledge() { - super(TYPE); - } - - public MsgAcknowledge(SBPMessage msg) throws SBPBinaryException { + public MsgAcknowledge (int sender) { super(sender, TYPE); } + public MsgAcknowledge () { super(TYPE); } + public MsgAcknowledge (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAcknowledge, expected 3026, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAcknowledge, expected 3026, actual " + msg.type); } @Override @@ -69,7 +69,7 @@ protected void parse(Parser parser) throws SBPBinaryException { response_code = parser.getU8(); correction_mask_on_demand = parser.getU16(); correction_mask_stream = parser.getU16(); - solution_id = parser.getU8(); + solution_id = parser.getU8(); } @Override @@ -79,7 +79,7 @@ protected void build(Builder builder) { builder.putU8(response_code); builder.putU16(correction_mask_on_demand); builder.putU16(correction_mask_stream); - builder.putU8(solution_id); + builder.putU8(solution_id); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevel.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevel.java index 1c722941d8..b5bf2d2624 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevel.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,117 +9,124 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BB9). +/** SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BBA). * - *

You can have MSG_SSR_FLAG_HIGH_LEVEL inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_FLAG_HIGH_LEVEL inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Integrity monitoring flags for multiple aggregated elements. An element could be a satellite, - * SSR grid point, or SSR tile. A group of aggregated elements being monitored for integrity could - * refer to: + * Integrity monitoring flags for multiple aggregated elements. An element + * could be a satellite, SSR grid point, or SSR tile. A group of aggregated + * elements being monitored for integrity could refer to: * - *

- Satellites in a particular {GPS, GAL, BDS, QZSS} constellation. + * - Satellites in a particular {GPS, GAL, BDS, QZSS} constellation. * - *

- Satellites in the line-of-sight of a particular SSR tile. + * - Satellites in the line-of-sight of a particular SSR tile. * - *

- Satellites in the line-of-sight of a particular SSR grid point. + * - Satellites in the line-of-sight of a particular SSR grid point. * - *

The integrity usage for a group of aggregated elements varies according to the integrity flag - * of the satellites comprising that group. + * The integrity usage for a group of aggregated elements varies according to + * the integrity flag of the satellites comprising that group. * - *

SSR_INTEGRITY_USAGE_NOMINAL: All satellites received passed the integrity check and have flag - * INTEGRITY_FLAG_OK. + * SSR_INTEGRITY_USAGE_NOMINAL: All satellites received passed the integrity + * check and have flag INTEGRITY_FLAG_OK. * - *

SSR_INTEGRITY_USAGE_WARNING: A limited number of elements in the group failed the integrity - * check. Refer to more granular integrity messages for details on the specific failing elements. + * SSR_INTEGRITY_USAGE_WARNING: A limited number of elements in the group + * failed the integrity check. Refer to more granular integrity messages for + * details on the specific failing elements. * - *

SSR_INTEGRITY_USAGE_ALERT: Most elements in the group failed the integrity check, do not use - * for positioning. + * SSR_INTEGRITY_USAGE_ALERT: Most elements in the group failed the integrity + * check, do not use for positioning. * - *

SSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of elements in the - * group. - */ + * SSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of + * elements in the group. */ + public class MsgSsrFlagHighLevel extends SBPMessage { - public static final int TYPE = 0x0BB9; + public static final int TYPE = 0x0BBA; + /** GNSS reference time of the observation used to generate the flag. */ public GPSTimeSec obs_time; - - /** GNSS reference time of the correction associated to the flag. */ - public GPSTimeSec corr_time; - + + /** GNSS reference time of the ionospheric correction associated to the + * flag. */ + public GPSTimeSec iono_corr_time; + + /** GNSS reference time of the satellite correction associated to the + * flag. */ + public GPSTimeSec sat_corr_time; + /** SSR Solution ID. */ public int ssr_sol_id; - + /** Unique identifier of the set this tile belongs to. */ public int tile_set_id; - + /** Unique identifier of this tile in the tile set. */ public int tile_id; - + /** Chain and type of flag. */ public int chain_id; - + /** Use GPS satellites. */ public int use_gps_sat; - + /** Use GAL satellites. */ public int use_gal_sat; - + /** Use BDS satellites. */ public int use_bds_sat; - + /** Use QZSS satellites. */ public int use_qzss_sat; - + /** Reserved */ public int[] reserved; - + /** Use tropo grid points. */ public int use_tropo_grid_points; - + /** Use iono grid points. */ public int use_iono_grid_points; - + /** Use iono tile satellite LoS. */ public int use_iono_tile_sat_los; - + /** Use iono grid point satellite LoS. */ public int use_iono_grid_point_sat_los; + - public MsgSsrFlagHighLevel(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagHighLevel() { - super(TYPE); - } - - public MsgSsrFlagHighLevel(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagHighLevel (int sender) { super(sender, TYPE); } + public MsgSsrFlagHighLevel () { super(TYPE); } + public MsgSsrFlagHighLevel (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagHighLevel, expected 3001, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagHighLevel, expected 3002, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ obs_time = new GPSTimeSec().parse(parser); - corr_time = new GPSTimeSec().parse(parser); + iono_corr_time = new GPSTimeSec().parse(parser); + sat_corr_time = new GPSTimeSec().parse(parser); ssr_sol_id = parser.getU8(); tile_set_id = parser.getU16(); tile_id = parser.getU16(); @@ -131,13 +139,14 @@ protected void parse(Parser parser) throws SBPBinaryException { use_tropo_grid_points = parser.getU8(); use_iono_grid_points = parser.getU8(); use_iono_tile_sat_los = parser.getU8(); - use_iono_grid_point_sat_los = parser.getU8(); + use_iono_grid_point_sat_los = parser.getU8(); } @Override protected void build(Builder builder) { obs_time.build(builder); - corr_time.build(builder); + iono_corr_time.build(builder); + sat_corr_time.build(builder); builder.putU8(ssr_sol_id); builder.putU16(tile_set_id); builder.putU16(tile_id); @@ -150,14 +159,15 @@ protected void build(Builder builder) { builder.putU8(use_tropo_grid_points); builder.putU8(use_iono_grid_points); builder.putU8(use_iono_tile_sat_los); - builder.putU8(use_iono_grid_point_sat_los); + builder.putU8(use_iono_grid_point_sat_los); } @Override public JSONObject toJSON() { JSONObject obj = super.toJSON(); obj.put("obs_time", obs_time.toJSON()); - obj.put("corr_time", corr_time.toJSON()); + obj.put("iono_corr_time", iono_corr_time.toJSON()); + obj.put("sat_corr_time", sat_corr_time.toJSON()); obj.put("ssr_sol_id", ssr_sol_id); obj.put("tile_set_id", tile_set_id); obj.put("tile_id", tile_id); diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevelDepA.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevelDepA.java new file mode 100644 index 0000000000..96e1c054c6 --- /dev/null +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagHighLevelDepA.java @@ -0,0 +1,159 @@ +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. + * Contact: https://support.swiftnav.com + * + * This source is subject to the license found in the file 'LICENSE' which must + * be distributed together with this source. All other rights reserved. + * + * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + */ + +package com.swiftnav.sbp.integrity; + +// This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. +// Do not modify by hand! + +import java.math.BigInteger; + +import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; +import com.swiftnav.sbp.gnss.*; + +import org.json.JSONObject; +import org.json.JSONArray; + + +/** SBP class for message MSG_SSR_FLAG_HIGH_LEVEL_DEP_A (0x0BB9). + * + * You can have MSG_SSR_FLAG_HIGH_LEVEL_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. + * + * Deprecated. */ + +public class MsgSsrFlagHighLevelDepA extends SBPMessage { + public static final int TYPE = 0x0BB9; + + + /** GNSS reference time of the observation used to generate the flag. */ + public GPSTimeSec obs_time; + + /** GNSS reference time of the correction associated to the flag. */ + public GPSTimeSec corr_time; + + /** SSR Solution ID. */ + public int ssr_sol_id; + + /** Unique identifier of the set this tile belongs to. */ + public int tile_set_id; + + /** Unique identifier of this tile in the tile set. */ + public int tile_id; + + /** Chain and type of flag. */ + public int chain_id; + + /** Use GPS satellites. */ + public int use_gps_sat; + + /** Use GAL satellites. */ + public int use_gal_sat; + + /** Use BDS satellites. */ + public int use_bds_sat; + + /** Use QZSS satellites. */ + public int use_qzss_sat; + + /** Reserved */ + public int[] reserved; + + /** Use tropo grid points. */ + public int use_tropo_grid_points; + + /** Use iono grid points. */ + public int use_iono_grid_points; + + /** Use iono tile satellite LoS. */ + public int use_iono_tile_sat_los; + + /** Use iono grid point satellite LoS. */ + public int use_iono_grid_point_sat_los; + + + public MsgSsrFlagHighLevelDepA (int sender) { super(sender, TYPE); } + public MsgSsrFlagHighLevelDepA () { super(TYPE); } + public MsgSsrFlagHighLevelDepA (SBPMessage msg) throws SBPBinaryException { + super(msg); + if (msg.type != TYPE) + throw new SBPBinaryException("Type mismatch for MsgSsrFlagHighLevelDepA, expected 3001, actual " + msg.type); + } + + @Override + protected void parse(Parser parser) throws SBPBinaryException { + /* Parse fields from binary */ + obs_time = new GPSTimeSec().parse(parser); + corr_time = new GPSTimeSec().parse(parser); + ssr_sol_id = parser.getU8(); + tile_set_id = parser.getU16(); + tile_id = parser.getU16(); + chain_id = parser.getU8(); + use_gps_sat = parser.getU8(); + use_gal_sat = parser.getU8(); + use_bds_sat = parser.getU8(); + use_qzss_sat = parser.getU8(); + reserved = parser.getArrayofU8(5); + use_tropo_grid_points = parser.getU8(); + use_iono_grid_points = parser.getU8(); + use_iono_tile_sat_los = parser.getU8(); + use_iono_grid_point_sat_los = parser.getU8(); + } + + @Override + protected void build(Builder builder) { + obs_time.build(builder); + corr_time.build(builder); + builder.putU8(ssr_sol_id); + builder.putU16(tile_set_id); + builder.putU16(tile_id); + builder.putU8(chain_id); + builder.putU8(use_gps_sat); + builder.putU8(use_gal_sat); + builder.putU8(use_bds_sat); + builder.putU8(use_qzss_sat); + builder.putArrayofU8(reserved, 5); + builder.putU8(use_tropo_grid_points); + builder.putU8(use_iono_grid_points); + builder.putU8(use_iono_tile_sat_los); + builder.putU8(use_iono_grid_point_sat_los); + } + + @Override + public JSONObject toJSON() { + JSONObject obj = super.toJSON(); + obj.put("obs_time", obs_time.toJSON()); + obj.put("corr_time", corr_time.toJSON()); + obj.put("ssr_sol_id", ssr_sol_id); + obj.put("tile_set_id", tile_set_id); + obj.put("tile_id", tile_id); + obj.put("chain_id", chain_id); + obj.put("use_gps_sat", use_gps_sat); + obj.put("use_gal_sat", use_gal_sat); + obj.put("use_bds_sat", use_bds_sat); + obj.put("use_qzss_sat", use_qzss_sat); + obj.put("reserved", new JSONArray(reserved)); + obj.put("use_tropo_grid_points", use_tropo_grid_points); + obj.put("use_iono_grid_points", use_iono_grid_points); + obj.put("use_iono_tile_sat_los", use_iono_tile_sat_los); + obj.put("use_iono_grid_point_sat_los", use_iono_grid_point_sat_los); + return obj; + } + + @Override + public String getFriendlyName() { + return "SSR FLAG HIGH LEVEL DEP A"; + } +} diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPointSatLos.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPointSatLos.java index bba530b819..db3f494057 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPointSatLos.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPointSatLos.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,47 +9,47 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrFlagIonoGridPointSatLos extends SBPMessage { public static final int TYPE = 0x0BD1; + /** Header of an integrity message. */ public IntegritySSRHeader header; - + /** Index of the grid point. */ public int grid_point_id; - + /** Number of faulty LOS. */ public int n_faulty_los; - + /** List of faulty LOS */ public SvId[] faulty_los; + - public MsgSsrFlagIonoGridPointSatLos(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagIonoGridPointSatLos() { - super(TYPE); - } - - public MsgSsrFlagIonoGridPointSatLos(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagIonoGridPointSatLos (int sender) { super(sender, TYPE); } + public MsgSsrFlagIonoGridPointSatLos () { super(TYPE); } + public MsgSsrFlagIonoGridPointSatLos (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagIonoGridPointSatLos, expected 3025, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagIonoGridPointSatLos, expected 3025, actual " + msg.type); } @Override @@ -57,7 +58,7 @@ protected void parse(Parser parser) throws SBPBinaryException { header = new IntegritySSRHeader().parse(parser); grid_point_id = parser.getU16(); n_faulty_los = parser.getU8(); - faulty_los = parser.getArray(SvId.class); + faulty_los = parser.getArray(SvId.class); } @Override @@ -65,7 +66,7 @@ protected void build(Builder builder) { header.build(builder); builder.putU16(grid_point_id); builder.putU8(n_faulty_los); - builder.putArray(faulty_los); + builder.putArray(faulty_los); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPoints.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPoints.java index e95186f7fc..2b13343cc9 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPoints.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoGridPoints.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,44 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrFlagIonoGridPoints extends SBPMessage { public static final int TYPE = 0x0BC7; + /** Header of an integrity message. */ public IntegritySSRHeader header; - + /** Number of faulty grid points. */ public int n_faulty_points; - + /** List of faulty grid points. */ public int[] faulty_points; + - public MsgSsrFlagIonoGridPoints(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagIonoGridPoints() { - super(TYPE); - } - - public MsgSsrFlagIonoGridPoints(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagIonoGridPoints (int sender) { super(sender, TYPE); } + public MsgSsrFlagIonoGridPoints () { super(TYPE); } + public MsgSsrFlagIonoGridPoints (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagIonoGridPoints, expected 3015, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagIonoGridPoints, expected 3015, actual " + msg.type); } @Override @@ -53,14 +54,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new IntegritySSRHeader().parse(parser); n_faulty_points = parser.getU8(); - faulty_points = parser.getArrayofU16(); + faulty_points = parser.getArrayofU16(); } @Override protected void build(Builder builder) { header.build(builder); builder.putU8(n_faulty_points); - builder.putArrayofU16(faulty_points); + builder.putArrayofU16(faulty_points); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoTileSatLos.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoTileSatLos.java index 010af56693..8d3861d744 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoTileSatLos.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagIonoTileSatLos.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,44 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrFlagIonoTileSatLos extends SBPMessage { public static final int TYPE = 0x0BCD; + /** Header of an integrity message. */ public IntegritySSRHeader header; - + /** Number of faulty LOS. */ public int n_faulty_los; - + /** List of faulty LOS */ public SvId[] faulty_los; + - public MsgSsrFlagIonoTileSatLos(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagIonoTileSatLos() { - super(TYPE); - } - - public MsgSsrFlagIonoTileSatLos(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagIonoTileSatLos (int sender) { super(sender, TYPE); } + public MsgSsrFlagIonoTileSatLos () { super(TYPE); } + public MsgSsrFlagIonoTileSatLos (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagIonoTileSatLos, expected 3021, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagIonoTileSatLos, expected 3021, actual " + msg.type); } @Override @@ -53,14 +54,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new IntegritySSRHeader().parse(parser); n_faulty_los = parser.getU8(); - faulty_los = parser.getArray(SvId.class); + faulty_los = parser.getArray(SvId.class); } @Override protected void build(Builder builder) { header.build(builder); builder.putU8(n_faulty_los); - builder.putArray(faulty_los); + builder.putArray(faulty_los); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagSatellites.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagSatellites.java index a575692b48..c043a33114 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagSatellites.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagSatellites.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,58 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrFlagSatellites extends SBPMessage { public static final int TYPE = 0x0BBD; + /** GNSS reference time of the observation used to generate the flag. */ public GPSTimeSec obs_time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - + /** SSR Solution ID. */ public int ssr_sol_id; - + /** Chain and type of flag. */ public int chain_id; - + /** Constellation ID. */ public int const_id; - + /** Number of faulty satellites. */ public int n_faulty_sats; - + /** List of faulty satellites. */ public int[] faulty_sats; + - public MsgSsrFlagSatellites(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagSatellites() { - super(TYPE); - } - - public MsgSsrFlagSatellites(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagSatellites (int sender) { super(sender, TYPE); } + public MsgSsrFlagSatellites () { super(TYPE); } + public MsgSsrFlagSatellites (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagSatellites, expected 3005, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagSatellites, expected 3005, actual " + msg.type); } @Override @@ -72,7 +74,7 @@ protected void parse(Parser parser) throws SBPBinaryException { chain_id = parser.getU8(); const_id = parser.getU8(); n_faulty_sats = parser.getU8(); - faulty_sats = parser.getArrayofU8(); + faulty_sats = parser.getArrayofU8(); } @Override @@ -84,7 +86,7 @@ protected void build(Builder builder) { builder.putU8(chain_id); builder.putU8(const_id); builder.putU8(n_faulty_sats); - builder.putArrayofU8(faulty_sats); + builder.putArrayofU8(faulty_sats); } @Override diff --git a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagTropoGridPoints.java b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagTropoGridPoints.java index 31b8ae1e75..b860f2ab0e 100644 --- a/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagTropoGridPoints.java +++ b/java/src/com/swiftnav/sbp/integrity/MsgSsrFlagTropoGridPoints.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,44 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.integrity; // This file was auto-generated from yaml/swiftnav/sbp/integrity.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrFlagTropoGridPoints extends SBPMessage { public static final int TYPE = 0x0BC3; + /** Header of an integrity message. */ public IntegritySSRHeader header; - + /** Number of faulty grid points. */ public int n_faulty_points; - + /** List of faulty grid points. */ public int[] faulty_points; + - public MsgSsrFlagTropoGridPoints(int sender) { - super(sender, TYPE); - } - - public MsgSsrFlagTropoGridPoints() { - super(TYPE); - } - - public MsgSsrFlagTropoGridPoints(SBPMessage msg) throws SBPBinaryException { + public MsgSsrFlagTropoGridPoints (int sender) { super(sender, TYPE); } + public MsgSsrFlagTropoGridPoints () { super(TYPE); } + public MsgSsrFlagTropoGridPoints (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrFlagTropoGridPoints, expected 3011, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrFlagTropoGridPoints, expected 3011, actual " + msg.type); } @Override @@ -53,14 +54,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new IntegritySSRHeader().parse(parser); n_faulty_points = parser.getU8(); - faulty_points = parser.getArrayofU16(); + faulty_points = parser.getArrayofU16(); } @Override protected void build(Builder builder) { header.build(builder); builder.putU8(n_faulty_points); - builder.putArrayofU16(faulty_points); + builder.putArrayofU16(faulty_points); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuState.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuState.java index 98960b2962..8c1a18198e 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuState.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LINUX_CPU_STATE (0x7F08). +/** SBP class for message MSG_LINUX_CPU_STATE (0x7F08). * - *

You can have MSG_LINUX_CPU_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_LINUX_CPU_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message indicates the process state of the top 10 heaviest consumers of CPU on the - * system, including a timestamp. - */ + * This message indicates the process state of the top 10 heaviest consumers + * of CPU on the system, including a timestamp. */ + public class MsgLinuxCpuState extends SBPMessage { public static final int TYPE = 0x7F08; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process */ public int pid; - + /** percent of CPU used, expressed as a fraction of 256 */ public int pcpu; - + /** timestamp of message, refer to flags field for how to interpret */ public long time; - + /** flags */ public int flags; - + /** fixed length string representing the thread name */ public String tname; - + /** the command line (as much as it fits in the remaining packet) */ public String cmdline; + - public MsgLinuxCpuState(int sender) { - super(sender, TYPE); - } - - public MsgLinuxCpuState() { - super(TYPE); - } - - public MsgLinuxCpuState(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxCpuState (int sender) { super(sender, TYPE); } + public MsgLinuxCpuState () { super(TYPE); } + public MsgLinuxCpuState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxCpuState, expected 32520, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxCpuState, expected 32520, actual " + msg.type); } @Override @@ -75,7 +77,7 @@ protected void parse(Parser parser) throws SBPBinaryException { time = parser.getU32(); flags = parser.getU8(); tname = parser.getString(15); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -86,7 +88,7 @@ protected void build(Builder builder) { builder.putU32(time); builder.putU8(flags); builder.putString(tname, 15); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuStateDepA.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuStateDepA.java index c68680dbf7..b144cd7d46 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuStateDepA.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxCpuStateDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_CPU_STATE_DEP_A (0x7F00). + +/** SBP class for message MSG_LINUX_CPU_STATE_DEP_A (0x7F00). * - *

You can have MSG_LINUX_CPU_STATE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_CPU_STATE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgLinuxCpuStateDepA extends SBPMessage { public static final int TYPE = 0x7F00; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process */ public int pid; - + /** percent of cpu used, expressed as a fraction of 256 */ public int pcpu; - + /** fixed length string representing the thread name */ public String tname; - + /** the command line (as much as it fits in the remaining packet) */ public String cmdline; + - public MsgLinuxCpuStateDepA(int sender) { - super(sender, TYPE); - } - - public MsgLinuxCpuStateDepA() { - super(TYPE); - } - - public MsgLinuxCpuStateDepA(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxCpuStateDepA (int sender) { super(sender, TYPE); } + public MsgLinuxCpuStateDepA () { super(TYPE); } + public MsgLinuxCpuStateDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxCpuStateDepA, expected 32512, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxCpuStateDepA, expected 32512, actual " + msg.type); } @Override @@ -66,7 +68,7 @@ protected void parse(Parser parser) throws SBPBinaryException { pid = parser.getU16(); pcpu = parser.getU8(); tname = parser.getString(15); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -75,7 +77,7 @@ protected void build(Builder builder) { builder.putU16(pid); builder.putU8(pcpu); builder.putString(tname, 15); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxMemState.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxMemState.java index 2057483ad4..eb74e279e5 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxMemState.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxMemState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LINUX_MEM_STATE (0x7F09). +/** SBP class for message MSG_LINUX_MEM_STATE (0x7F09). * - *

You can have MSG_LINUX_MEM_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_LINUX_MEM_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message indicates the process state of the top 10 heaviest consumers of memory on the - * system, including a timestamp. - */ + * This message indicates the process state of the top 10 heaviest consumers + * of memory on the system, including a timestamp. */ + public class MsgLinuxMemState extends SBPMessage { public static final int TYPE = 0x7F09; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process */ public int pid; - + /** percent of memory used, expressed as a fraction of 256 */ public int pmem; - + /** timestamp of message, refer to flags field for how to interpret */ public long time; - + /** flags */ public int flags; - + /** fixed length string representing the thread name */ public String tname; - + /** the command line (as much as it fits in the remaining packet) */ public String cmdline; + - public MsgLinuxMemState(int sender) { - super(sender, TYPE); - } - - public MsgLinuxMemState() { - super(TYPE); - } - - public MsgLinuxMemState(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxMemState (int sender) { super(sender, TYPE); } + public MsgLinuxMemState () { super(TYPE); } + public MsgLinuxMemState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxMemState, expected 32521, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxMemState, expected 32521, actual " + msg.type); } @Override @@ -75,7 +77,7 @@ protected void parse(Parser parser) throws SBPBinaryException { time = parser.getU32(); flags = parser.getU8(); tname = parser.getString(15); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -86,7 +88,7 @@ protected void build(Builder builder) { builder.putU32(time); builder.putU8(flags); builder.putString(tname, 15); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxMemStateDepA.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxMemStateDepA.java index ffba226e24..e81afea05c 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxMemStateDepA.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxMemStateDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_MEM_STATE_DEP_A (0x7F01). + +/** SBP class for message MSG_LINUX_MEM_STATE_DEP_A (0x7F01). * - *

You can have MSG_LINUX_MEM_STATE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_MEM_STATE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgLinuxMemStateDepA extends SBPMessage { public static final int TYPE = 0x7F01; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process */ public int pid; - + /** percent of memory used, expressed as a fraction of 256 */ public int pmem; - + /** fixed length string representing the thread name */ public String tname; - + /** the command line (as much as it fits in the remaining packet) */ public String cmdline; + - public MsgLinuxMemStateDepA(int sender) { - super(sender, TYPE); - } - - public MsgLinuxMemStateDepA() { - super(TYPE); - } - - public MsgLinuxMemStateDepA(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxMemStateDepA (int sender) { super(sender, TYPE); } + public MsgLinuxMemStateDepA () { super(TYPE); } + public MsgLinuxMemStateDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxMemStateDepA, expected 32513, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxMemStateDepA, expected 32513, actual " + msg.type); } @Override @@ -66,7 +68,7 @@ protected void parse(Parser parser) throws SBPBinaryException { pid = parser.getU16(); pmem = parser.getU8(); tname = parser.getString(15); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -75,7 +77,7 @@ protected void build(Builder builder) { builder.putU16(pid); builder.putU8(pmem); builder.putString(tname, 15); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdCount.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdCount.java index 1757d4694f..3a5ef7f66f 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdCount.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdCount.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_PROCESS_FD_COUNT (0x7F06). + +/** SBP class for message MSG_LINUX_PROCESS_FD_COUNT (0x7F06). * - *

You can have MSG_LINUX_PROCESS_FD_COUNT inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_PROCESS_FD_COUNT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Top 10 list of processes with a large number of open file descriptors. - */ + * Top 10 list of processes with a large number of open file descriptors. */ + public class MsgLinuxProcessFdCount extends SBPMessage { public static final int TYPE = 0x7F06; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process in question */ public int pid; - + /** a count of the number of file descriptors opened by the process */ public int fd_count; - + /** the command line of the process in question */ public String cmdline; + - public MsgLinuxProcessFdCount(int sender) { - super(sender, TYPE); - } - - public MsgLinuxProcessFdCount() { - super(TYPE); - } - - public MsgLinuxProcessFdCount(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxProcessFdCount (int sender) { super(sender, TYPE); } + public MsgLinuxProcessFdCount () { super(TYPE); } + public MsgLinuxProcessFdCount (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxProcessFdCount, expected 32518, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxProcessFdCount, expected 32518, actual " + msg.type); } @Override @@ -62,7 +64,7 @@ protected void parse(Parser parser) throws SBPBinaryException { index = parser.getU8(); pid = parser.getU16(); fd_count = parser.getU16(); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -70,7 +72,7 @@ protected void build(Builder builder) { builder.putU8(index); builder.putU16(pid); builder.putU16(fd_count); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdSummary.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdSummary.java index bb68bbc730..2e3c0841ed 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdSummary.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessFdSummary.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LINUX_PROCESS_FD_SUMMARY (0x7F07). +/** SBP class for message MSG_LINUX_PROCESS_FD_SUMMARY (0x7F07). * - *

You can have MSG_LINUX_PROCESS_FD_SUMMARY inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_PROCESS_FD_SUMMARY inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Summary of open file descriptors on the system. - */ + * Summary of open file descriptors on the system. */ + public class MsgLinuxProcessFdSummary extends SBPMessage { public static final int TYPE = 0x7F07; + /** count of total FDs open on the system */ public long sys_fd_count; - - /** - * A null delimited list of strings which alternates between a string representation of the - * process count and the file name whose count it being reported. That is, in C string syntax - * "32\0/var/log/syslog\012\0/tmp/foo\0" with the end of the list being 2 NULL terminators in a - * row. - */ + + /** A null delimited list of strings which alternates between a string + * representation of the process count and the file name whose count it + * being reported. That is, in C string syntax + * "32\0/var/log/syslog\012\0/tmp/foo\0" with the end of the list being 2 + * NULL terminators in a row. */ public String most_opened; + - public MsgLinuxProcessFdSummary(int sender) { - super(sender, TYPE); - } - - public MsgLinuxProcessFdSummary() { - super(TYPE); - } - - public MsgLinuxProcessFdSummary(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxProcessFdSummary (int sender) { super(sender, TYPE); } + public MsgLinuxProcessFdSummary () { super(TYPE); } + public MsgLinuxProcessFdSummary (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxProcessFdSummary, expected 32519, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxProcessFdSummary, expected 32519, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sys_fd_count = parser.getU32(); - most_opened = parser.getString(); + most_opened = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(sys_fd_count); - builder.putString(most_opened); + builder.putString(most_opened); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketCounts.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketCounts.java index ad35e99cc7..7854cd38dd 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketCounts.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketCounts.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,66 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_PROCESS_SOCKET_COUNTS (0x7F03). + +/** SBP class for message MSG_LINUX_PROCESS_SOCKET_COUNTS (0x7F03). * - *

You can have MSG_LINUX_PROCESS_SOCKET_COUNTS inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_PROCESS_SOCKET_COUNTS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Top 10 list of processes with high socket counts. - */ + * Top 10 list of processes with high socket counts. */ + public class MsgLinuxProcessSocketCounts extends SBPMessage { public static final int TYPE = 0x7F03; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process in question */ public int pid; - + /** the number of sockets the process is using */ public int socket_count; - - /** - * A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 (unix stream), 0x8 - * (unix dgram), 0x10 (netlink), and 0x8000 (unknown) - */ + + /** A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 + * (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000 (unknown) */ public int socket_types; - - /** - * A bitfield indicating the socket states: 0x1 (established), 0x2 (syn- sent), 0x4 (syn-recv), - * 0x8 (fin-wait-1), 0x10 (fin-wait-2), 0x20 (time-wait), 0x40 (closed), 0x80 (close-wait), - * 0x100 (last-ack), 0x200 (listen), 0x400 (closing), 0x800 (unconnected), and 0x8000 (unknown) - */ + + /** A bitfield indicating the socket states: 0x1 (established), 0x2 (syn- + * sent), 0x4 (syn-recv), 0x8 (fin-wait-1), 0x10 (fin-wait-2), 0x20 + * (time-wait), 0x40 (closed), 0x80 (close-wait), 0x100 (last-ack), 0x200 + * (listen), 0x400 (closing), 0x800 (unconnected), and 0x8000 (unknown) */ public int socket_states; - + /** the command line of the process in question */ public String cmdline; + - public MsgLinuxProcessSocketCounts(int sender) { - super(sender, TYPE); - } - - public MsgLinuxProcessSocketCounts() { - super(TYPE); - } - - public MsgLinuxProcessSocketCounts(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxProcessSocketCounts (int sender) { super(sender, TYPE); } + public MsgLinuxProcessSocketCounts () { super(TYPE); } + public MsgLinuxProcessSocketCounts (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxProcessSocketCounts, expected 32515, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxProcessSocketCounts, expected 32515, actual " + msg.type); } @Override @@ -78,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { socket_count = parser.getU16(); socket_types = parser.getU16(); socket_states = parser.getU16(); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -88,7 +86,7 @@ protected void build(Builder builder) { builder.putU16(socket_count); builder.putU16(socket_types); builder.putU16(socket_states); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketQueues.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketQueues.java index 29a4d35274..fc57983d03 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketQueues.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxProcessSocketQueues.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,75 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LINUX_PROCESS_SOCKET_QUEUES (0x7F04). +/** SBP class for message MSG_LINUX_PROCESS_SOCKET_QUEUES (0x7F04). * - *

You can have MSG_LINUX_PROCESS_SOCKET_QUEUES inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_PROCESS_SOCKET_QUEUES inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Top 10 list of sockets with deep queues. - */ + * Top 10 list of sockets with deep queues. */ + public class MsgLinuxProcessSocketQueues extends SBPMessage { public static final int TYPE = 0x7F04; + /** sequence of this status message, values from 0-9 */ public int index; - + /** the PID of the process in question */ public int pid; - + /** the total amount of receive data queued for this process */ public int recv_queued; - + /** the total amount of send data queued for this process */ public int send_queued; - - /** - * A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 (unix stream), 0x8 - * (unix dgram), 0x10 (netlink), and 0x8000 (unknown) - */ + + /** A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 + * (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000 (unknown) */ public int socket_types; - - /** - * A bitfield indicating the socket states: 0x1 (established), 0x2 (syn- sent), 0x4 (syn-recv), - * 0x8 (fin-wait-1), 0x10 (fin-wait-2), 0x20 (time-wait), 0x40 (closed), 0x80 (close-wait), - * 0x100 (last-ack), 0x200 (listen), 0x400 (closing), 0x800 (unconnected), and 0x8000 (unknown) - */ + + /** A bitfield indicating the socket states: 0x1 (established), 0x2 (syn- + * sent), 0x4 (syn-recv), 0x8 (fin-wait-1), 0x10 (fin-wait-2), 0x20 + * (time-wait), 0x40 (closed), 0x80 (close-wait), 0x100 (last-ack), 0x200 + * (listen), 0x400 (closing), 0x800 (unconnected), and 0x8000 (unknown) */ public int socket_states; - - /** - * Address of the largest queue, remote or local depending on the directionality of the - * connection. - */ + + /** Address of the largest queue, remote or local depending on the + * directionality of the connection. */ public String address_of_largest; - + /** the command line of the process in question */ public String cmdline; + - public MsgLinuxProcessSocketQueues(int sender) { - super(sender, TYPE); - } - - public MsgLinuxProcessSocketQueues() { - super(TYPE); - } - - public MsgLinuxProcessSocketQueues(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxProcessSocketQueues (int sender) { super(sender, TYPE); } + public MsgLinuxProcessSocketQueues () { super(TYPE); } + public MsgLinuxProcessSocketQueues (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxProcessSocketQueues, expected 32516, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxProcessSocketQueues, expected 32516, actual " + msg.type); } @Override @@ -89,7 +85,7 @@ protected void parse(Parser parser) throws SBPBinaryException { socket_types = parser.getU16(); socket_states = parser.getU16(); address_of_largest = parser.getString(64); - cmdline = parser.getString(); + cmdline = parser.getString(); } @Override @@ -101,7 +97,7 @@ protected void build(Builder builder) { builder.putU16(socket_types); builder.putU16(socket_states); builder.putString(address_of_largest, 64); - builder.putString(cmdline); + builder.putString(cmdline); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxSocketUsage.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxSocketUsage.java index d6cd9288cd..77042ba37a 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxSocketUsage.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxSocketUsage.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_SOCKET_USAGE (0x7F05). + +/** SBP class for message MSG_LINUX_SOCKET_USAGE (0x7F05). * - *

You can have MSG_LINUX_SOCKET_USAGE inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_LINUX_SOCKET_USAGE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Summaries the socket usage across the system. - */ + * Summaries the socket usage across the system. */ + public class MsgLinuxSocketUsage extends SBPMessage { public static final int TYPE = 0x7F05; + /** average socket queue depths across all sockets on the system */ public long avg_queue_depth; - + /** the max queue depth seen within the reporting period */ public long max_queue_depth; - - /** - * A count for each socket type reported in the `socket_types_reported` field, the first entry - * corresponds to the first enabled bit in `types_reported`. - */ + + /** A count for each socket type reported in the `socket_types_reported` + * field, the first entry corresponds to the first enabled bit in + * `types_reported`. */ public int[] socket_state_counts; - - /** - * A count for each socket type reported in the `socket_types_reported` field, the first entry - * corresponds to the first enabled bit in `types_reported`. - */ + + /** A count for each socket type reported in the `socket_types_reported` + * field, the first entry corresponds to the first enabled bit in + * `types_reported`. */ public int[] socket_type_counts; + - public MsgLinuxSocketUsage(int sender) { - super(sender, TYPE); - } - - public MsgLinuxSocketUsage() { - super(TYPE); - } - - public MsgLinuxSocketUsage(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxSocketUsage (int sender) { super(sender, TYPE); } + public MsgLinuxSocketUsage () { super(TYPE); } + public MsgLinuxSocketUsage (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxSocketUsage, expected 32517, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxSocketUsage, expected 32517, actual " + msg.type); } @Override @@ -69,7 +68,7 @@ protected void parse(Parser parser) throws SBPBinaryException { avg_queue_depth = parser.getU32(); max_queue_depth = parser.getU32(); socket_state_counts = parser.getArrayofU16(16); - socket_type_counts = parser.getArrayofU16(16); + socket_type_counts = parser.getArrayofU16(16); } @Override @@ -77,7 +76,7 @@ protected void build(Builder builder) { builder.putU32(avg_queue_depth); builder.putU32(max_queue_depth); builder.putArrayofU16(socket_state_counts, 16); - builder.putArrayofU16(socket_type_counts, 16); + builder.putArrayofU16(socket_type_counts, 16); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxSysState.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxSysState.java index 369b7ba588..d40ea8bdb0 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxSysState.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxSysState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,64 +9,66 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LINUX_SYS_STATE (0x7F0A). +/** SBP class for message MSG_LINUX_SYS_STATE (0x7F0A). * - *

You can have MSG_LINUX_SYS_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_LINUX_SYS_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This presents a summary of CPU and memory utilization, including a timestamp. - */ + * This presents a summary of CPU and memory utilization, including a + * timestamp. */ + public class MsgLinuxSysState extends SBPMessage { public static final int TYPE = 0x7F0A; + /** total system memory, in MiB */ public int mem_total; - + /** percent of CPU used, expressed as a fraction of 256 */ public int pcpu; - + /** percent of memory used, expressed as a fraction of 256 */ public int pmem; - + /** number of processes that started during collection phase */ public int procs_starting; - + /** number of processes that stopped during collection phase */ public int procs_stopping; - + /** the count of processes on the system */ public int pid_count; - + /** timestamp of message, refer to flags field for how to interpret */ public long time; - + /** flags */ public int flags; + - public MsgLinuxSysState(int sender) { - super(sender, TYPE); - } - - public MsgLinuxSysState() { - super(TYPE); - } - - public MsgLinuxSysState(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxSysState (int sender) { super(sender, TYPE); } + public MsgLinuxSysState () { super(TYPE); } + public MsgLinuxSysState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxSysState, expected 32522, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxSysState, expected 32522, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { procs_stopping = parser.getU16(); pid_count = parser.getU16(); time = parser.getU32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -90,7 +93,7 @@ protected void build(Builder builder) { builder.putU16(procs_stopping); builder.putU16(pid_count); builder.putU32(time); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/linux/MsgLinuxSysStateDepA.java b/java/src/com/swiftnav/sbp/linux/MsgLinuxSysStateDepA.java index 82b1718c02..50843569e6 100644 --- a/java/src/com/swiftnav/sbp/linux/MsgLinuxSysStateDepA.java +++ b/java/src/com/swiftnav/sbp/linux/MsgLinuxSysStateDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,58 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.linux; // This file was auto-generated from yaml/swiftnav/sbp/linux.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_LINUX_SYS_STATE_DEP_A (0x7F02). + +/** SBP class for message MSG_LINUX_SYS_STATE_DEP_A (0x7F02). * - *

You can have MSG_LINUX_SYS_STATE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_LINUX_SYS_STATE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgLinuxSysStateDepA extends SBPMessage { public static final int TYPE = 0x7F02; + /** total system memory */ public int mem_total; - + /** percent of total cpu currently utilized */ public int pcpu; - + /** percent of total memory currently utilized */ public int pmem; - + /** number of processes that started during collection phase */ public int procs_starting; - + /** number of processes that stopped during collection phase */ public int procs_stopping; - + /** the count of processes on the system */ public int pid_count; + - public MsgLinuxSysStateDepA(int sender) { - super(sender, TYPE); - } - - public MsgLinuxSysStateDepA() { - super(TYPE); - } - - public MsgLinuxSysStateDepA(SBPMessage msg) throws SBPBinaryException { + public MsgLinuxSysStateDepA (int sender) { super(sender, TYPE); } + public MsgLinuxSysStateDepA () { super(TYPE); } + public MsgLinuxSysStateDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLinuxSysStateDepA, expected 32514, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLinuxSysStateDepA, expected 32514, actual " + msg.type); } @Override @@ -70,7 +72,7 @@ protected void parse(Parser parser) throws SBPBinaryException { pmem = parser.getU8(); procs_starting = parser.getU16(); procs_stopping = parser.getU16(); - pid_count = parser.getU16(); + pid_count = parser.getU16(); } @Override @@ -80,7 +82,7 @@ protected void build(Builder builder) { builder.putU8(pmem); builder.putU16(procs_starting); builder.putU16(procs_stopping); - builder.putU16(pid_count); + builder.putU16(pid_count); } @Override diff --git a/java/src/com/swiftnav/sbp/logging/MsgFwd.java b/java/src/com/swiftnav/sbp/logging/MsgFwd.java index a6038e7383..90cef2db84 100644 --- a/java/src/com/swiftnav/sbp/logging/MsgFwd.java +++ b/java/src/com/swiftnav/sbp/logging/MsgFwd.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.logging; // This file was auto-generated from yaml/swiftnav/sbp/logging.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_FWD (0x0402). + +/** SBP class for message MSG_FWD (0x0402). * - *

You can have MSG_FWD inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_FWD inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message provides the ability to forward messages over SBP. This may take the form of - * wrapping up SBP messages received by Piksi for logging purposes or wrapping another protocol with - * SBP. + * This message provides the ability to forward messages over SBP. This may + * take the form of wrapping up SBP messages received by Piksi for logging + * purposes or wrapping another protocol with SBP. * - *

The source identifier indicates from what interface a forwarded stream derived. The protocol - * identifier identifies what the expected protocol the forwarded msg contains. Protocol 0 - * represents SBP and the remaining values are implementation defined. - */ + * The source identifier indicates from what interface a forwarded stream + * derived. The protocol identifier identifies what the expected protocol the + * forwarded msg contains. Protocol 0 represents SBP and the remaining values + * are implementation defined. */ + public class MsgFwd extends SBPMessage { public static final int TYPE = 0x0402; + /** source identifier */ public int source; - + /** protocol identifier */ public int protocol; - + /** variable length wrapped binary message */ public int[] fwd_payload; + - public MsgFwd(int sender) { - super(sender, TYPE); - } - - public MsgFwd() { - super(TYPE); - } - - public MsgFwd(SBPMessage msg) throws SBPBinaryException { + public MsgFwd (int sender) { super(sender, TYPE); } + public MsgFwd () { super(TYPE); } + public MsgFwd (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFwd, expected 1026, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFwd, expected 1026, actual " + msg.type); } @Override @@ -65,14 +67,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ source = parser.getU8(); protocol = parser.getU8(); - fwd_payload = parser.getArrayofU8(); + fwd_payload = parser.getArrayofU8(); } @Override protected void build(Builder builder) { builder.putU8(source); builder.putU8(protocol); - builder.putArrayofU8(fwd_payload); + builder.putArrayofU8(fwd_payload); } @Override diff --git a/java/src/com/swiftnav/sbp/logging/MsgLog.java b/java/src/com/swiftnav/sbp/logging/MsgLog.java index c074fa11fe..eae060b8da 100644 --- a/java/src/com/swiftnav/sbp/logging/MsgLog.java +++ b/java/src/com/swiftnav/sbp/logging/MsgLog.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.logging; // This file was auto-generated from yaml/swiftnav/sbp/logging.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_LOG (0x0401). +/** SBP class for message MSG_LOG (0x0401). * - *

You can have MSG_LOG inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_LOG inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message contains a human-readable payload string from the device containing errors, - * warnings and informational messages at ERROR, WARNING, DEBUG, INFO logging levels. - */ + * This message contains a human-readable payload string from the device + * containing errors, warnings and informational messages at ERROR, WARNING, + * DEBUG, INFO logging levels. */ + public class MsgLog extends SBPMessage { public static final int TYPE = 0x0401; + /** Logging level */ public int level; - + /** Human-readable string */ public String text; + - public MsgLog(int sender) { - super(sender, TYPE); - } - - public MsgLog() { - super(TYPE); - } - - public MsgLog(SBPMessage msg) throws SBPBinaryException { + public MsgLog (int sender) { super(sender, TYPE); } + public MsgLog () { super(TYPE); } + public MsgLog (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgLog, expected 1025, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgLog, expected 1025, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ level = parser.getU8(); - text = parser.getString(); + text = parser.getString(); } @Override protected void build(Builder builder) { builder.putU8(level); - builder.putString(text); + builder.putString(text); } @Override diff --git a/java/src/com/swiftnav/sbp/logging/MsgPrintDep.java b/java/src/com/swiftnav/sbp/logging/MsgPrintDep.java index 2fbda0594c..e08f917c15 100644 --- a/java/src/com/swiftnav/sbp/logging/MsgPrintDep.java +++ b/java/src/com/swiftnav/sbp/logging/MsgPrintDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.logging; // This file was auto-generated from yaml/swiftnav/sbp/logging.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_PRINT_DEP (0x0010). +/** SBP class for message MSG_PRINT_DEP (0x0010). * - *

You can have MSG_PRINT_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_PRINT_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgPrintDep extends SBPMessage { public static final int TYPE = 0x0010; + /** Human-readable string */ public String text; + - public MsgPrintDep(int sender) { - super(sender, TYPE); - } - - public MsgPrintDep() { - super(TYPE); - } - - public MsgPrintDep(SBPMessage msg) throws SBPBinaryException { + public MsgPrintDep (int sender) { super(sender, TYPE); } + public MsgPrintDep () { super(TYPE); } + public MsgPrintDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPrintDep, expected 16, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPrintDep, expected 16, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - text = parser.getString(); + text = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(text); + builder.putString(text); } @Override diff --git a/java/src/com/swiftnav/sbp/mag/MsgMagRaw.java b/java/src/com/swiftnav/sbp/mag/MsgMagRaw.java index d1daafe573..d66a35fb4a 100644 --- a/java/src/com/swiftnav/sbp/mag/MsgMagRaw.java +++ b/java/src/com/swiftnav/sbp/mag/MsgMagRaw.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.mag; // This file was auto-generated from yaml/swiftnav/sbp/mag.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_MAG_RAW (0x0902). + +/** SBP class for message MSG_MAG_RAW (0x0902). * - *

You can have MSG_MAG_RAW inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_MAG_RAW inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Raw data from the magnetometer. - */ + * Raw data from the magnetometer. */ + public class MsgMagRaw extends SBPMessage { public static final int TYPE = 0x0902; - /** - * Milliseconds since start of GPS week. If the high bit is set, the time is unknown or invalid. - */ + + /** Milliseconds since start of GPS week. If the high bit is set, the time + * is unknown or invalid. */ public long tow; - + /** Milliseconds since start of GPS week, fractional part */ public int tow_f; - + /** Magnetic field in the body frame X axis */ public int mag_x; - + /** Magnetic field in the body frame Y axis */ public int mag_y; - + /** Magnetic field in the body frame Z axis */ public int mag_z; + - public MsgMagRaw(int sender) { - super(sender, TYPE); - } - - public MsgMagRaw() { - super(TYPE); - } - - public MsgMagRaw(SBPMessage msg) throws SBPBinaryException { + public MsgMagRaw (int sender) { super(sender, TYPE); } + public MsgMagRaw () { super(TYPE); } + public MsgMagRaw (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgMagRaw, expected 2306, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgMagRaw, expected 2306, actual " + msg.type); } @Override @@ -68,7 +69,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tow_f = parser.getU8(); mag_x = parser.getS16(); mag_y = parser.getS16(); - mag_z = parser.getS16(); + mag_z = parser.getS16(); } @Override @@ -77,7 +78,7 @@ protected void build(Builder builder) { builder.putU8(tow_f); builder.putS16(mag_x); builder.putS16(mag_y); - builder.putS16(mag_z); + builder.putS16(mag_z); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/EstimatedHorizontalErrorEllipse.java b/java/src/com/swiftnav/sbp/navigation/EstimatedHorizontalErrorEllipse.java index 585c2dff84..2a0447b252 100644 --- a/java/src/com/swiftnav/sbp/navigation/EstimatedHorizontalErrorEllipse.java +++ b/java/src/com/swiftnav/sbp/navigation/EstimatedHorizontalErrorEllipse.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,40 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class EstimatedHorizontalErrorEllipse extends SBPStruct { - - /** - * The semi major axis of the estimated horizontal error ellipse at the user- configured - * confidence level; zero implies invalid. - */ + + /** The semi major axis of the estimated horizontal error ellipse at the user- + * configured confidence level; zero implies invalid. */ public float semi_major; - - /** - * The semi minor axis of the estimated horizontal error ellipse at the user- configured - * confidence level; zero implies invalid. - */ + + /** The semi minor axis of the estimated horizontal error ellipse at the user- + * configured confidence level; zero implies invalid. */ public float semi_minor; - - /** - * The orientation of the semi major axis of the estimated horizontal error ellipse with respect - * to North. - */ + + /** The orientation of the semi major axis of the estimated horizontal error + * ellipse with respect to North. */ public float orientation; + - public EstimatedHorizontalErrorEllipse() {} + public EstimatedHorizontalErrorEllipse () {} @Override - public EstimatedHorizontalErrorEllipse parse(SBPMessage.Parser parser) - throws SBPBinaryException { + public EstimatedHorizontalErrorEllipse parse(SBPMessage.Parser parser) throws SBPBinaryException { /* Parse fields from binary */ semi_major = parser.getFloat(); semi_minor = parser.getFloat(); diff --git a/java/src/com/swiftnav/sbp/navigation/MsgAgeCorrections.java b/java/src/com/swiftnav/sbp/navigation/MsgAgeCorrections.java index 88322ce547..dfd209296b 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgAgeCorrections.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgAgeCorrections.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_AGE_CORRECTIONS (0x0210). +/** SBP class for message MSG_AGE_CORRECTIONS (0x0210). * - *

You can have MSG_AGE_CORRECTIONS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_AGE_CORRECTIONS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the Age of the corrections used for the current Differential solution. - */ + * This message reports the Age of the corrections used for the current + * Differential solution. */ + public class MsgAgeCorrections extends SBPMessage { public static final int TYPE = 0x0210; + /** GPS Time of Week */ public long tow; - + /** Age of the corrections (0xFFFF indicates invalid) */ public int age; + - public MsgAgeCorrections(int sender) { - super(sender, TYPE); - } - - public MsgAgeCorrections() { - super(TYPE); - } - - public MsgAgeCorrections(SBPMessage msg) throws SBPBinaryException { + public MsgAgeCorrections (int sender) { super(sender, TYPE); } + public MsgAgeCorrections () { super(TYPE); } + public MsgAgeCorrections (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAgeCorrections, expected 528, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAgeCorrections, expected 528, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ tow = parser.getU32(); - age = parser.getU16(); + age = parser.getU16(); } @Override protected void build(Builder builder) { builder.putU32(tow); - builder.putU16(age); + builder.putU16(age); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEF.java b/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEF.java index e73dce1eb1..c2f4520005 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEF.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEF.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BASELINE_ECEF (0x020B). +/** SBP class for message MSG_BASELINE_ECEF (0x020B). * - *

You can have MSG_BASELINE_ECEF inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_BASELINE_ECEF inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the baseline solution in Earth Centered Earth Fixed (ECEF) coordinates. - * This baseline is the relative vector distance from the base station to the rover receiver. The - * full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * This message reports the baseline solution in Earth Centered Earth Fixed + * (ECEF) coordinates. This baseline is the relative vector distance from the + * base station to the rover receiver. The full GPS time is given by the + * preceding MSG_GPS_TIME with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. - */ + * The values in this message are from GNSS measurements only. */ + public class MsgBaselineECEF extends SBPMessage { public static final int TYPE = 0x020B; + /** GPS Time of Week */ public long tow; - + /** Baseline ECEF X coordinate */ public int x; - + /** Baseline ECEF Y coordinate */ public int y; - + /** Baseline ECEF Z coordinate */ public int z; - + /** Position estimated standard deviation */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineECEF(int sender) { - super(sender, TYPE); - } - - public MsgBaselineECEF() { - super(TYPE); - } - - public MsgBaselineECEF(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineECEF (int sender) { super(sender, TYPE); } + public MsgBaselineECEF () { super(TYPE); } + public MsgBaselineECEF (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineECEF, expected 523, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineECEF, expected 523, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getS32(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -89,7 +92,7 @@ protected void build(Builder builder) { builder.putS32(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEFDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEFDepA.java index 5eff0b851e..f84c4f196a 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEFDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgBaselineECEFDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BASELINE_ECEF_DEP_A (0x0202). +/** SBP class for message MSG_BASELINE_ECEF_DEP_A (0x0202). * - *

You can have MSG_BASELINE_ECEF_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BASELINE_ECEF_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgBaselineECEFDepA extends SBPMessage { public static final int TYPE = 0x0202; + /** GPS Time of Week */ public long tow; - + /** Baseline ECEF X coordinate */ public int x; - + /** Baseline ECEF Y coordinate */ public int y; - + /** Baseline ECEF Z coordinate */ public int z; - + /** Position accuracy estimate */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineECEFDepA(int sender) { - super(sender, TYPE); - } - - public MsgBaselineECEFDepA() { - super(TYPE); - } - - public MsgBaselineECEFDepA(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineECEFDepA (int sender) { super(sender, TYPE); } + public MsgBaselineECEFDepA () { super(TYPE); } + public MsgBaselineECEFDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineECEFDepA, expected 514, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineECEFDepA, expected 514, actual " + msg.type); } @Override @@ -74,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getS32(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -85,7 +87,7 @@ protected void build(Builder builder) { builder.putS32(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgBaselineHeadingDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgBaselineHeadingDepA.java index dfb7aeeceb..caab27d80a 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgBaselineHeadingDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgBaselineHeadingDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_BASELINE_HEADING_DEP_A (0x0207). + +/** SBP class for message MSG_BASELINE_HEADING_DEP_A (0x0207). * - *

You can have MSG_BASELINE_HEADING_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_BASELINE_HEADING_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgBaselineHeadingDepA extends SBPMessage { public static final int TYPE = 0x0207; + /** GPS Time of Week */ public long tow; - + /** Heading */ public long heading; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineHeadingDepA(int sender) { - super(sender, TYPE); - } - - public MsgBaselineHeadingDepA() { - super(TYPE); - } - - public MsgBaselineHeadingDepA(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineHeadingDepA (int sender) { super(sender, TYPE); } + public MsgBaselineHeadingDepA () { super(TYPE); } + public MsgBaselineHeadingDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineHeadingDepA, expected 519, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineHeadingDepA, expected 519, actual " + msg.type); } @Override @@ -62,7 +64,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tow = parser.getU32(); heading = parser.getU32(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -70,7 +72,7 @@ protected void build(Builder builder) { builder.putU32(tow); builder.putU32(heading); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgBaselineNED.java b/java/src/com/swiftnav/sbp/navigation/MsgBaselineNED.java index d081a65c2a..af0b26af6c 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgBaselineNED.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgBaselineNED.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,72 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BASELINE_NED (0x020C). +/** SBP class for message MSG_BASELINE_NED (0x020C). * - *

You can have MSG_BASELINE_NED inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_BASELINE_NED inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the baseline solution in North East Down (NED) coordinates. This baseline - * is the relative vector distance from the base station to the rover receiver, and NED coordinate - * system is defined at the local WGS84 tangent plane centered at the base station position. The - * full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of- week (tow). + * This message reports the baseline solution in North East Down (NED) + * coordinates. This baseline is the relative vector distance from the base + * station to the rover receiver, and NED coordinate system is defined at the + * local WGS84 tangent plane centered at the base station position. The full + * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of- + * week (tow). * - *

The values in this message are from GNSS measurements only. - */ + * The values in this message are from GNSS measurements only. */ + public class MsgBaselineNED extends SBPMessage { public static final int TYPE = 0x020C; + /** GPS Time of Week */ public long tow; - + /** Baseline North coordinate */ public int n; - + /** Baseline East coordinate */ public int e; - + /** Baseline Down coordinate */ public int d; - + /** Horizontal position estimated standard deviation */ public int h_accuracy; - + /** Vertical position estimated standard deviation */ public int v_accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineNED(int sender) { - super(sender, TYPE); - } - - public MsgBaselineNED() { - super(TYPE); - } - - public MsgBaselineNED(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineNED (int sender) { super(sender, TYPE); } + public MsgBaselineNED () { super(TYPE); } + public MsgBaselineNED (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineNED, expected 524, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineNED, expected 524, actual " + msg.type); } @Override @@ -83,7 +87,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -95,7 +99,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgBaselineNEDDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgBaselineNEDDepA.java index 310f90de6f..3ce3779fc6 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgBaselineNEDDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgBaselineNEDDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,64 +9,66 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_BASELINE_NED_DEP_A (0x0203). +/** SBP class for message MSG_BASELINE_NED_DEP_A (0x0203). * - *

You can have MSG_BASELINE_NED_DEP_A inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_BASELINE_NED_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgBaselineNEDDepA extends SBPMessage { public static final int TYPE = 0x0203; + /** GPS Time of Week */ public long tow; - + /** Baseline North coordinate */ public int n; - + /** Baseline East coordinate */ public int e; - + /** Baseline Down coordinate */ public int d; - - /** Horizontal position accuracy estimate (not implemented). Defaults to 0. */ + + /** Horizontal position accuracy estimate (not implemented). Defaults to + * 0. */ public int h_accuracy; - + /** Vertical position accuracy estimate (not implemented). Defaults to 0. */ public int v_accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineNEDDepA(int sender) { - super(sender, TYPE); - } - - public MsgBaselineNEDDepA() { - super(TYPE); - } - - public MsgBaselineNEDDepA(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineNEDDepA (int sender) { super(sender, TYPE); } + public MsgBaselineNEDDepA () { super(TYPE); } + public MsgBaselineNEDDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineNEDDepA, expected 515, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineNEDDepA, expected 515, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -90,7 +93,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgDops.java b/java/src/com/swiftnav/sbp/navigation/MsgDops.java index aa392260c2..372e0336f1 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgDops.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgDops.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,68 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_DOPS (0x0208). +/** SBP class for message MSG_DOPS (0x0208). * - *

You can have MSG_DOPS inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_DOPS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This dilution of precision (DOP) message describes the effect of navigation satellite geometry - * on positional measurement precision. The flags field indicated whether the DOP reported - * corresponds to differential or SPP solution. + * This dilution of precision (DOP) message describes the effect of navigation + * satellite geometry on positional measurement precision. The flags field + * indicated whether the DOP reported corresponds to differential or SPP + * solution. * - *

The values in this message are from GNSS measurements only. - */ + * The values in this message are from GNSS measurements only. */ + public class MsgDops extends SBPMessage { public static final int TYPE = 0x0208; + /** GPS Time of Week */ public long tow; - + /** Geometric Dilution of Precision */ public int gdop; - + /** Position Dilution of Precision */ public int pdop; - + /** Time Dilution of Precision */ public int tdop; - + /** Horizontal Dilution of Precision */ public int hdop; - + /** Vertical Dilution of Precision */ public int vdop; - - /** Indicates the position solution with which the DOPS message corresponds */ + + /** Indicates the position solution with which the DOPS message + * corresponds */ public int flags; + - public MsgDops(int sender) { - super(sender, TYPE); - } - - public MsgDops() { - super(TYPE); - } - - public MsgDops(SBPMessage msg) throws SBPBinaryException { + public MsgDops (int sender) { super(sender, TYPE); } + public MsgDops () { super(TYPE); } + public MsgDops (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgDops, expected 520, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgDops, expected 520, actual " + msg.type); } @Override @@ -78,7 +82,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tdop = parser.getU16(); hdop = parser.getU16(); vdop = parser.getU16(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -89,7 +93,7 @@ protected void build(Builder builder) { builder.putU16(tdop); builder.putU16(hdop); builder.putU16(vdop); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgDopsDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgDopsDepA.java index 3fe3a955fe..6d575e35f5 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgDopsDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgDopsDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,58 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_DOPS_DEP_A (0x0206). + +/** SBP class for message MSG_DOPS_DEP_A (0x0206). * - *

You can have MSG_DOPS_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_DOPS_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgDopsDepA extends SBPMessage { public static final int TYPE = 0x0206; + /** GPS Time of Week */ public long tow; - + /** Geometric Dilution of Precision */ public int gdop; - + /** Position Dilution of Precision */ public int pdop; - + /** Time Dilution of Precision */ public int tdop; - + /** Horizontal Dilution of Precision */ public int hdop; - + /** Vertical Dilution of Precision */ public int vdop; + - public MsgDopsDepA(int sender) { - super(sender, TYPE); - } - - public MsgDopsDepA() { - super(TYPE); - } - - public MsgDopsDepA(SBPMessage msg) throws SBPBinaryException { + public MsgDopsDepA (int sender) { super(sender, TYPE); } + public MsgDopsDepA () { super(TYPE); } + public MsgDopsDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgDopsDepA, expected 518, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgDopsDepA, expected 518, actual " + msg.type); } @Override @@ -70,7 +72,7 @@ protected void parse(Parser parser) throws SBPBinaryException { pdop = parser.getU16(); tdop = parser.getU16(); hdop = parser.getU16(); - vdop = parser.getU16(); + vdop = parser.getU16(); } @Override @@ -80,7 +82,7 @@ protected void build(Builder builder) { builder.putU16(pdop); builder.putU16(tdop); builder.putU16(hdop); - builder.putU16(vdop); + builder.putU16(vdop); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgGPSTime.java b/java/src/com/swiftnav/sbp/navigation/MsgGPSTime.java index e3cb5ec481..8087aa17b0 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgGPSTime.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgGPSTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,68 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GPS_TIME (0x0102). + +/** SBP class for message MSG_GPS_TIME (0x0102). * - *

You can have MSG_GPS_TIME inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GPS_TIME inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the GPS time, representing the time since the GPS epoch began on midnight - * January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the - * Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale. + * This message reports the GPS time, representing the time since the GPS + * epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and + * seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS + * week 0 began at the beginning of the GPS time scale. * - *

Within each week number, the GPS time of the week is between between 0 and 604800 seconds - * (=60*60*24*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small - * offset from UTC. In a message stream, this message precedes a set of other navigation messages - * referenced to the same time (but lacking the ns field) and indicates a more precise time of these - * messages. + * Within each week number, the GPS time of the week is between between 0 and + * 604800 seconds (=60*60*24*7). Note that GPS time does not accumulate leap + * seconds, and as of now, has a small offset from UTC. In a message stream, + * this message precedes a set of other navigation messages referenced to the + * same time (but lacking the ns field) and indicates a more precise time of + * these messages. * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_GPS_TIME_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_GPS_TIME_GNSS. */ + public class MsgGPSTime extends SBPMessage { public static final int TYPE = 0x0102; + /** GPS week number */ public int wn; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - - /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) */ + + /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to + * 500000) */ public int ns_residual; - + /** Status flags (reserved) */ public int flags; + - public MsgGPSTime(int sender) { - super(sender, TYPE); - } - - public MsgGPSTime() { - super(TYPE); - } - - public MsgGPSTime(SBPMessage msg) throws SBPBinaryException { + public MsgGPSTime (int sender) { super(sender, TYPE); } + public MsgGPSTime () { super(TYPE); } + public MsgGPSTime (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGPSTime, expected 258, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGPSTime, expected 258, actual " + msg.type); } @Override @@ -73,7 +79,7 @@ protected void parse(Parser parser) throws SBPBinaryException { wn = parser.getU16(); tow = parser.getU32(); ns_residual = parser.getS32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -81,7 +87,7 @@ protected void build(Builder builder) { builder.putU16(wn); builder.putU32(tow); builder.putS32(ns_residual); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeDepA.java index ae78130b91..ef063f2179 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GPS_TIME_DEP_A (0x0100). + +/** SBP class for message MSG_GPS_TIME_DEP_A (0x0100). * - *

You can have MSG_GPS_TIME_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GPS_TIME_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgGPSTimeDepA extends SBPMessage { public static final int TYPE = 0x0100; + /** GPS week number */ public int wn; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - - /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) */ + + /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to + * 500000) */ public int ns_residual; - + /** Status flags (reserved) */ public int flags; + - public MsgGPSTimeDepA(int sender) { - super(sender, TYPE); - } - - public MsgGPSTimeDepA() { - super(TYPE); - } - - public MsgGPSTimeDepA(SBPMessage msg) throws SBPBinaryException { + public MsgGPSTimeDepA (int sender) { super(sender, TYPE); } + public MsgGPSTimeDepA () { super(TYPE); } + public MsgGPSTimeDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGPSTimeDepA, expected 256, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGPSTimeDepA, expected 256, actual " + msg.type); } @Override @@ -62,7 +65,7 @@ protected void parse(Parser parser) throws SBPBinaryException { wn = parser.getU16(); tow = parser.getU32(); ns_residual = parser.getS32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -70,7 +73,7 @@ protected void build(Builder builder) { builder.putU16(wn); builder.putU32(tow); builder.putS32(ns_residual); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeGnss.java index 556ca01cd6..4240143c61 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgGPSTimeGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GPS_TIME_GNSS (0x0104). + +/** SBP class for message MSG_GPS_TIME_GNSS (0x0104). * - *

You can have MSG_GPS_TIME_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GPS_TIME_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the GPS time, representing the time since the GPS epoch began on midnight - * January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the - * Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale. + * This message reports the GPS time, representing the time since the GPS + * epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and + * seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS + * week 0 began at the beginning of the GPS time scale. * - *

Within each week number, the GPS time of the week is between between 0 and 604800 seconds - * (=60*60*24*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small - * offset from UTC. In a message stream, this message precedes a set of other navigation messages - * referenced to the same time (but lacking the ns field) and indicates a more precise time of these - * messages. + * Within each week number, the GPS time of the week is between between 0 and + * 604800 seconds (=60*60*24*7). Note that GPS time does not accumulate leap + * seconds, and as of now, has a small offset from UTC. In a message stream, + * this message precedes a set of other navigation messages referenced to the + * same time (but lacking the ns field) and indicates a more precise time of + * these messages. * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_GPS_TIME. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_GPS_TIME. */ + public class MsgGPSTimeGnss extends SBPMessage { public static final int TYPE = 0x0104; + /** GPS week number */ public int wn; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - - /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000) */ + + /** Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to + * 500000) */ public int ns_residual; - + /** Status flags (reserved) */ public int flags; + - public MsgGPSTimeGnss(int sender) { - super(sender, TYPE); - } - - public MsgGPSTimeGnss() { - super(TYPE); - } - - public MsgGPSTimeGnss(SBPMessage msg) throws SBPBinaryException { + public MsgGPSTimeGnss (int sender) { super(sender, TYPE); } + public MsgGPSTimeGnss () { super(TYPE); } + public MsgGPSTimeGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGPSTimeGnss, expected 260, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGPSTimeGnss, expected 260, actual " + msg.type); } @Override @@ -73,7 +78,7 @@ protected void parse(Parser parser) throws SBPBinaryException { wn = parser.getU16(); tow = parser.getU32(); ns_residual = parser.getS32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -81,7 +86,7 @@ protected void build(Builder builder) { builder.putU16(wn); builder.putU32(tow); builder.putS32(ns_residual); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosECEF.java b/java/src/com/swiftnav/sbp/navigation/MsgPosECEF.java index 916194b0d7..638e513d43 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosECEF.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosECEF.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,72 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_ECEF (0x0209). +/** SBP class for message MSG_POS_ECEF (0x0209). * - *

You can have MSG_POS_ECEF inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_ECEF inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates - * and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover - * receiver knows the surveyed position of the base station and has an RTK solution, this reports a - * pseudo-absolute position solution using the base station position and the rover's RTK baseline - * vector. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week - * (tow). + * The position solution message reports absolute Earth Centered Earth Fixed + * (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of + * the position solution. If the rover receiver knows the surveyed position of + * the base station and has an RTK solution, this reports a pseudo-absolute + * position solution using the base station position and the rover's RTK + * baseline vector. The full GPS time is given by the preceding MSG_GPS_TIME + * with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_POS_ECEF_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_POS_ECEF_GNSS. */ + public class MsgPosECEF extends SBPMessage { public static final int TYPE = 0x0209; + /** GPS Time of Week */ public long tow; - + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; - + /** Position estimated standard deviation */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosECEF(int sender) { - super(sender, TYPE); - } - - public MsgPosECEF() { - super(TYPE); - } - - public MsgPosECEF(SBPMessage msg) throws SBPBinaryException { + public MsgPosECEF (int sender) { super(sender, TYPE); } + public MsgPosECEF () { super(TYPE); } + public MsgPosECEF (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosECEF, expected 521, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosECEF, expected 521, actual " + msg.type); } @Override @@ -82,7 +86,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getDouble(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -93,7 +97,7 @@ protected void build(Builder builder) { builder.putDouble(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCov.java b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCov.java index 6a74fd6532..d4c0cd42e1 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCov.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCov.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,84 +9,88 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_ECEF_COV (0x0214). +/** SBP class for message MSG_POS_ECEF_COV (0x0214). * - *

You can have MSG_POS_ECEF_COV inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_ECEF_COV inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates - * and the status (single point vs pseudo-absolute RTK) of the position solution. The message also - * reports the upper triangular portion of the 3x3 covariance matrix. If the receiver knows the - * surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute - * position solution using the base station position and the rover's RTK baseline vector. The full - * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * The position solution message reports absolute Earth Centered Earth Fixed + * (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of + * the position solution. The message also reports the upper triangular + * portion of the 3x3 covariance matrix. If the receiver knows the surveyed + * position of the base station and has an RTK solution, this reports a + * pseudo-absolute position solution using the base station position and the + * rover's RTK baseline vector. The full GPS time is given by the preceding + * MSG_GPS_TIME with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_POS_ECEF_COV_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_POS_ECEF_COV_GNSS. */ + public class MsgPosECEFCov extends SBPMessage { public static final int TYPE = 0x0214; + /** GPS Time of Week */ public long tow; - + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; - + /** Estimated variance of x */ public float cov_x_x; - + /** Estimated covariance of x and y */ public float cov_x_y; - + /** Estimated covariance of x and z */ public float cov_x_z; - + /** Estimated variance of y */ public float cov_y_y; - + /** Estimated covariance of y and z */ public float cov_y_z; - + /** Estimated variance of z */ public float cov_z_z; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosECEFCov(int sender) { - super(sender, TYPE); - } - - public MsgPosECEFCov() { - super(TYPE); - } - - public MsgPosECEFCov(SBPMessage msg) throws SBPBinaryException { + public MsgPosECEFCov (int sender) { super(sender, TYPE); } + public MsgPosECEFCov () { super(TYPE); } + public MsgPosECEFCov (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosECEFCov, expected 532, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosECEFCov, expected 532, actual " + msg.type); } @Override @@ -102,7 +107,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_y_z = parser.getFloat(); cov_z_z = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -118,7 +123,7 @@ protected void build(Builder builder) { builder.putFloat(cov_y_z); builder.putFloat(cov_z_z); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCovGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCovGnss.java index 70ec5700f2..e86ffbd6fb 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCovGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFCovGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,84 +9,87 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_ECEF_COV_GNSS (0x0234). +/** SBP class for message MSG_POS_ECEF_COV_GNSS (0x0234). * - *

You can have MSG_POS_ECEF_COV_GNSS inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_POS_ECEF_COV_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates - * and the status (single point vs pseudo-absolute RTK) of the position solution. The message also - * reports the upper triangular portion of the 3x3 covariance matrix. If the receiver knows the - * surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute - * position solution using the base station position and the rover's RTK baseline vector. The full - * GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). + * The position solution message reports absolute Earth Centered Earth Fixed + * (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of + * the position solution. The message also reports the upper triangular + * portion of the 3x3 covariance matrix. If the receiver knows the surveyed + * position of the base station and has an RTK solution, this reports a + * pseudo-absolute position solution using the base station position and the + * rover's RTK baseline vector. The full GPS time is given by the preceding + * MSG_GPS_TIME_GNSS with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_POS_ECEF_COV. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_POS_ECEF_COV. */ + public class MsgPosECEFCovGnss extends SBPMessage { public static final int TYPE = 0x0234; + /** GPS Time of Week */ public long tow; - + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; - + /** Estimated variance of x */ public float cov_x_x; - + /** Estimated covariance of x and y */ public float cov_x_y; - + /** Estimated covariance of x and z */ public float cov_x_z; - + /** Estimated variance of y */ public float cov_y_y; - + /** Estimated covariance of y and z */ public float cov_y_z; - + /** Estimated variance of z */ public float cov_z_z; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosECEFCovGnss(int sender) { - super(sender, TYPE); - } - - public MsgPosECEFCovGnss() { - super(TYPE); - } - - public MsgPosECEFCovGnss(SBPMessage msg) throws SBPBinaryException { + public MsgPosECEFCovGnss (int sender) { super(sender, TYPE); } + public MsgPosECEFCovGnss () { super(TYPE); } + public MsgPosECEFCovGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosECEFCovGnss, expected 564, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosECEFCovGnss, expected 564, actual " + msg.type); } @Override @@ -102,7 +106,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_y_z = parser.getFloat(); cov_z_z = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -118,7 +122,7 @@ protected void build(Builder builder) { builder.putFloat(cov_y_z); builder.putFloat(cov_z_z); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFDepA.java index e895f5cfb1..10c7e41263 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_ECEF_DEP_A (0x0200). +/** SBP class for message MSG_POS_ECEF_DEP_A (0x0200). * - *

You can have MSG_POS_ECEF_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_ECEF_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgPosECEFDepA extends SBPMessage { public static final int TYPE = 0x0200; + /** GPS Time of Week */ public long tow; - + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; - + /** Position accuracy estimate (not implemented). Defaults to 0. */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosECEFDepA(int sender) { - super(sender, TYPE); - } - - public MsgPosECEFDepA() { - super(TYPE); - } - - public MsgPosECEFDepA(SBPMessage msg) throws SBPBinaryException { + public MsgPosECEFDepA (int sender) { super(sender, TYPE); } + public MsgPosECEFDepA () { super(TYPE); } + public MsgPosECEFDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosECEFDepA, expected 512, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosECEFDepA, expected 512, actual " + msg.type); } @Override @@ -74,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getDouble(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -85,7 +87,7 @@ protected void build(Builder builder) { builder.putDouble(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFGnss.java index 6f82037fa2..50d981eea4 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosECEFGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosECEFGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,71 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_ECEF_GNSS (0x0229). +/** SBP class for message MSG_POS_ECEF_GNSS (0x0229). * - *

You can have MSG_POS_ECEF_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_ECEF_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The position solution message reports absolute Earth Centered Earth Fixed (ECEF) coordinates - * and the status (single point vs pseudo-absolute RTK) of the position solution. If the rover - * receiver knows the surveyed position of the base station and has an RTK solution, this reports a - * pseudo-absolute position solution using the base station position and the rover's RTK baseline - * vector. The full GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching - * time-of-week (tow). + * The position solution message reports absolute Earth Centered Earth Fixed + * (ECEF) coordinates and the status (single point vs pseudo-absolute RTK) of + * the position solution. If the rover receiver knows the surveyed position of + * the base station and has an RTK solution, this reports a pseudo-absolute + * position solution using the base station position and the rover's RTK + * baseline vector. The full GPS time is given by the preceding + * MSG_GPS_TIME_GNSS with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_POS_ECEF. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_POS_ECEF. */ + public class MsgPosECEFGnss extends SBPMessage { public static final int TYPE = 0x0229; + /** GPS Time of Week */ public long tow; - + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; - + /** Position estimated standard deviation */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosECEFGnss(int sender) { - super(sender, TYPE); - } - - public MsgPosECEFGnss() { - super(TYPE); - } - - public MsgPosECEFGnss(SBPMessage msg) throws SBPBinaryException { + public MsgPosECEFGnss (int sender) { super(sender, TYPE); } + public MsgPosECEFGnss () { super(TYPE); } + public MsgPosECEFGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosECEFGnss, expected 553, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosECEFGnss, expected 553, actual " + msg.type); } @Override @@ -82,7 +85,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getDouble(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -93,7 +96,7 @@ protected void build(Builder builder) { builder.putDouble(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLH.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLH.java index c0f5377805..272e08be24 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLH.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLH.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,75 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH (0x020A). +/** SBP class for message MSG_POS_LLH (0x020A). * - *

You can have MSG_POS_LLH inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_LLH inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This position solution message reports the absolute geodetic coordinates and the status - * (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the - * surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute - * position solution using the base station position and the rover's RTK baseline vector. The full - * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * This position solution message reports the absolute geodetic coordinates + * and the status (single point vs pseudo-absolute RTK) of the position + * solution. If the rover receiver knows the surveyed position of the base + * station and has an RTK solution, this reports a pseudo-absolute position + * solution using the base station position and the rover's RTK baseline + * vector. The full GPS time is given by the preceding MSG_GPS_TIME with the + * matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_POS_LLH_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_POS_LLH_GNSS. */ + public class MsgPosLLH extends SBPMessage { public static final int TYPE = 0x020A; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height above WGS84 ellipsoid */ public double height; - + /** Horizontal position estimated standard deviation */ public int h_accuracy; - + /** Vertical position estimated standard deviation */ public int v_accuracy; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLH(int sender) { - super(sender, TYPE); - } - - public MsgPosLLH() { - super(TYPE); - } - - public MsgPosLLH(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLH (int sender) { super(sender, TYPE); } + public MsgPosLLH () { super(TYPE); } + public MsgPosLLH (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLH, expected 522, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLH, expected 522, actual " + msg.type); } @Override @@ -85,7 +90,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -97,7 +102,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHAcc.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHAcc.java index 02690cacd1..144fa62d9f 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHAcc.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHAcc.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,98 +9,100 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH_ACC (0x0218). +/** SBP class for message MSG_POS_LLH_ACC (0x0218). * - *

You can have MSG_POS_LLH_ACC inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_LLH_ACC inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This position solution message reports the absolute geodetic coordinates and the status - * (single point vs pseudo-absolute RTK) of the position solution as well as the estimated - * horizontal, vertical, cross-track and along-track errors. The position information and Fix Mode - * flags follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level - * North, East, Down frame, the estimated error terms follow that convention. + * This position solution message reports the absolute geodetic coordinates + * and the status (single point vs pseudo-absolute RTK) of the position + * solution as well as the estimated horizontal, vertical, cross-track and + * along-track errors. The position information and Fix Mode flags follow + * the MSG_POS_LLH message. Since the covariance matrix is computed in the + * local-level North, East, Down frame, the estimated error terms follow that + * convention. * - *

The estimated errors are reported at a user-configurable confidence level. The user-configured - * percentile is encoded in the percentile field. + * The estimated errors are reported at a user-configurable confidence level. + * The user-configured percentile is encoded in the percentile field. * - *

The values in this message are from GNSS measurements fused with inertial measurements. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. */ + public class MsgPosLLHAcc extends SBPMessage { public static final int TYPE = 0x0218; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height above WGS84 ellipsoid */ public double height; - - /** - * Height above the geoid (i.e. height above mean sea level). See confidence_and_geoid for geoid - * model used. - */ + + /** Height above the geoid (i.e. height above mean sea level). See + * confidence_and_geoid for geoid model used. */ public double orthometric_height; - - /** Estimated horizontal error at the user-configured confidence level; zero implies invalid. */ + + /** Estimated horizontal error at the user-configured confidence level; + * zero implies invalid. */ public float h_accuracy; - - /** Estimated vertical error at the user-configured confidence level; zero implies invalid. */ + + /** Estimated vertical error at the user-configured confidence level; zero + * implies invalid. */ public float v_accuracy; - - /** - * Estimated cross-track error at the user-configured confidence level; zero implies invalid. - */ + + /** Estimated cross-track error at the user-configured confidence level; + * zero implies invalid. */ public float ct_accuracy; - - /** - * Estimated along-track error at the user-configured confidence level; zero implies invalid. - */ + + /** Estimated along-track error at the user-configured confidence level; + * zero implies invalid. */ public float at_accuracy; - - /** The estimated horizontal error ellipse at the user-configured confidence level. */ + + /** The estimated horizontal error ellipse at the user-configured + * confidence level. */ public EstimatedHorizontalErrorEllipse h_ellipse; - - /** - * The lower bits describe the configured confidence level for the estimated position error. The - * middle bits describe the geoid model used to calculate the orthometric height. - */ + + /** The lower bits describe the configured confidence level for the + * estimated position error. The middle bits describe the geoid model + * used to calculate the orthometric height. */ public int confidence_and_geoid; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLHAcc(int sender) { - super(sender, TYPE); - } - - public MsgPosLLHAcc() { - super(TYPE); - } - - public MsgPosLLHAcc(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLHAcc (int sender) { super(sender, TYPE); } + public MsgPosLLHAcc () { super(TYPE); } + public MsgPosLLHAcc (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLHAcc, expected 536, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLHAcc, expected 536, actual " + msg.type); } @Override @@ -117,7 +120,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_ellipse = new EstimatedHorizontalErrorEllipse().parse(parser); confidence_and_geoid = parser.getU8(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -134,7 +137,7 @@ protected void build(Builder builder) { h_ellipse.build(builder); builder.putU8(confidence_and_geoid); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCov.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCov.java index 8576cdef87..81c80ad87a 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCov.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCov.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,84 +9,88 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH_COV (0x0211). +/** SBP class for message MSG_POS_LLH_COV (0x0211). * - *

You can have MSG_POS_LLH_COV inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_LLH_COV inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This position solution message reports the absolute geodetic coordinates and the status - * (single point vs pseudo-absolute RTK) of the position solution as well as the upper triangle of - * the 3x3 covariance matrix. The position information and Fix Mode flags follow the MSG_POS_LLH - * message. Since the covariance matrix is computed in the local-level North, East, Down frame, the - * covariance terms follow that convention. Thus, covariances are reported against the "downward" - * measurement and care should be taken with the sign convention. + * This position solution message reports the absolute geodetic coordinates + * and the status (single point vs pseudo-absolute RTK) of the position + * solution as well as the upper triangle of the 3x3 covariance matrix. The + * position information and Fix Mode flags follow the MSG_POS_LLH message. + * Since the covariance matrix is computed in the local-level North, East, + * Down frame, the covariance terms follow that convention. Thus, covariances + * are reported against the "downward" measurement and care should be taken + * with the sign convention. * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_POS_LLH_COV_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_POS_LLH_COV_GNSS. */ + public class MsgPosLLHCov extends SBPMessage { public static final int TYPE = 0x0211; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height above WGS84 ellipsoid */ public double height; - + /** Estimated variance of northing */ public float cov_n_n; - + /** Covariance of northing and easting */ public float cov_n_e; - + /** Covariance of northing and downward measurement */ public float cov_n_d; - + /** Estimated variance of easting */ public float cov_e_e; - + /** Covariance of easting and downward measurement */ public float cov_e_d; - + /** Estimated variance of downward measurement */ public float cov_d_d; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLHCov(int sender) { - super(sender, TYPE); - } - - public MsgPosLLHCov() { - super(TYPE); - } - - public MsgPosLLHCov(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLHCov (int sender) { super(sender, TYPE); } + public MsgPosLLHCov () { super(TYPE); } + public MsgPosLLHCov (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLHCov, expected 529, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLHCov, expected 529, actual " + msg.type); } @Override @@ -102,7 +107,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_e_d = parser.getFloat(); cov_d_d = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -118,7 +123,7 @@ protected void build(Builder builder) { builder.putFloat(cov_e_d); builder.putFloat(cov_d_d); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCovGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCovGnss.java index c91dfbf050..8d58beea62 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCovGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHCovGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,84 +9,87 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH_COV_GNSS (0x0231). +/** SBP class for message MSG_POS_LLH_COV_GNSS (0x0231). * - *

You can have MSG_POS_LLH_COV_GNSS inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_POS_LLH_COV_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This position solution message reports the absolute geodetic coordinates and the status - * (single point vs pseudo-absolute RTK) of the position solution as well as the upper triangle of - * the 3x3 covariance matrix. The position information and Fix Mode flags should follow the - * MSG_POS_LLH_GNSS message. Since the covariance matrix is computed in the local-level North, East, - * Down frame, the covariance terms follow with that convention. Thus, covariances are reported - * against the "downward" measurement and care should be taken with the sign convention. + * This position solution message reports the absolute geodetic coordinates + * and the status (single point vs pseudo-absolute RTK) of the position + * solution as well as the upper triangle of the 3x3 covariance matrix. The + * position information and Fix Mode flags should follow the MSG_POS_LLH_GNSS + * message. Since the covariance matrix is computed in the local-level North, + * East, Down frame, the covariance terms follow with that convention. Thus, + * covariances are reported against the "downward" measurement and care should + * be taken with the sign convention. * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_POS_LLH_COV. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_POS_LLH_COV. */ + public class MsgPosLLHCovGnss extends SBPMessage { public static final int TYPE = 0x0231; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height above WGS84 ellipsoid */ public double height; - + /** Estimated variance of northing */ public float cov_n_n; - + /** Covariance of northing and easting */ public float cov_n_e; - + /** Covariance of northing and downward measurement */ public float cov_n_d; - + /** Estimated variance of easting */ public float cov_e_e; - + /** Covariance of easting and downward measurement */ public float cov_e_d; - + /** Estimated variance of downward measurement */ public float cov_d_d; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLHCovGnss(int sender) { - super(sender, TYPE); - } - - public MsgPosLLHCovGnss() { - super(TYPE); - } - - public MsgPosLLHCovGnss(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLHCovGnss (int sender) { super(sender, TYPE); } + public MsgPosLLHCovGnss () { super(TYPE); } + public MsgPosLLHCovGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLHCovGnss, expected 561, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLHCovGnss, expected 561, actual " + msg.type); } @Override @@ -102,7 +106,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_e_d = parser.getFloat(); cov_d_d = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -118,7 +122,7 @@ protected void build(Builder builder) { builder.putFloat(cov_e_d); builder.putFloat(cov_d_d); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHDepA.java index 1821480275..3c1cf3b52d 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,64 +9,66 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH_DEP_A (0x0201). +/** SBP class for message MSG_POS_LLH_DEP_A (0x0201). * - *

You can have MSG_POS_LLH_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_LLH_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgPosLLHDepA extends SBPMessage { public static final int TYPE = 0x0201; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height */ public double height; - - /** Horizontal position accuracy estimate (not implemented). Defaults to 0. */ + + /** Horizontal position accuracy estimate (not implemented). Defaults to + * 0. */ public int h_accuracy; - + /** Vertical position accuracy estimate (not implemented). Defaults to 0. */ public int v_accuracy; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLHDepA(int sender) { - super(sender, TYPE); - } - - public MsgPosLLHDepA() { - super(TYPE); - } - - public MsgPosLLHDepA(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLHDepA (int sender) { super(sender, TYPE); } + public MsgPosLLHDepA () { super(TYPE); } + public MsgPosLLHDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLHDepA, expected 513, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLHDepA, expected 513, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -90,7 +93,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHGnss.java index 84da61dbfb..40baecb38d 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPosLLHGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPosLLHGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,74 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POS_LLH_GNSS (0x022A). +/** SBP class for message MSG_POS_LLH_GNSS (0x022A). * - *

You can have MSG_POS_LLH_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POS_LLH_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This position solution message reports the absolute geodetic coordinates and the status - * (single point vs pseudo-absolute RTK) of the position solution. If the rover receiver knows the - * surveyed position of the base station and has an RTK solution, this reports a pseudo-absolute - * position solution using the base station position and the rover's RTK baseline vector. The full - * GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). + * This position solution message reports the absolute geodetic coordinates + * and the status (single point vs pseudo-absolute RTK) of the position + * solution. If the rover receiver knows the surveyed position of the base + * station and has an RTK solution, this reports a pseudo-absolute position + * solution using the base station position and the rover's RTK baseline + * vector. The full GPS time is given by the preceding MSG_GPS_TIME_GNSS with + * the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_POS_LLH. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_POS_LLH. */ + public class MsgPosLLHGnss extends SBPMessage { public static final int TYPE = 0x022A; + /** GPS Time of Week */ public long tow; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height above WGS84 ellipsoid */ public double height; - + /** Horizontal position estimated standard deviation */ public int h_accuracy; - + /** Vertical position estimated standard deviation */ public int v_accuracy; - + /** Number of satellites used in solution. */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgPosLLHGnss(int sender) { - super(sender, TYPE); - } - - public MsgPosLLHGnss() { - super(TYPE); - } - - public MsgPosLLHGnss(SBPMessage msg) throws SBPBinaryException { + public MsgPosLLHGnss (int sender) { super(sender, TYPE); } + public MsgPosLLHGnss () { super(TYPE); } + public MsgPosLLHGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPosLLHGnss, expected 554, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPosLLHGnss, expected 554, actual " + msg.type); } @Override @@ -85,7 +89,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -97,7 +101,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgPoseRelative.java b/java/src/com/swiftnav/sbp/navigation/MsgPoseRelative.java index 983cf2107d..d93aae236e 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgPoseRelative.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgPoseRelative.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,120 +9,117 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_POSE_RELATIVE (0x0245). +/** SBP class for message MSG_POSE_RELATIVE (0x0245). * - *

You can have MSG_POSE_RELATIVE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_POSE_RELATIVE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This solution message reports the relative pose of a sensor between two time instances. The - * relative pose comprises of a rotation and a translation which relates the sensor (e.g. camera) - * frame at a given time (first keyframe) to the sensor frame at another time (second keyframe). The - * relative translations is a 3x1 vector described in the first keyframe. Relative rotation is - * described by a quaternion from second keyframe to the first keyframe. - */ + * This solution message reports the relative pose of a sensor between two + * time instances. The relative pose comprises of a rotation and a translation + * which relates the sensor (e.g. camera) frame at a given time (first + * keyframe) to the sensor frame at another time (second keyframe). The + * relative translations is a 3x1 vector described in the first keyframe. + * Relative rotation is described by a quaternion from second keyframe to the + * first keyframe. */ + public class MsgPoseRelative extends SBPMessage { public static final int TYPE = 0x0245; + /** GPS Time of Week */ public long tow; - + /** ID of the sensor producing this message */ public int sensor_id; - + /** Timestamp of first keyframe */ public long timestamp_1; - + /** Timestamp of second keyframe */ public long timestamp_2; - + /** Relative translation [x,y,z] described in first keyframe */ public int[] trans; - - /** Real component of quaternion to describe relative rotation (second to first keyframe) */ + + /** Real component of quaternion to describe relative rotation (second to + * first keyframe) */ public int w; - - /** - * 1st imaginary component of quaternion to describe relative rotation (second to first - * keyframe) - */ + + /** 1st imaginary component of quaternion to describe relative rotation + * (second to first keyframe) */ public int x; - - /** - * 2nd imaginary component of quaternion to describe relative rotation (second to first - * keyframe) - */ + + /** 2nd imaginary component of quaternion to describe relative rotation + * (second to first keyframe) */ public int y; - - /** - * 3rd imaginary component of quaternion to describe relative rotation (second to first - * keyframe) - */ + + /** 3rd imaginary component of quaternion to describe relative rotation + * (second to first keyframe) */ public int z; - + /** Estimated variance of x (relative translation) */ public float cov_r_x_x; - + /** Covariance of x and y (relative translation) */ public float cov_r_x_y; - + /** Covariance of x and z (relative translation) */ public float cov_r_x_z; - + /** Estimated variance of y (relative translation) */ public float cov_r_y_y; - + /** Covariance of y and z (relative translation) */ public float cov_r_y_z; - + /** Estimated variance of z (relative translation) */ public float cov_r_z_z; - + /** Estimated variance of x (relative rotation) */ public float cov_c_x_x; - + /** Covariance of x and y (relative rotation) */ public float cov_c_x_y; - + /** Covariance of x and z (relative rotation) */ public float cov_c_x_z; - + /** Estimated variance of y (relative rotation) */ public float cov_c_y_y; - + /** Covariance of y and z (relative rotation) */ public float cov_c_y_z; - + /** Estimated variance of z (relative rotation) */ public float cov_c_z_z; - + /** Status flags of relative translation and rotation */ public int flags; + - public MsgPoseRelative(int sender) { - super(sender, TYPE); - } - - public MsgPoseRelative() { - super(TYPE); - } - - public MsgPoseRelative(SBPMessage msg) throws SBPBinaryException { + public MsgPoseRelative (int sender) { super(sender, TYPE); } + public MsgPoseRelative () { super(TYPE); } + public MsgPoseRelative (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPoseRelative, expected 581, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPoseRelative, expected 581, actual " + msg.type); } @Override @@ -148,7 +146,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_c_y_y = parser.getFloat(); cov_c_y_z = parser.getFloat(); cov_c_z_z = parser.getFloat(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -174,7 +172,7 @@ protected void build(Builder builder) { builder.putFloat(cov_c_y_y); builder.putFloat(cov_c_y_z); builder.putFloat(cov_c_z_z); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevel.java b/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevel.java index 8f07ff8c86..e3fe8c04e3 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevel.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,110 +9,108 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_PROTECTION_LEVEL (0x0217). + +/** SBP class for message MSG_PROTECTION_LEVEL (0x0217). * - *

You can have MSG_PROTECTION_LEVEL inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_PROTECTION_LEVEL inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the protection levels associated to the given state estimate. The full - * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). - */ + * This message reports the protection levels associated to the given state + * estimate. The full GPS time is given by the preceding MSG_GPS_TIME with the + * matching time-of-week (tow). */ + public class MsgProtectionLevel extends SBPMessage { public static final int TYPE = 0x0217; + /** GPS Time of Week */ public long tow; - + /** GPS week number */ public int wn; - + /** Horizontal protection level */ public int hpl; - + /** Vertical protection level */ public int vpl; - + /** Along-track position error protection level */ public int atpl; - + /** Cross-track position error protection level */ public int ctpl; - - /** - * Protection level for the error vector between estimated and true along/cross track velocity - * vector - */ + + /** Protection level for the error vector between estimated and true + * along/cross track velocity vector */ public int hvpl; - - /** - * Protection level for the velocity in vehicle upright direction (different from vertical - * direction if on a slope) - */ + + /** Protection level for the velocity in vehicle upright direction + * (different from vertical direction if on a slope) */ public int vvpl; - + /** Heading orientation protection level */ public int hopl; - + /** Pitch orientation protection level */ public int popl; - + /** Roll orientation protection level */ public int ropl; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height */ public double height; - + /** Velocity in vehicle x direction */ public int v_x; - + /** Velocity in vehicle y direction */ public int v_y; - + /** Velocity in vehicle z direction */ public int v_z; - + /** Roll angle */ public int roll; - + /** Pitch angle */ public int pitch; - + /** Heading angle */ public int heading; - + /** Status flags */ public long flags; + - public MsgProtectionLevel(int sender) { - super(sender, TYPE); - } - - public MsgProtectionLevel() { - super(TYPE); - } - - public MsgProtectionLevel(SBPMessage msg) throws SBPBinaryException { + public MsgProtectionLevel (int sender) { super(sender, TYPE); } + public MsgProtectionLevel () { super(TYPE); } + public MsgProtectionLevel (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgProtectionLevel, expected 535, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgProtectionLevel, expected 535, actual " + msg.type); } @Override @@ -137,7 +136,7 @@ protected void parse(Parser parser) throws SBPBinaryException { roll = parser.getS32(); pitch = parser.getS32(); heading = parser.getS32(); - flags = parser.getU32(); + flags = parser.getU32(); } @Override @@ -162,7 +161,7 @@ protected void build(Builder builder) { builder.putS32(roll); builder.putS32(pitch); builder.putS32(heading); - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevelDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevelDepA.java index 9f28db67b5..a292ccf1c8 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevelDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgProtectionLevelDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_PROTECTION_LEVEL_DEP_A (0x0216). +/** SBP class for message MSG_PROTECTION_LEVEL_DEP_A (0x0216). * - *

You can have MSG_PROTECTION_LEVEL_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_PROTECTION_LEVEL_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgProtectionLevelDepA extends SBPMessage { public static final int TYPE = 0x0216; + /** GPS Time of Week */ public long tow; - + /** Vertical protection level */ public int vpl; - + /** Horizontal protection level */ public int hpl; - + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height */ public double height; - + /** Status flags */ public int flags; + - public MsgProtectionLevelDepA(int sender) { - super(sender, TYPE); - } - - public MsgProtectionLevelDepA() { - super(TYPE); - } - - public MsgProtectionLevelDepA(SBPMessage msg) throws SBPBinaryException { + public MsgProtectionLevelDepA (int sender) { super(sender, TYPE); } + public MsgProtectionLevelDepA () { super(TYPE); } + public MsgProtectionLevelDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgProtectionLevelDepA, expected 534, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgProtectionLevelDepA, expected 534, actual " + msg.type); } @Override @@ -74,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { lat = parser.getDouble(); lon = parser.getDouble(); height = parser.getDouble(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -85,7 +87,7 @@ protected void build(Builder builder) { builder.putDouble(lat); builder.putDouble(lon); builder.putDouble(height); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgReferenceFrameParam.java b/java/src/com/swiftnav/sbp/navigation/MsgReferenceFrameParam.java index f5e9f3753e..b574432a99 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgReferenceFrameParam.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgReferenceFrameParam.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,95 +9,95 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgReferenceFrameParam extends SBPMessage { public static final int TYPE = 0x0244; + /** SSR IOD parameter. */ public int ssr_iod; - + /** Name of source coordinate-system. */ public String sn; - + /** Name of target coordinate-system. */ public String tn; - + /** System Identification Number. */ public int sin; - + /** Utilized Transformation Message. */ public int utn; - - /** - * Reference Epoch t0 for transformation parameter set given as Modified Julian Day (MJD) Number - * minus 44244 days. - */ + + /** Reference Epoch t0 for transformation parameter set given as Modified + * Julian Day (MJD) Number minus 44244 days. */ public int re_t0; - + /** Translation in X for Reference Epoch t0. */ public int delta_X0; - + /** Translation in Y for Reference Epoch t0. */ public int delta_Y0; - + /** Translation in Z for Reference Epoch t0. */ public int delta_Z0; - + /** Rotation around the X-axis for Reference Epoch t0. */ public int theta_01; - + /** Rotation around the Y-axis for Reference Epoch t0. */ public int theta_02; - + /** Rotation around the Z-axis for Reference Epoch t0. */ public int theta_03; - + /** Scale correction for Reference Epoch t0. */ public int scale; - + /** Rate of change of translation in X. */ public int dot_delta_X0; - + /** Rate of change of translation in Y. */ public int dot_delta_Y0; - + /** Rate of change of translation in Z. */ public int dot_delta_Z0; - + /** Rate of change of rotation around the X-axis. */ public int dot_theta_01; - + /** Rate of change of rotation around the Y-axis. */ public int dot_theta_02; - + /** Rate of change of rotation around the Z-axis. */ public int dot_theta_03; - + /** Rate of change of scale correction. */ public int dot_scale; + - public MsgReferenceFrameParam(int sender) { - super(sender, TYPE); - } - - public MsgReferenceFrameParam() { - super(TYPE); - } - - public MsgReferenceFrameParam(SBPMessage msg) throws SBPBinaryException { + public MsgReferenceFrameParam (int sender) { super(sender, TYPE); } + public MsgReferenceFrameParam () { super(TYPE); } + public MsgReferenceFrameParam (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgReferenceFrameParam, expected 580, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgReferenceFrameParam, expected 580, actual " + msg.type); } @Override @@ -121,7 +122,7 @@ protected void parse(Parser parser) throws SBPBinaryException { dot_theta_01 = parser.getS32(); dot_theta_02 = parser.getS32(); dot_theta_03 = parser.getS32(); - dot_scale = parser.getS16(); + dot_scale = parser.getS16(); } @Override @@ -145,7 +146,7 @@ protected void build(Builder builder) { builder.putS32(dot_theta_01); builder.putS32(dot_theta_02); builder.putS32(dot_theta_03); - builder.putS16(dot_scale); + builder.putS16(dot_scale); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgUtcLeapSecond.java b/java/src/com/swiftnav/sbp/navigation/MsgUtcLeapSecond.java index da7008d9c7..83c51b02f5 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgUtcLeapSecond.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgUtcLeapSecond.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,68 +9,69 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_UTC_LEAP_SECOND (0x023A). +/** SBP class for message MSG_UTC_LEAP_SECOND (0x023A). * - *

You can have MSG_UTC_LEAP_SECOND inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_UTC_LEAP_SECOND inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

UTC-GPST leap seconds before and after the most recent (past, or future, for announced - * insertions) UTC leap second insertion. - */ + * UTC-GPST leap seconds before and after the most recent (past, or future, + * for announced insertions) UTC leap second insertion. */ + public class MsgUtcLeapSecond extends SBPMessage { public static final int TYPE = 0x023A; + /** Reserved. */ public int reserved_0; - + /** Reserved. */ public int reserved_1; - + /** Reserved. */ public int reserved_2; - + /** Leap second count before insertion. */ public int count_before; - + /** Reserved. */ public int reserved_3; - + /** Reserved. */ public int reserved_4; - + /** Leap second reference GPS week number. */ public int ref_wn; - + /** Leap second reference day number. */ public int ref_dn; - + /** Leap second count after insertion. */ public int count_after; + - public MsgUtcLeapSecond(int sender) { - super(sender, TYPE); - } - - public MsgUtcLeapSecond() { - super(TYPE); - } - - public MsgUtcLeapSecond(SBPMessage msg) throws SBPBinaryException { + public MsgUtcLeapSecond (int sender) { super(sender, TYPE); } + public MsgUtcLeapSecond () { super(TYPE); } + public MsgUtcLeapSecond (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUtcLeapSecond, expected 570, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUtcLeapSecond, expected 570, actual " + msg.type); } @Override @@ -83,7 +85,7 @@ protected void parse(Parser parser) throws SBPBinaryException { reserved_4 = parser.getU16(); ref_wn = parser.getU16(); ref_dn = parser.getU8(); - count_after = parser.getS8(); + count_after = parser.getS8(); } @Override @@ -96,7 +98,7 @@ protected void build(Builder builder) { builder.putU16(reserved_4); builder.putU16(ref_wn); builder.putU8(ref_dn); - builder.putS8(count_after); + builder.putS8(count_after); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgUtcTime.java b/java/src/com/swiftnav/sbp/navigation/MsgUtcTime.java index f9043655e2..afcc201bd0 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgUtcTime.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgUtcTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,74 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_UTC_TIME (0x0103). +/** SBP class for message MSG_UTC_TIME (0x0103). * - *

You can have MSG_UTC_TIME inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_UTC_TIME inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the Universal Coordinated Time (UTC). Note the flags which indicate the - * source of the UTC offset value and source of the time fix. + * This message reports the Universal Coordinated Time (UTC). Note the flags + * which indicate the source of the UTC offset value and source of the time + * fix. * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_UTC_TIME_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_UTC_TIME_GNSS. */ + public class MsgUtcTime extends SBPMessage { public static final int TYPE = 0x0103; + /** Indicates source and time validity */ public int flags; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - + /** Year */ public int year; - + /** Month (range 1 .. 12) */ public int month; - + /** days in the month (range 1-31) */ public int day; - + /** hours of day (range 0-23) */ public int hours; - + /** minutes of hour (range 0-59) */ public int minutes; - + /** seconds of minute (range 0-60) rounded down */ public int seconds; - + /** nanoseconds of second (range 0-999999999) */ public long ns; + - public MsgUtcTime(int sender) { - super(sender, TYPE); - } - - public MsgUtcTime() { - super(TYPE); - } - - public MsgUtcTime(SBPMessage msg) throws SBPBinaryException { + public MsgUtcTime (int sender) { super(sender, TYPE); } + public MsgUtcTime () { super(TYPE); } + public MsgUtcTime (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUtcTime, expected 259, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUtcTime, expected 259, actual " + msg.type); } @Override @@ -86,7 +90,7 @@ protected void parse(Parser parser) throws SBPBinaryException { hours = parser.getU8(); minutes = parser.getU8(); seconds = parser.getU8(); - ns = parser.getU32(); + ns = parser.getU32(); } @Override @@ -99,7 +103,7 @@ protected void build(Builder builder) { builder.putU8(hours); builder.putU8(minutes); builder.putU8(seconds); - builder.putU32(ns); + builder.putU32(ns); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgUtcTimeGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgUtcTimeGnss.java index a0dcbe38b6..27945e1a98 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgUtcTimeGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgUtcTimeGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,73 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_UTC_TIME_GNSS (0x0105). +/** SBP class for message MSG_UTC_TIME_GNSS (0x0105). * - *

You can have MSG_UTC_TIME_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_UTC_TIME_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the Universal Coordinated Time (UTC). Note the flags which indicate the - * source of the UTC offset value and source of the time fix. + * This message reports the Universal Coordinated Time (UTC). Note the flags + * which indicate the source of the UTC offset value and source of the time + * fix. * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_UTC_TIME. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_UTC_TIME. */ + public class MsgUtcTimeGnss extends SBPMessage { public static final int TYPE = 0x0105; + /** Indicates source and time validity */ public int flags; - + /** GPS time of week rounded to the nearest millisecond */ public long tow; - + /** Year */ public int year; - + /** Month (range 1 .. 12) */ public int month; - + /** days in the month (range 1-31) */ public int day; - + /** hours of day (range 0-23) */ public int hours; - + /** minutes of hour (range 0-59) */ public int minutes; - + /** seconds of minute (range 0-60) rounded down */ public int seconds; - + /** nanoseconds of second (range 0-999999999) */ public long ns; + - public MsgUtcTimeGnss(int sender) { - super(sender, TYPE); - } - - public MsgUtcTimeGnss() { - super(TYPE); - } - - public MsgUtcTimeGnss(SBPMessage msg) throws SBPBinaryException { + public MsgUtcTimeGnss (int sender) { super(sender, TYPE); } + public MsgUtcTimeGnss () { super(TYPE); } + public MsgUtcTimeGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUtcTimeGnss, expected 261, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUtcTimeGnss, expected 261, actual " + msg.type); } @Override @@ -86,7 +89,7 @@ protected void parse(Parser parser) throws SBPBinaryException { hours = parser.getU8(); minutes = parser.getU8(); seconds = parser.getU8(); - ns = parser.getU32(); + ns = parser.getU32(); } @Override @@ -99,7 +102,7 @@ protected void build(Builder builder) { builder.putU8(hours); builder.putU8(minutes); builder.putU8(seconds); - builder.putU32(ns); + builder.putU32(ns); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelBody.java b/java/src/com/swiftnav/sbp/navigation/MsgVelBody.java index 3fee889d08..ae528c888f 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelBody.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelBody.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,84 +9,88 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_BODY (0x0213). +/** SBP class for message MSG_VEL_BODY (0x0213). * - *

You can have MSG_VEL_BODY inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_BODY inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in the Vehicle Body Frame. By convention, the x-axis should - * point out the nose of the vehicle and represent the forward direction, while as the y-axis should - * point out the right hand side of the vehicle. Since this is a right handed system, z should point - * out the bottom of the vehicle. The orientation and origin of the Vehicle Body Frame are specified - * via the device settings. The full GPS time is given by the preceding MSG_GPS_TIME with the - * matching time-of-week (tow). This message is only produced by inertial versions of Swift products - * and is not available from Piksi Multi or Duro. + * This message reports the velocity in the Vehicle Body Frame. By convention, + * the x-axis should point out the nose of the vehicle and represent the + * forward direction, while as the y-axis should point out the right hand side + * of the vehicle. Since this is a right handed system, z should point out the + * bottom of the vehicle. The orientation and origin of the Vehicle Body Frame + * are specified via the device settings. The full GPS time is given by the + * preceding MSG_GPS_TIME with the matching time-of-week (tow). This message + * is only produced by inertial versions of Swift products and is not + * available from Piksi Multi or Duro. * - *

The values in this message are from GNSS measurements fused with inertial measurements. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. */ + public class MsgVelBody extends SBPMessage { public static final int TYPE = 0x0213; + /** GPS Time of Week */ public long tow; - + /** Velocity in x direction */ public int x; - + /** Velocity in y direction */ public int y; - + /** Velocity in z direction */ public int z; - + /** Estimated variance of x */ public float cov_x_x; - + /** Covariance of x and y */ public float cov_x_y; - + /** Covariance of x and z */ public float cov_x_z; - + /** Estimated variance of y */ public float cov_y_y; - + /** Covariance of y and z */ public float cov_y_z; - + /** Estimated variance of z */ public float cov_z_z; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelBody(int sender) { - super(sender, TYPE); - } - - public MsgVelBody() { - super(TYPE); - } - - public MsgVelBody(SBPMessage msg) throws SBPBinaryException { + public MsgVelBody (int sender) { super(sender, TYPE); } + public MsgVelBody () { super(TYPE); } + public MsgVelBody (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelBody, expected 531, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelBody, expected 531, actual " + msg.type); } @Override @@ -102,7 +107,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_y_z = parser.getFloat(); cov_z_z = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -118,7 +123,7 @@ protected void build(Builder builder) { builder.putFloat(cov_y_z); builder.putFloat(cov_z_z); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelCog.java b/java/src/com/swiftnav/sbp/navigation/MsgVelCog.java index f02669f263..449896b879 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelCog.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelCog.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,78 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_COG (0x021C). +/** SBP class for message MSG_VEL_COG (0x021C). * - *

You can have MSG_VEL_COG inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_COG inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the receiver course over ground (COG) and speed over ground (SOG) based - * on the horizontal (N-E) components of the NED velocity vector. It also includes the vertical - * velocity coordinate. A flag is provided to indicate whether the COG value has been frozen. When - * the flag is set to true, the COG field is set to its last valid value until the system exceeds a - * minimum velocity threshold. No other fields are affected by this flag. The NED coordinate system - * is defined as the local WGS84 tangent plane centered at the current position. The full GPS time - * is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Note: course over - * ground represents the receiver's direction of travel, but not necessarily the device heading. + * This message reports the receiver course over ground (COG) and speed over + * ground (SOG) based on the horizontal (N-E) components of the NED velocity + * vector. It also includes the vertical velocity coordinate. A flag is + * provided to indicate whether the COG value has been frozen. When the flag + * is set to true, the COG field is set to its last valid value until the + * system exceeds a minimum velocity threshold. No other fields are affected + * by this flag. The NED coordinate system is defined as the local WGS84 + * tangent plane centered at the current position. The full GPS time is given + * by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Note: + * course over ground represents the receiver's direction of travel, but not + * necessarily the device heading. * - *

The values in this message are from GNSS measurements fused with inertial measurements. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. */ + public class MsgVelCog extends SBPMessage { public static final int TYPE = 0x021C; + /** GPS Time of Week */ public long tow; - + /** Course over ground relative to north direction */ public long cog; - + /** Speed over ground (based on horizontal velocity) */ public long sog; - + /** Vertical velocity component (positive up) */ public int v_up; - + /** Course over ground estimated standard deviation */ public long cog_accuracy; - + /** Speed over ground estimated standard deviation */ public long sog_accuracy; - + /** Vertical velocity estimated standard deviation */ public long v_up_accuracy; - + /** Status flags */ public int flags; + - public MsgVelCog(int sender) { - super(sender, TYPE); - } - - public MsgVelCog() { - super(TYPE); - } - - public MsgVelCog(SBPMessage msg) throws SBPBinaryException { + public MsgVelCog (int sender) { super(sender, TYPE); } + public MsgVelCog () { super(TYPE); } + public MsgVelCog (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelCog, expected 540, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelCog, expected 540, actual " + msg.type); } @Override @@ -87,7 +93,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cog_accuracy = parser.getU32(); sog_accuracy = parser.getU32(); v_up_accuracy = parser.getU32(); - flags = parser.getU16(); + flags = parser.getU16(); } @Override @@ -99,7 +105,7 @@ protected void build(Builder builder) { builder.putU32(cog_accuracy); builder.putU32(sog_accuracy); builder.putU32(v_up_accuracy); - builder.putU16(flags); + builder.putU16(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelECEF.java b/java/src/com/swiftnav/sbp/navigation/MsgVelECEF.java index ca256db3e5..0af3b9752e 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelECEF.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelECEF.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,68 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_ECEF (0x020D). +/** SBP class for message MSG_VEL_ECEF (0x020D). * - *

You can have MSG_VEL_ECEF inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_ECEF inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full - * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * This message reports the velocity in Earth Centered Earth Fixed (ECEF) + * coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with + * the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_VEL_ECEF_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_VEL_ECEF_GNSS. */ + public class MsgVelECEF extends SBPMessage { public static final int TYPE = 0x020D; + /** GPS Time of Week */ public long tow; - + /** Velocity ECEF X coordinate */ public int x; - + /** Velocity ECEF Y coordinate */ public int y; - + /** Velocity ECEF Z coordinate */ public int z; - + /** Velocity estimated standard deviation */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelECEF(int sender) { - super(sender, TYPE); - } - - public MsgVelECEF() { - super(TYPE); - } - - public MsgVelECEF(SBPMessage msg) throws SBPBinaryException { + public MsgVelECEF (int sender) { super(sender, TYPE); } + public MsgVelECEF () { super(TYPE); } + public MsgVelECEF (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelECEF, expected 525, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelECEF, expected 525, actual " + msg.type); } @Override @@ -78,7 +82,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getS32(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -89,7 +93,7 @@ protected void build(Builder builder) { builder.putS32(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCov.java b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCov.java index 4072469f3c..10db17bdac 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCov.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCov.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,80 +9,83 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_ECEF_COV (0x0215). +/** SBP class for message MSG_VEL_ECEF_COV (0x0215). * - *

You can have MSG_VEL_ECEF_COV inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_ECEF_COV inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full - * GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * This message reports the velocity in Earth Centered Earth Fixed (ECEF) + * coordinates. The full GPS time is given by the preceding MSG_GPS_TIME with + * the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_VEL_ECEF_COV_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_VEL_ECEF_COV_GNSS. */ + public class MsgVelECEFCov extends SBPMessage { public static final int TYPE = 0x0215; + /** GPS Time of Week */ public long tow; - + /** Velocity ECEF X coordinate */ public int x; - + /** Velocity ECEF Y coordinate */ public int y; - + /** Velocity ECEF Z coordinate */ public int z; - + /** Estimated variance of x */ public float cov_x_x; - + /** Estimated covariance of x and y */ public float cov_x_y; - + /** Estimated covariance of x and z */ public float cov_x_z; - + /** Estimated variance of y */ public float cov_y_y; - + /** Estimated covariance of y and z */ public float cov_y_z; - + /** Estimated variance of z */ public float cov_z_z; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelECEFCov(int sender) { - super(sender, TYPE); - } - - public MsgVelECEFCov() { - super(TYPE); - } - - public MsgVelECEFCov(SBPMessage msg) throws SBPBinaryException { + public MsgVelECEFCov (int sender) { super(sender, TYPE); } + public MsgVelECEFCov () { super(TYPE); } + public MsgVelECEFCov (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelECEFCov, expected 533, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelECEFCov, expected 533, actual " + msg.type); } @Override @@ -98,7 +102,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_y_z = parser.getFloat(); cov_z_z = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -114,7 +118,7 @@ protected void build(Builder builder) { builder.putFloat(cov_y_z); builder.putFloat(cov_z_z); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCovGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCovGnss.java index 0f296e550f..aaf20d45e9 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCovGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFCovGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,80 +9,82 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_ECEF_COV_GNSS (0x0235). +/** SBP class for message MSG_VEL_ECEF_COV_GNSS (0x0235). * - *

You can have MSG_VEL_ECEF_COV_GNSS inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_VEL_ECEF_COV_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full - * GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). + * This message reports the velocity in Earth Centered Earth Fixed (ECEF) + * coordinates. The full GPS time is given by the preceding MSG_GPS_TIME_GNSS + * with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_VEL_ECEF_COV. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_VEL_ECEF_COV. */ + public class MsgVelECEFCovGnss extends SBPMessage { public static final int TYPE = 0x0235; + /** GPS Time of Week */ public long tow; - + /** Velocity ECEF X coordinate */ public int x; - + /** Velocity ECEF Y coordinate */ public int y; - + /** Velocity ECEF Z coordinate */ public int z; - + /** Estimated variance of x */ public float cov_x_x; - + /** Estimated covariance of x and y */ public float cov_x_y; - + /** Estimated covariance of x and z */ public float cov_x_z; - + /** Estimated variance of y */ public float cov_y_y; - + /** Estimated covariance of y and z */ public float cov_y_z; - + /** Estimated variance of z */ public float cov_z_z; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelECEFCovGnss(int sender) { - super(sender, TYPE); - } - - public MsgVelECEFCovGnss() { - super(TYPE); - } - - public MsgVelECEFCovGnss(SBPMessage msg) throws SBPBinaryException { + public MsgVelECEFCovGnss (int sender) { super(sender, TYPE); } + public MsgVelECEFCovGnss () { super(TYPE); } + public MsgVelECEFCovGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelECEFCovGnss, expected 565, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelECEFCovGnss, expected 565, actual " + msg.type); } @Override @@ -98,7 +101,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_y_z = parser.getFloat(); cov_z_z = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -114,7 +117,7 @@ protected void build(Builder builder) { builder.putFloat(cov_y_z); builder.putFloat(cov_z_z); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFDepA.java index 3829d226d2..b5dd2e7a4c 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_ECEF_DEP_A (0x0204). +/** SBP class for message MSG_VEL_ECEF_DEP_A (0x0204). * - *

You can have MSG_VEL_ECEF_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_ECEF_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgVelECEFDepA extends SBPMessage { public static final int TYPE = 0x0204; + /** GPS Time of Week */ public long tow; - + /** Velocity ECEF X coordinate */ public int x; - + /** Velocity ECEF Y coordinate */ public int y; - + /** Velocity ECEF Z coordinate */ public int z; - + /** Velocity accuracy estimate (not implemented). Defaults to 0. */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags (reserved) */ public int flags; + - public MsgVelECEFDepA(int sender) { - super(sender, TYPE); - } - - public MsgVelECEFDepA() { - super(TYPE); - } - - public MsgVelECEFDepA(SBPMessage msg) throws SBPBinaryException { + public MsgVelECEFDepA (int sender) { super(sender, TYPE); } + public MsgVelECEFDepA () { super(TYPE); } + public MsgVelECEFDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelECEFDepA, expected 516, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelECEFDepA, expected 516, actual " + msg.type); } @Override @@ -74,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getS32(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -85,7 +87,7 @@ protected void build(Builder builder) { builder.putS32(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFGnss.java index 92a9a7d8ff..ced81f473f 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelECEFGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelECEFGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_ECEF_GNSS (0x022D). +/** SBP class for message MSG_VEL_ECEF_GNSS (0x022D). * - *

You can have MSG_VEL_ECEF_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_ECEF_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in Earth Centered Earth Fixed (ECEF) coordinates. The full - * GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). + * This message reports the velocity in Earth Centered Earth Fixed (ECEF) + * coordinates. The full GPS time is given by the preceding MSG_GPS_TIME_GNSS + * with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_VEL_ECEF. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_VEL_ECEF. */ + public class MsgVelECEFGnss extends SBPMessage { public static final int TYPE = 0x022D; + /** GPS Time of Week */ public long tow; - + /** Velocity ECEF X coordinate */ public int x; - + /** Velocity ECEF Y coordinate */ public int y; - + /** Velocity ECEF Z coordinate */ public int z; - + /** Velocity estimated standard deviation */ public int accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelECEFGnss(int sender) { - super(sender, TYPE); - } - - public MsgVelECEFGnss() { - super(TYPE); - } - - public MsgVelECEFGnss(SBPMessage msg) throws SBPBinaryException { + public MsgVelECEFGnss (int sender) { super(sender, TYPE); } + public MsgVelECEFGnss () { super(TYPE); } + public MsgVelECEFGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelECEFGnss, expected 557, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelECEFGnss, expected 557, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { z = parser.getS32(); accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -89,7 +92,7 @@ protected void build(Builder builder) { builder.putS32(z); builder.putU16(accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelNED.java b/java/src/com/swiftnav/sbp/navigation/MsgVelNED.java index ed2a415673..88f0effbc8 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelNED.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelNED.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,72 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_NED (0x020E). +/** SBP class for message MSG_VEL_NED (0x020E). * - *

You can have MSG_VEL_NED inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_NED inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in local North East Down (NED) coordinates. The NED - * coordinate system is defined as the local WGS84 tangent plane centered at the current position. - * The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). + * This message reports the velocity in local North East Down (NED) + * coordinates. The NED coordinate system is defined as the local WGS84 + * tangent plane centered at the current position. The full GPS time is given + * by the preceding MSG_GPS_TIME with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_VEL_NED_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_VEL_NED_GNSS. */ + public class MsgVelNED extends SBPMessage { public static final int TYPE = 0x020E; + /** GPS Time of Week */ public long tow; - + /** Velocity North coordinate */ public int n; - + /** Velocity East coordinate */ public int e; - + /** Velocity Down coordinate */ public int d; - + /** Horizontal velocity estimated standard deviation */ public int h_accuracy; - + /** Vertical velocity estimated standard deviation */ public int v_accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelNED(int sender) { - super(sender, TYPE); - } - - public MsgVelNED() { - super(TYPE); - } - - public MsgVelNED(SBPMessage msg) throws SBPBinaryException { + public MsgVelNED (int sender) { super(sender, TYPE); } + public MsgVelNED () { super(TYPE); } + public MsgVelNED (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelNED, expected 526, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelNED, expected 526, actual " + msg.type); } @Override @@ -83,7 +87,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -95,7 +99,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCov.java b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCov.java index 0914f111eb..a0685bf930 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCov.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCov.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,83 +9,86 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_NED_COV (0x0212). +/** SBP class for message MSG_VEL_NED_COV (0x0212). * - *

You can have MSG_VEL_NED_COV inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_NED_COV inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in local North East Down (NED) coordinates. The NED - * coordinate system is defined as the local WGS84 tangent plane centered at the current position. - * The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). - * This message is similar to the MSG_VEL_NED, but it includes the upper triangular portion of the - * 3x3 covariance matrix. + * This message reports the velocity in local North East Down (NED) + * coordinates. The NED coordinate system is defined as the local WGS84 + * tangent plane centered at the current position. The full GPS time is given + * by the preceding MSG_GPS_TIME with the matching time-of-week (tow). This + * message is similar to the MSG_VEL_NED, but it includes the upper triangular + * portion of the 3x3 covariance matrix. * - *

The values in this message are from GNSS measurements fused with inertial measurements. To get - * values from GNSS measurements only use MSG_VEL_NED_COV_GNSS. - */ + * The values in this message are from GNSS measurements fused with inertial + * measurements. To get values from GNSS measurements only use + * MSG_VEL_NED_COV_GNSS. */ + public class MsgVelNEDCov extends SBPMessage { public static final int TYPE = 0x0212; + /** GPS Time of Week */ public long tow; - + /** Velocity North coordinate */ public int n; - + /** Velocity East coordinate */ public int e; - + /** Velocity Down coordinate */ public int d; - + /** Estimated variance of northward measurement */ public float cov_n_n; - + /** Covariance of northward and eastward measurement */ public float cov_n_e; - + /** Covariance of northward and downward measurement */ public float cov_n_d; - + /** Estimated variance of eastward measurement */ public float cov_e_e; - + /** Covariance of eastward and downward measurement */ public float cov_e_d; - + /** Estimated variance of downward measurement */ public float cov_d_d; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelNEDCov(int sender) { - super(sender, TYPE); - } - - public MsgVelNEDCov() { - super(TYPE); - } - - public MsgVelNEDCov(SBPMessage msg) throws SBPBinaryException { + public MsgVelNEDCov (int sender) { super(sender, TYPE); } + public MsgVelNEDCov () { super(TYPE); } + public MsgVelNEDCov (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelNEDCov, expected 530, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelNEDCov, expected 530, actual " + msg.type); } @Override @@ -101,7 +105,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_e_d = parser.getFloat(); cov_d_d = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -117,7 +121,7 @@ protected void build(Builder builder) { builder.putFloat(cov_e_d); builder.putFloat(cov_d_d); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCovGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCovGnss.java index 1b9e6148a7..fea224d675 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCovGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDCovGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,83 +9,85 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_NED_COV_GNSS (0x0232). +/** SBP class for message MSG_VEL_NED_COV_GNSS (0x0232). * - *

You can have MSG_VEL_NED_COV_GNSS inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_VEL_NED_COV_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in local North East Down (NED) coordinates. The NED - * coordinate system is defined as the local WGS84 tangent plane centered at the current position. - * The full GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week - * (tow). This message is similar to the MSG_VEL_NED_GNSS, but it includes the upper triangular - * portion of the 3x3 covariance matrix. + * This message reports the velocity in local North East Down (NED) + * coordinates. The NED coordinate system is defined as the local WGS84 + * tangent plane centered at the current position. The full GPS time is given + * by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). + * This message is similar to the MSG_VEL_NED_GNSS, but it includes the upper + * triangular portion of the 3x3 covariance matrix. * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_VEL_NED_COV. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_VEL_NED_COV. */ + public class MsgVelNEDCovGnss extends SBPMessage { public static final int TYPE = 0x0232; + /** GPS Time of Week */ public long tow; - + /** Velocity North coordinate */ public int n; - + /** Velocity East coordinate */ public int e; - + /** Velocity Down coordinate */ public int d; - + /** Estimated variance of northward measurement */ public float cov_n_n; - + /** Covariance of northward and eastward measurement */ public float cov_n_e; - + /** Covariance of northward and downward measurement */ public float cov_n_d; - + /** Estimated variance of eastward measurement */ public float cov_e_e; - + /** Covariance of eastward and downward measurement */ public float cov_e_d; - + /** Estimated variance of downward measurement */ public float cov_d_d; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelNEDCovGnss(int sender) { - super(sender, TYPE); - } - - public MsgVelNEDCovGnss() { - super(TYPE); - } - - public MsgVelNEDCovGnss(SBPMessage msg) throws SBPBinaryException { + public MsgVelNEDCovGnss (int sender) { super(sender, TYPE); } + public MsgVelNEDCovGnss () { super(TYPE); } + public MsgVelNEDCovGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelNEDCovGnss, expected 562, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelNEDCovGnss, expected 562, actual " + msg.type); } @Override @@ -101,7 +104,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cov_e_d = parser.getFloat(); cov_d_d = parser.getFloat(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -117,7 +120,7 @@ protected void build(Builder builder) { builder.putFloat(cov_e_d); builder.putFloat(cov_d_d); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDDepA.java b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDDepA.java index 52ab73e024..6c04c7225c 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDDepA.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,64 +9,66 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_NED_DEP_A (0x0205). +/** SBP class for message MSG_VEL_NED_DEP_A (0x0205). * - *

You can have MSG_VEL_NED_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_NED_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgVelNEDDepA extends SBPMessage { public static final int TYPE = 0x0205; + /** GPS Time of Week */ public long tow; - + /** Velocity North coordinate */ public int n; - + /** Velocity East coordinate */ public int e; - + /** Velocity Down coordinate */ public int d; - - /** Horizontal velocity accuracy estimate (not implemented). Defaults to 0. */ + + /** Horizontal velocity accuracy estimate (not implemented). Defaults to + * 0. */ public int h_accuracy; - + /** Vertical velocity accuracy estimate (not implemented). Defaults to 0. */ public int v_accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags (reserved) */ public int flags; + - public MsgVelNEDDepA(int sender) { - super(sender, TYPE); - } - - public MsgVelNEDDepA() { - super(TYPE); - } - - public MsgVelNEDDepA(SBPMessage msg) throws SBPBinaryException { + public MsgVelNEDDepA (int sender) { super(sender, TYPE); } + public MsgVelNEDDepA () { super(TYPE); } + public MsgVelNEDDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelNEDDepA, expected 517, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelNEDDepA, expected 517, actual " + msg.type); } @Override @@ -78,7 +81,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -90,7 +93,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDGnss.java b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDGnss.java index 0fbb556834..930b08f5ca 100644 --- a/java/src/com/swiftnav/sbp/navigation/MsgVelNEDGnss.java +++ b/java/src/com/swiftnav/sbp/navigation/MsgVelNEDGnss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,70 +9,71 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.navigation; // This file was auto-generated from yaml/swiftnav/sbp/navigation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_VEL_NED_GNSS (0x022E). +/** SBP class for message MSG_VEL_NED_GNSS (0x022E). * - *

You can have MSG_VEL_NED_GNSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_VEL_NED_GNSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the velocity in local North East Down (NED) coordinates. The NED - * coordinate system is defined as the local WGS84 tangent plane centered at the current position. - * The full GPS time is given by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week - * (tow). + * This message reports the velocity in local North East Down (NED) + * coordinates. The NED coordinate system is defined as the local WGS84 + * tangent plane centered at the current position. The full GPS time is given + * by the preceding MSG_GPS_TIME_GNSS with the matching time-of-week (tow). * - *

The values in this message are from GNSS measurements only. To get values fused with inertial - * measurements use MSG_VEL_NED. - */ + * The values in this message are from GNSS measurements only. To get values + * fused with inertial measurements use MSG_VEL_NED. */ + public class MsgVelNEDGnss extends SBPMessage { public static final int TYPE = 0x022E; + /** GPS Time of Week */ public long tow; - + /** Velocity North coordinate */ public int n; - + /** Velocity East coordinate */ public int e; - + /** Velocity Down coordinate */ public int d; - + /** Horizontal velocity estimated standard deviation */ public int h_accuracy; - + /** Vertical velocity estimated standard deviation */ public int v_accuracy; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgVelNEDGnss(int sender) { - super(sender, TYPE); - } - - public MsgVelNEDGnss() { - super(TYPE); - } - - public MsgVelNEDGnss(SBPMessage msg) throws SBPBinaryException { + public MsgVelNEDGnss (int sender) { super(sender, TYPE); } + public MsgVelNEDGnss () { super(TYPE); } + public MsgVelNEDGnss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgVelNEDGnss, expected 558, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgVelNEDGnss, expected 558, actual " + msg.type); } @Override @@ -84,7 +86,7 @@ protected void parse(Parser parser) throws SBPBinaryException { h_accuracy = parser.getU16(); v_accuracy = parser.getU16(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -96,7 +98,7 @@ protected void build(Builder builder) { builder.putU16(h_accuracy); builder.putU16(v_accuracy); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/ndb/MsgNdbEvent.java b/java/src/com/swiftnav/sbp/ndb/MsgNdbEvent.java index 826095bc36..6734aef4ec 100644 --- a/java/src/com/swiftnav/sbp/ndb/MsgNdbEvent.java +++ b/java/src/com/swiftnav/sbp/ndb/MsgNdbEvent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,78 +9,73 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ndb; // This file was auto-generated from yaml/swiftnav/sbp/ndb.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NDB_EVENT (0x0400). +/** SBP class for message MSG_NDB_EVENT (0x0400). * - *

You can have MSG_NDB_EVENT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_NDB_EVENT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message is sent out when an object is stored into NDB. If needed message could also be - * sent out when fetching an object from NDB. - */ + * This message is sent out when an object is stored into NDB. If needed + * message could also be sent out when fetching an object from NDB. */ + public class MsgNdbEvent extends SBPMessage { public static final int TYPE = 0x0400; + /** HW time in milliseconds. */ public BigInteger recv_time; - + /** Event type. */ public int event; - + /** Event object type. */ public int object_type; - + /** Event result. */ public int result; - + /** Data source for STORE event, reserved for other events. */ public int data_source; - - /** - * GNSS signal identifier, If object_type is Ephemeris OR Almanac, sid indicates for which - * signal the object belongs to. Reserved in other cases. - */ + + /** GNSS signal identifier, If object_type is Ephemeris OR Almanac, sid + * indicates for which signal the object belongs to. Reserved in other + * cases. */ public GnssSignal object_sid; - - /** - * GNSS signal identifier, If object_type is Almanac, Almanac WN, Iono OR L2C capabilities AND - * data_source is NDB_DS_RECEIVER sid indicates from which SV data was decoded. Reserved in - * other cases. - */ + + /** GNSS signal identifier, If object_type is Almanac, Almanac WN, Iono OR + * L2C capabilities AND data_source is NDB_DS_RECEIVER sid indicates from + * which SV data was decoded. Reserved in other cases. */ public GnssSignal src_sid; - - /** - * A unique identifier of the sending hardware. For v1.0, set to the 2 least significant bytes - * of the device serial number, valid only if data_source is NDB_DS_SBP. Reserved in case of - * other data_source. - */ + + /** A unique identifier of the sending hardware. For v1.0, set to the 2 + * least significant bytes of the device serial number, valid only if + * data_source is NDB_DS_SBP. Reserved in case of other data_source. */ public int original_sender; + - public MsgNdbEvent(int sender) { - super(sender, TYPE); - } - - public MsgNdbEvent() { - super(TYPE); - } - - public MsgNdbEvent(SBPMessage msg) throws SBPBinaryException { + public MsgNdbEvent (int sender) { super(sender, TYPE); } + public MsgNdbEvent () { super(TYPE); } + public MsgNdbEvent (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNdbEvent, expected 1024, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNdbEvent, expected 1024, actual " + msg.type); } @Override @@ -92,7 +88,7 @@ protected void parse(Parser parser) throws SBPBinaryException { data_source = parser.getU8(); object_sid = new GnssSignal().parse(parser); src_sid = new GnssSignal().parse(parser); - original_sender = parser.getU16(); + original_sender = parser.getU16(); } @Override @@ -104,7 +100,7 @@ protected void build(Builder builder) { builder.putU8(data_source); object_sid.build(builder); src_sid.build(builder); - builder.putU16(original_sender); + builder.putU16(original_sender); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/AlmanacCommonContent.java b/java/src/com/swiftnav/sbp/observation/AlmanacCommonContent.java index b587603408..8cbbf0d5d6 100644 --- a/java/src/com/swiftnav/sbp/observation/AlmanacCommonContent.java +++ b/java/src/com/swiftnav/sbp/observation/AlmanacCommonContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,49 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class AlmanacCommonContent extends SBPStruct { - + /** GNSS signal identifier */ public GnssSignal sid; - + /** Reference time of almanac */ public GPSTimeSec toa; - + /** User Range Accuracy */ public double ura; - + /** Curve fit interval */ public long fit_interval; - + /** Status of almanac, 1 = valid, 0 = invalid */ public int valid; - - /** - * Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-GPS-200H Table - * 20-VII: NAV Data Health Indications. - bits 0-4: Signal health status. See IS-GPS-200H Table - * 20-VIII. Codes for Health of SV Signal Components. - * - *

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): - bit 0: C(n), - * "unhealthy" flag that is transmitted within non-immediate data and indicates overall - * constellation status at the moment of almanac uploading. '0' indicates malfunction of - * n-satellite. '1' indicates that n-satellite is operational. - bit 1: Bn(ln), '0' indicates - * the satellite is operational and suitable for navigation. - */ + + /** Satellite health status for GPS: + * - bits 5-7: NAV data health status. See IS-GPS-200H + * Table 20-VII: NAV Data Health Indications. + * - bits 0-4: Signal health status. See IS-GPS-200H + * Table 20-VIII. Codes for Health of SV Signal + * Components. + * + * Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): + * - bit 0: C(n), "unhealthy" flag that is transmitted within + * non-immediate data and indicates overall constellation status + * at the moment of almanac uploading. + * '0' indicates malfunction of n-satellite. + * '1' indicates that n-satellite is operational. + * - bit 1: Bn(ln), '0' indicates the satellite is operational + * and suitable for navigation. */ public int health_bits; + - public AlmanacCommonContent() {} + public AlmanacCommonContent () {} @Override public AlmanacCommonContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/AlmanacCommonContentDep.java b/java/src/com/swiftnav/sbp/observation/AlmanacCommonContentDep.java index 694572c525..6d087bec4d 100644 --- a/java/src/com/swiftnav/sbp/observation/AlmanacCommonContentDep.java +++ b/java/src/com/swiftnav/sbp/observation/AlmanacCommonContentDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,49 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class AlmanacCommonContentDep extends SBPStruct { - + /** GNSS signal identifier */ public GnssSignalDep sid; - + /** Reference time of almanac */ public GPSTimeSec toa; - + /** User Range Accuracy */ public double ura; - + /** Curve fit interval */ public long fit_interval; - + /** Status of almanac, 1 = valid, 0 = invalid */ public int valid; - - /** - * Satellite health status for GPS: - bits 5-7: NAV data health status. See IS-GPS-200H Table - * 20-VII: NAV Data Health Indications. - bits 0-4: Signal health status. See IS-GPS-200H Table - * 20-VIII. Codes for Health of SV Signal Components. - * - *

Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): - bit 0: C(n), - * "unhealthy" flag that is transmitted within non-immediate data and indicates overall - * constellation status at the moment of almanac uploading. '0' indicates malfunction of - * n-satellite. '1' indicates that n-satellite is operational. - bit 1: Bn(ln), '0' indicates - * the satellite is operational and suitable for navigation. - */ + + /** Satellite health status for GPS: + * - bits 5-7: NAV data health status. See IS-GPS-200H + * Table 20-VII: NAV Data Health Indications. + * - bits 0-4: Signal health status. See IS-GPS-200H + * Table 20-VIII. Codes for Health of SV Signal + * Components. + * + * Satellite health status for GLO (see GLO ICD 5.1 table 5.1 for details): + * - bit 0: C(n), "unhealthy" flag that is transmitted within + * non-immediate data and indicates overall constellation status + * at the moment of almanac uploading. + * '0' indicates malfunction of n-satellite. + * '1' indicates that n-satellite is operational. + * - bit 1: Bn(ln), '0' indicates the satellite is operational + * and suitable for navigation. */ public int health_bits; + - public AlmanacCommonContentDep() {} + public AlmanacCommonContentDep () {} @Override public AlmanacCommonContentDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/CarrierPhaseDepA.java b/java/src/com/swiftnav/sbp/observation/CarrierPhaseDepA.java index db4b7c6c8e..ef97b26e0e 100644 --- a/java/src/com/swiftnav/sbp/observation/CarrierPhaseDepA.java +++ b/java/src/com/swiftnav/sbp/observation/CarrierPhaseDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class CarrierPhaseDepA extends SBPStruct { - + /** Carrier phase whole cycles */ public int i; - + /** Carrier phase fractional part */ public int f; + - public CarrierPhaseDepA() {} + public CarrierPhaseDepA () {} @Override public CarrierPhaseDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/Doppler.java b/java/src/com/swiftnav/sbp/observation/Doppler.java index 22c7b9addc..71501bc289 100644 --- a/java/src/com/swiftnav/sbp/observation/Doppler.java +++ b/java/src/com/swiftnav/sbp/observation/Doppler.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class Doppler extends SBPStruct { - + /** Doppler whole Hz */ public int i; - + /** Doppler fractional part */ public int f; + - public Doppler() {} + public Doppler () {} @Override public Doppler parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContent.java b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContent.java index 74f882e0ec..ecb91b743b 100644 --- a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContent.java +++ b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,47 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class EphemerisCommonContent extends SBPStruct { - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - + /** Time of Ephemerides */ public GPSTimeSec toe; - + /** User Range Accuracy */ public float ura; - + /** Curve fit interval */ public long fit_interval; - + /** Status of ephemeris, 1 = valid, 0 = invalid */ public int valid; - - /** - * Satellite health status. GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 SBAS: 0 = valid, non-zero = - * invalid GLO: 0 = valid, non-zero = invalid - */ + + /** Satellite health status. + * GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 + * SBAS: 0 = valid, non-zero = invalid + * GLO: 0 = valid, non-zero = invalid */ public int health_bits; + - public EphemerisCommonContent() {} + public EphemerisCommonContent () {} @Override public EphemerisCommonContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepA.java b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepA.java index af8f5baf46..e08b4e930d 100644 --- a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepA.java +++ b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,47 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class EphemerisCommonContentDepA extends SBPStruct { - + /** GNSS signal identifier */ public GnssSignalDep sid; - + /** Time of Ephemerides */ public GPSTimeDep toe; - + /** User Range Accuracy */ public double ura; - + /** Curve fit interval */ public long fit_interval; - + /** Status of ephemeris, 1 = valid, 0 = invalid */ public int valid; - - /** - * Satellite health status. GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 SBAS: 0 = valid, non-zero = - * invalid GLO: 0 = valid, non-zero = invalid - */ + + /** Satellite health status. + * GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 + * SBAS: 0 = valid, non-zero = invalid + * GLO: 0 = valid, non-zero = invalid */ public int health_bits; + - public EphemerisCommonContentDepA() {} + public EphemerisCommonContentDepA () {} @Override public EphemerisCommonContentDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepB.java b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepB.java index a3ce051a4f..573e6d1dff 100644 --- a/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepB.java +++ b/java/src/com/swiftnav/sbp/observation/EphemerisCommonContentDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,46 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class EphemerisCommonContentDepB extends SBPStruct { - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - + /** Time of Ephemerides */ public GPSTimeSec toe; - + /** User Range Accuracy */ public double ura; - + /** Curve fit interval */ public long fit_interval; - + /** Status of ephemeris, 1 = valid, 0 = invalid */ public int valid; - - /** - * Satellite health status. GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 Others: 0 = valid, non-zero = - * invalid - */ + + /** Satellite health status. + * GPS: ICD-GPS-200, chapter 20.3.3.3.1.4 + * Others: 0 = valid, non-zero = invalid */ public int health_bits; + - public EphemerisCommonContentDepB() {} + public EphemerisCommonContentDepB () {} @Override public EphemerisCommonContentDepB parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/GnssCapb.java b/java/src/com/swiftnav/sbp/observation/GnssCapb.java index e7cacfdbf3..88583a0318 100644 --- a/java/src/com/swiftnav/sbp/observation/GnssCapb.java +++ b/java/src/com/swiftnav/sbp/observation/GnssCapb.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,73 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; public class GnssCapb extends SBPStruct { - + /** GPS SV active mask */ public BigInteger gps_active; - + /** GPS L2C active mask */ public BigInteger gps_l2c; - + /** GPS L5 active mask */ public BigInteger gps_l5; - + /** GLO active mask */ public long glo_active; - + /** GLO L2OF active mask */ public long glo_l2of; - + /** GLO L3 active mask */ public long glo_l3; - - /** - * SBAS active mask (PRNs 120..158, AN 7/62.2.2-18/18 Table B-23, - * https://www.caat.or.th/wp-content/uploads/2018/03/SL-2018.18.E-1.pdf) - */ + + /** SBAS active mask (PRNs 120..158, AN 7/62.2.2-18/18 Table B-23, + * https://www.caat.or.th/wp-content/uploads/2018/03/SL-2018.18.E-1.pdf) */ public BigInteger sbas_active; - - /** - * SBAS L5 active mask (PRNs 120..158, AN 7/62.2.2-18/18 Table B-23, - * https://www.caat.or.th/wp-content/uploads/2018/03/SL-2018.18.E-1.pdf) - */ + + /** SBAS L5 active mask (PRNs 120..158, AN 7/62.2.2-18/18 Table B-23, + * https://www.caat.or.th/wp-content/uploads/2018/03/SL-2018.18.E-1.pdf) */ public BigInteger sbas_l5; - + /** BDS active mask */ public BigInteger bds_active; - + /** BDS D2NAV active mask */ public BigInteger bds_d2nav; - + /** BDS B2 active mask */ public BigInteger bds_b2; - + /** BDS B2A active mask */ public BigInteger bds_b2a; - + /** QZSS active mask */ public long qzss_active; - + /** GAL active mask */ public BigInteger gal_active; - + /** GAL E5 active mask */ public BigInteger gal_e5; + - public GnssCapb() {} + public GnssCapb () {} @Override public GnssCapb parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPS.java b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPS.java index 3a7bd181f4..8306376baa 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPS.java +++ b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPS.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,74 +9,75 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ALMANAC_GPS (0x0072). +/** SBP class for message MSG_ALMANAC_GPS (0x0072). * - *

You can have MSG_ALMANAC_GPS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ALMANAC_GPS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The almanac message returns a set of satellite orbit parameters. Almanac data is not very - * precise and is considered valid for up to several months. Please see the Navstar GPS Space - * Segment/Navigation user interfaces (ICD- GPS-200, Chapter 20.3.3.5.1.2 Almanac Data) for more - * details. - */ + * The almanac message returns a set of satellite orbit parameters. Almanac + * data is not very precise and is considered valid for up to several months. + * Please see the Navstar GPS Space Segment/Navigation user interfaces (ICD- + * GPS-200, Chapter 20.3.3.5.1.2 Almanac Data) for more details. */ + public class MsgAlmanacGPS extends SBPMessage { public static final int TYPE = 0x0072; + /** Values common for all almanac types */ public AlmanacCommonContent common; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; + - public MsgAlmanacGPS(int sender) { - super(sender, TYPE); - } - - public MsgAlmanacGPS() { - super(TYPE); - } - - public MsgAlmanacGPS(SBPMessage msg) throws SBPBinaryException { + public MsgAlmanacGPS (int sender) { super(sender, TYPE); } + public MsgAlmanacGPS () { super(TYPE); } + public MsgAlmanacGPS (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAlmanacGPS, expected 114, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAlmanacGPS, expected 114, actual " + msg.type); } @Override @@ -90,7 +92,7 @@ protected void parse(Parser parser) throws SBPBinaryException { w = parser.getDouble(); inc = parser.getDouble(); af0 = parser.getDouble(); - af1 = parser.getDouble(); + af1 = parser.getDouble(); } @Override @@ -104,7 +106,7 @@ protected void build(Builder builder) { builder.putDouble(w); builder.putDouble(inc); builder.putDouble(af0); - builder.putDouble(af1); + builder.putDouble(af1); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPSDep.java b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPSDep.java index 197e2d35db..57bc4b375e 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPSDep.java +++ b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGPSDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,72 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ALMANAC_GPS_DEP (0x0070). +/** SBP class for message MSG_ALMANAC_GPS_DEP (0x0070). * - *

You can have MSG_ALMANAC_GPS_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ALMANAC_GPS_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAlmanacGPSDep extends SBPMessage { public static final int TYPE = 0x0070; + /** Values common for all almanac types */ public AlmanacCommonContentDep common; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; + - public MsgAlmanacGPSDep(int sender) { - super(sender, TYPE); - } - - public MsgAlmanacGPSDep() { - super(TYPE); - } - - public MsgAlmanacGPSDep(SBPMessage msg) throws SBPBinaryException { + public MsgAlmanacGPSDep (int sender) { super(sender, TYPE); } + public MsgAlmanacGPSDep () { super(TYPE); } + public MsgAlmanacGPSDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAlmanacGPSDep, expected 112, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAlmanacGPSDep, expected 112, actual " + msg.type); } @Override @@ -87,7 +89,7 @@ protected void parse(Parser parser) throws SBPBinaryException { w = parser.getDouble(); inc = parser.getDouble(); af0 = parser.getDouble(); - af1 = parser.getDouble(); + af1 = parser.getDouble(); } @Override @@ -101,7 +103,7 @@ protected void build(Builder builder) { builder.putDouble(w); builder.putDouble(inc); builder.putDouble(af0); - builder.putDouble(af1); + builder.putDouble(af1); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGlo.java b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGlo.java index 0e76876ab1..f0f2fdae06 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGlo.java +++ b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGlo.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,67 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ALMANAC_GLO (0x0073). +/** SBP class for message MSG_ALMANAC_GLO (0x0073). * - *

You can have MSG_ALMANAC_GLO inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ALMANAC_GLO inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The almanac message returns a set of satellite orbit parameters. Almanac data is not very - * precise and is considered valid for up to several months. Please see the GLO ICD 5.1 "Chapter 4.5 - * Non-immediate information and almanac" for details. - */ + * The almanac message returns a set of satellite orbit parameters. Almanac + * data is not very precise and is considered valid for up to several months. + * Please see the GLO ICD 5.1 "Chapter 4.5 Non-immediate information and + * almanac" for details. */ + public class MsgAlmanacGlo extends SBPMessage { public static final int TYPE = 0x0073; + /** Values common for all almanac types */ public AlmanacCommonContent common; - - /** Longitude of the first ascending node of the orbit in PZ-90.02 coordinate system */ + + /** Longitude of the first ascending node of the orbit in PZ-90.02 + * coordinate system */ public double lambda_na; - + /** Time of the first ascending node passage */ public double t_lambda_na; - + /** Value of inclination at instant of t_lambda */ public double i; - + /** Value of Draconian period at instant of t_lambda */ public double t; - + /** Rate of change of the Draconian period */ public double t_dot; - + /** Eccentricity at instant of t_lambda */ public double epsilon; - + /** Argument of perigee at instant of t_lambda */ public double omega; + - public MsgAlmanacGlo(int sender) { - super(sender, TYPE); - } - - public MsgAlmanacGlo() { - super(TYPE); - } - - public MsgAlmanacGlo(SBPMessage msg) throws SBPBinaryException { + public MsgAlmanacGlo (int sender) { super(sender, TYPE); } + public MsgAlmanacGlo () { super(TYPE); } + public MsgAlmanacGlo (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAlmanacGlo, expected 115, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAlmanacGlo, expected 115, actual " + msg.type); } @Override @@ -81,7 +85,7 @@ protected void parse(Parser parser) throws SBPBinaryException { t = parser.getDouble(); t_dot = parser.getDouble(); epsilon = parser.getDouble(); - omega = parser.getDouble(); + omega = parser.getDouble(); } @Override @@ -93,7 +97,7 @@ protected void build(Builder builder) { builder.putDouble(t); builder.putDouble(t_dot); builder.putDouble(epsilon); - builder.putDouble(omega); + builder.putDouble(omega); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGloDep.java b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGloDep.java index 8575632a13..c7c55f0fed 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgAlmanacGloDep.java +++ b/java/src/com/swiftnav/sbp/observation/MsgAlmanacGloDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ALMANAC_GLO_DEP (0x0071). +/** SBP class for message MSG_ALMANAC_GLO_DEP (0x0071). * - *

You can have MSG_ALMANAC_GLO_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ALMANAC_GLO_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgAlmanacGloDep extends SBPMessage { public static final int TYPE = 0x0071; + /** Values common for all almanac types */ public AlmanacCommonContentDep common; - - /** Longitude of the first ascending node of the orbit in PZ-90.02 coordinate system */ + + /** Longitude of the first ascending node of the orbit in PZ-90.02 + * coordinate system */ public double lambda_na; - + /** Time of the first ascending node passage */ public double t_lambda_na; - + /** Value of inclination at instant of t_lambda */ public double i; - + /** Value of Draconian period at instant of t_lambda */ public double t; - + /** Rate of change of the Draconian period */ public double t_dot; - + /** Eccentricity at instant of t_lambda */ public double epsilon; - + /** Argument of perigee at instant of t_lambda */ public double omega; + - public MsgAlmanacGloDep(int sender) { - super(sender, TYPE); - } - - public MsgAlmanacGloDep() { - super(TYPE); - } - - public MsgAlmanacGloDep(SBPMessage msg) throws SBPBinaryException { + public MsgAlmanacGloDep (int sender) { super(sender, TYPE); } + public MsgAlmanacGloDep () { super(TYPE); } + public MsgAlmanacGloDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAlmanacGloDep, expected 113, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAlmanacGloDep, expected 113, actual " + msg.type); } @Override @@ -79,7 +82,7 @@ protected void parse(Parser parser) throws SBPBinaryException { t = parser.getDouble(); t_dot = parser.getDouble(); epsilon = parser.getDouble(); - omega = parser.getDouble(); + omega = parser.getDouble(); } @Override @@ -91,7 +94,7 @@ protected void build(Builder builder) { builder.putDouble(t); builder.putDouble(t_dot); builder.putDouble(epsilon); - builder.putDouble(omega); + builder.putDouble(omega); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgBasePosECEF.java b/java/src/com/swiftnav/sbp/observation/MsgBasePosECEF.java index 3e1a6f93b9..912feb43cb 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgBasePosECEF.java +++ b/java/src/com/swiftnav/sbp/observation/MsgBasePosECEF.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_BASE_POS_ECEF (0x0048). + +/** SBP class for message MSG_BASE_POS_ECEF (0x0048). * - *

You can have MSG_BASE_POS_ECEF inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_BASE_POS_ECEF inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The base station position message is the position reported by the base station itself in - * absolute Earth Centered Earth Fixed coordinates. It is used for pseudo-absolute RTK positioning, - * and is required to be a high- accuracy surveyed location of the base station. Any error here will - * result in an error in the pseudo-absolute position output. - */ + * The base station position message is the position reported by the base + * station itself in absolute Earth Centered Earth Fixed coordinates. It is + * used for pseudo-absolute RTK positioning, and is required to be a high- + * accuracy surveyed location of the base station. Any error here will result + * in an error in the pseudo-absolute position output. */ + public class MsgBasePosECEF extends SBPMessage { public static final int TYPE = 0x0048; + /** ECEF X coordinate */ public double x; - + /** ECEF Y coordinate */ public double y; - + /** ECEF Z coordinate */ public double z; + - public MsgBasePosECEF(int sender) { - super(sender, TYPE); - } - - public MsgBasePosECEF() { - super(TYPE); - } - - public MsgBasePosECEF(SBPMessage msg) throws SBPBinaryException { + public MsgBasePosECEF (int sender) { super(sender, TYPE); } + public MsgBasePosECEF () { super(TYPE); } + public MsgBasePosECEF (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBasePosECEF, expected 72, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBasePosECEF, expected 72, actual " + msg.type); } @Override @@ -62,14 +65,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ x = parser.getDouble(); y = parser.getDouble(); - z = parser.getDouble(); + z = parser.getDouble(); } @Override protected void build(Builder builder) { builder.putDouble(x); builder.putDouble(y); - builder.putDouble(z); + builder.putDouble(z); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgBasePosLLH.java b/java/src/com/swiftnav/sbp/observation/MsgBasePosLLH.java index dfcacee3ed..384177bd1c 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgBasePosLLH.java +++ b/java/src/com/swiftnav/sbp/observation/MsgBasePosLLH.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_BASE_POS_LLH (0x0044). + +/** SBP class for message MSG_BASE_POS_LLH (0x0044). * - *

You can have MSG_BASE_POS_LLH inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_BASE_POS_LLH inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The base station position message is the position reported by the base station itself. It is - * used for pseudo-absolute RTK positioning, and is required to be a high-accuracy surveyed location - * of the base station. Any error here will result in an error in the pseudo-absolute position - * output. - */ + * The base station position message is the position reported by the base + * station itself. It is used for pseudo-absolute RTK positioning, and is + * required to be a high-accuracy surveyed location of the base station. Any + * error here will result in an error in the pseudo-absolute position output. */ + public class MsgBasePosLLH extends SBPMessage { public static final int TYPE = 0x0044; + /** Latitude */ public double lat; - + /** Longitude */ public double lon; - + /** Height */ public double height; + - public MsgBasePosLLH(int sender) { - super(sender, TYPE); - } - - public MsgBasePosLLH() { - super(TYPE); - } - - public MsgBasePosLLH(SBPMessage msg) throws SBPBinaryException { + public MsgBasePosLLH (int sender) { super(sender, TYPE); } + public MsgBasePosLLH () { super(TYPE); } + public MsgBasePosLLH (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBasePosLLH, expected 68, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBasePosLLH, expected 68, actual " + msg.type); } @Override @@ -62,14 +64,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ lat = parser.getDouble(); lon = parser.getDouble(); - height = parser.getDouble(); + height = parser.getDouble(); } @Override protected void build(Builder builder) { builder.putDouble(lat); builder.putDouble(lon); - builder.putDouble(height); + builder.putDouble(height); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisBds.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisBds.java index 3cb15c6d98..e592b39563 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisBds.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisBds.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,121 +9,125 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_BDS (0x0089). +/** SBP class for message MSG_EPHEMERIS_BDS (0x0089). * - *

You can have MSG_EPHEMERIS_BDS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_BDS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * BDS satellite position, velocity, and clock offset. Please see the BeiDou Navigation Satellite - * System SIS-ICD Version 2.1, Table 5-9 for more details. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate BDS satellite position, velocity, and clock offset. + * Please see the BeiDou Navigation Satellite System SIS-ICD Version 2.1, + * Table 5-9 for more details. */ + public class MsgEphemerisBds extends SBPMessage { public static final int TYPE = 0x0089; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** Group delay differential for B1 */ public float tgd1; - + /** Group delay differential for B2 */ public float tgd2; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public float c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public float c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public float c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public float c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public float c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public float c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public float af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public float af2; - + /** Clock reference */ public GPSTimeSec toc; - - /** - * Issue of ephemeris data Calculated from the navigation data parameter t_oe per RTCM/CSNO - * recommendation: IODE = mod (t_oe / 720, 240) - */ + + /** Issue of ephemeris data + * Calculated from the navigation data parameter t_oe per RTCM/CSNO + * recommendation: IODE = mod (t_oe / 720, 240) */ public int iode; - - /** - * Issue of clock data Calculated from the navigation data parameter t_oe per RTCM/CSNO - * recommendation: IODE = mod (t_oc / 720, 240) - */ + + /** Issue of clock data + * Calculated from the navigation data parameter t_oe per RTCM/CSNO + * recommendation: IODE = mod (t_oc / 720, 240) */ public int iodc; + - public MsgEphemerisBds(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisBds() { - super(TYPE); - } - - public MsgEphemerisBds(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisBds (int sender) { super(sender, TYPE); } + public MsgEphemerisBds () { super(TYPE); } + public MsgEphemerisBds (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisBds, expected 137, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisBds, expected 137, actual " + msg.type); } @Override @@ -151,7 +156,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getFloat(); toc = new GPSTimeSec().parse(parser); iode = parser.getU8(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -179,7 +184,7 @@ protected void build(Builder builder) { builder.putFloat(af2); toc.build(builder); builder.putU8(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepA.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepA.java index e2dc74d424..f051292e06 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,119 +9,124 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_DEP_A (0x001A). +/** SBP class for message MSG_EPHEMERIS_DEP_A (0x001A). * - *

You can have MSG_EPHEMERIS_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisDepA extends SBPMessage { public static final int TYPE = 0x001A; + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Time of week */ public double toe_tow; - + /** Week number */ public int toe_wn; - + /** Clock reference time of week */ public double toc_tow; - + /** Clock reference week number */ public int toc_wn; - + /** Is valid? */ public int valid; - + /** Satellite is healthy? */ public int healthy; - + /** PRN being tracked */ public int prn; + - public MsgEphemerisDepA(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisDepA() { - super(TYPE); - } - - public MsgEphemerisDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisDepA (int sender) { super(sender, TYPE); } + public MsgEphemerisDepA () { super(TYPE); } + public MsgEphemerisDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisDepA, expected 26, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisDepA, expected 26, actual " + msg.type); } @Override @@ -151,7 +157,7 @@ protected void parse(Parser parser) throws SBPBinaryException { toc_wn = parser.getU16(); valid = parser.getU8(); healthy = parser.getU8(); - prn = parser.getU8(); + prn = parser.getU8(); } @Override @@ -181,7 +187,7 @@ protected void build(Builder builder) { builder.putU16(toc_wn); builder.putU8(valid); builder.putU8(healthy); - builder.putU8(prn); + builder.putU8(prn); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepB.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepB.java index e871c6ecb7..eabad8dcda 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepB.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,122 +9,127 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_DEP_B (0x0046). +/** SBP class for message MSG_EPHEMERIS_DEP_B (0x0046). * - *

You can have MSG_EPHEMERIS_DEP_B inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisDepB extends SBPMessage { public static final int TYPE = 0x0046; + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Time of week */ public double toe_tow; - + /** Week number */ public int toe_wn; - + /** Clock reference time of week */ public double toc_tow; - + /** Clock reference week number */ public int toc_wn; - + /** Is valid? */ public int valid; - + /** Satellite is healthy? */ public int healthy; - + /** PRN being tracked */ public int prn; - + /** Issue of ephemeris data */ public int iode; + - public MsgEphemerisDepB(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisDepB() { - super(TYPE); - } - - public MsgEphemerisDepB(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisDepB (int sender) { super(sender, TYPE); } + public MsgEphemerisDepB () { super(TYPE); } + public MsgEphemerisDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisDepB, expected 70, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisDepB, expected 70, actual " + msg.type); } @Override @@ -155,7 +161,7 @@ protected void parse(Parser parser) throws SBPBinaryException { valid = parser.getU8(); healthy = parser.getU8(); prn = parser.getU8(); - iode = parser.getU8(); + iode = parser.getU8(); } @Override @@ -186,7 +192,7 @@ protected void build(Builder builder) { builder.putU8(valid); builder.putU8(healthy); builder.putU8(prn); - builder.putU8(iode); + builder.putU8(iode); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepC.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepC.java index 6c4003a806..f9d2899329 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepC.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,128 +9,133 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_DEP_C (0x0047). +/** SBP class for message MSG_EPHEMERIS_DEP_C (0x0047). * - *

You can have MSG_EPHEMERIS_DEP_C inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_DEP_C inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisDepC extends SBPMessage { public static final int TYPE = 0x0047; + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Time of week */ public double toe_tow; - + /** Week number */ public int toe_wn; - + /** Clock reference time of week */ public double toc_tow; - + /** Clock reference week number */ public int toc_wn; - + /** Is valid? */ public int valid; - + /** Satellite is healthy? */ public int healthy; - + /** GNSS signal identifier */ public GnssSignalDep sid; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; - + /** Reserved field */ public long reserved; + - public MsgEphemerisDepC(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisDepC() { - super(TYPE); - } - - public MsgEphemerisDepC(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisDepC (int sender) { super(sender, TYPE); } + public MsgEphemerisDepC () { super(TYPE); } + public MsgEphemerisDepC (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisDepC, expected 71, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisDepC, expected 71, actual " + msg.type); } @Override @@ -163,7 +169,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sid = new GnssSignalDep().parse(parser); iode = parser.getU8(); iodc = parser.getU16(); - reserved = parser.getU32(); + reserved = parser.getU32(); } @Override @@ -196,7 +202,7 @@ protected void build(Builder builder) { sid.build(builder); builder.putU8(iode); builder.putU16(iodc); - builder.putU32(reserved); + builder.putU32(reserved); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepD.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepD.java index a0815238e5..553993158f 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepD.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisDepD.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,128 +9,133 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_DEP_D (0x0080). +/** SBP class for message MSG_EPHEMERIS_DEP_D (0x0080). * - *

You can have MSG_EPHEMERIS_DEP_D inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_DEP_D inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisDepD extends SBPMessage { public static final int TYPE = 0x0080; + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Time of week */ public double toe_tow; - + /** Week number */ public int toe_wn; - + /** Clock reference time of week */ public double toc_tow; - + /** Clock reference week number */ public int toc_wn; - + /** Is valid? */ public int valid; - + /** Satellite is healthy? */ public int healthy; - + /** GNSS signal identifier */ public GnssSignalDep sid; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; - + /** Reserved field */ public long reserved; + - public MsgEphemerisDepD(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisDepD() { - super(TYPE); - } - - public MsgEphemerisDepD(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisDepD (int sender) { super(sender, TYPE); } + public MsgEphemerisDepD () { super(TYPE); } + public MsgEphemerisDepD (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisDepD, expected 128, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisDepD, expected 128, actual " + msg.type); } @Override @@ -163,7 +169,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sid = new GnssSignalDep().parse(parser); iode = parser.getU8(); iodc = parser.getU16(); - reserved = parser.getU32(); + reserved = parser.getU32(); } @Override @@ -196,7 +202,7 @@ protected void build(Builder builder) { sid.build(builder); builder.putU8(iode); builder.putU16(iodc); - builder.putU32(reserved); + builder.putU32(reserved); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPS.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPS.java index 37ecd4754c..0dcb1ca7e7 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPS.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPS.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,112 +9,118 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GPS (0x008A). +/** SBP class for message MSG_EPHEMERIS_GPS (0x008A). * - *

You can have MSG_EPHEMERIS_GPS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GPS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * GPS satellite position, velocity, and clock offset. Please see the Navstar GPS Space - * Segment/Navigation user interfaces (ICD- GPS-200, Table 20-III) for more details. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate GPS satellite position, velocity, and clock offset. + * Please see the Navstar GPS Space Segment/Navigation user interfaces (ICD- + * GPS-200, Table 20-III) for more details. */ + public class MsgEphemerisGPS extends SBPMessage { public static final int TYPE = 0x008A; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** Group delay differential between L1 and L2 */ public float tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public float c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public float c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public float c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public float c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public float c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public float c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public float af0; - + /** Polynomial clock correction coefficient (clock drift) */ public float af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public float af2; - + /** Clock reference */ public GPSTimeSec toc; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; + - public MsgEphemerisGPS(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGPS() { - super(TYPE); - } - - public MsgEphemerisGPS(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGPS (int sender) { super(sender, TYPE); } + public MsgEphemerisGPS () { super(TYPE); } + public MsgEphemerisGPS (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGPS, expected 138, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGPS, expected 138, actual " + msg.type); } @Override @@ -141,7 +148,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getFloat(); toc = new GPSTimeSec().parse(parser); iode = parser.getU8(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -168,7 +175,7 @@ protected void build(Builder builder) { builder.putFloat(af2); toc.build(builder); builder.putU8(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepE.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepE.java index 9a356623e2..3db369cc3a 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepE.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepE.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,110 +9,115 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GPS_DEP_E (0x0081). +/** SBP class for message MSG_EPHEMERIS_GPS_DEP_E (0x0081). * - *

You can have MSG_EPHEMERIS_GPS_DEP_E inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GPS_DEP_E inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisGPSDepE extends SBPMessage { public static final int TYPE = 0x0081; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepA common; - + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Clock reference */ public GPSTimeDep toc; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; + - public MsgEphemerisGPSDepE(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGPSDepE() { - super(TYPE); - } - - public MsgEphemerisGPSDepE(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGPSDepE (int sender) { super(sender, TYPE); } + public MsgEphemerisGPSDepE () { super(TYPE); } + public MsgEphemerisGPSDepE (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGPSDepE, expected 129, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGPSDepE, expected 129, actual " + msg.type); } @Override @@ -139,7 +145,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getDouble(); toc = new GPSTimeDep().parse(parser); iode = parser.getU8(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -166,7 +172,7 @@ protected void build(Builder builder) { builder.putDouble(af2); toc.build(builder); builder.putU8(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepF.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepF.java index f5797e63a3..e256eb5b70 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepF.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGPSDepF.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,110 +9,115 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GPS_DEP_F (0x0086). +/** SBP class for message MSG_EPHEMERIS_GPS_DEP_F (0x0086). * - *

You can have MSG_EPHEMERIS_GPS_DEP_F inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GPS_DEP_F inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisGPSDepF extends SBPMessage { public static final int TYPE = 0x0086; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepB common; - + /** Group delay differential between L1 and L2 */ public double tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public double c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public double c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public double c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public double c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public double c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public double c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public double af2; - + /** Clock reference */ public GPSTimeSec toc; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; + - public MsgEphemerisGPSDepF(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGPSDepF() { - super(TYPE); - } - - public MsgEphemerisGPSDepF(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGPSDepF (int sender) { super(sender, TYPE); } + public MsgEphemerisGPSDepF () { super(TYPE); } + public MsgEphemerisGPSDepF (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGPSDepF, expected 134, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGPSDepF, expected 134, actual " + msg.type); } @Override @@ -139,7 +145,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getDouble(); toc = new GPSTimeSec().parse(parser); iode = parser.getU8(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -166,7 +172,7 @@ protected void build(Builder builder) { builder.putDouble(af2); toc.build(builder); builder.putU8(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGal.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGal.java index c3bb171dc7..f4700d2d02 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGal.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGal.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,118 +9,124 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GAL (0x008D). +/** SBP class for message MSG_EPHEMERIS_GAL (0x008D). * - *

You can have MSG_EPHEMERIS_GAL inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GAL inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * Galileo satellite position, velocity, and clock offset. Please see the Signal In Space ICD OS SIS - * ICD, Issue 1.3, December 2016 for more details. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate Galileo satellite position, velocity, and clock offset. + * Please see the Signal In Space ICD OS SIS ICD, Issue 1.3, December 2016 for + * more details. */ + public class MsgEphemerisGal extends SBPMessage { public static final int TYPE = 0x008D; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** E1-E5a Broadcast Group Delay */ public float bgd_e1e5a; - + /** E1-E5b Broadcast Group Delay */ public float bgd_e1e5b; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public float c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public float c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public float c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public float c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public float c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public float c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public float af2; - + /** Clock reference */ public GPSTimeSec toc; - + /** Issue of data (IODnav) */ public int iode; - + /** Issue of data (IODnav). Always equal to iode */ public int iodc; - + /** 0=I/NAV, 1=F/NAV */ public int source; + - public MsgEphemerisGal(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGal() { - super(TYPE); - } - - public MsgEphemerisGal(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGal (int sender) { super(sender, TYPE); } + public MsgEphemerisGal () { super(TYPE); } + public MsgEphemerisGal (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGal, expected 141, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGal, expected 141, actual " + msg.type); } @Override @@ -149,7 +156,7 @@ protected void parse(Parser parser) throws SBPBinaryException { toc = new GPSTimeSec().parse(parser); iode = parser.getU16(); iodc = parser.getU16(); - source = parser.getU8(); + source = parser.getU8(); } @Override @@ -178,7 +185,7 @@ protected void build(Builder builder) { toc.build(builder); builder.putU16(iode); builder.putU16(iodc); - builder.putU8(source); + builder.putU8(source); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGalDepA.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGalDepA.java index 3d3cc6333a..93f9c84451 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGalDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGalDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,113 +9,118 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GAL_DEP_A (0x0095). +/** SBP class for message MSG_EPHEMERIS_GAL_DEP_A (0x0095). * - *

You can have MSG_EPHEMERIS_GAL_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GAL_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisGalDepA extends SBPMessage { public static final int TYPE = 0x0095; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** E1-E5a Broadcast Group Delay */ public float bgd_e1e5a; - + /** E1-E5b Broadcast Group Delay */ public float bgd_e1e5b; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public float c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public float c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public float c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public float c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public float c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public float c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public double af0; - + /** Polynomial clock correction coefficient (clock drift) */ public double af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public float af2; - + /** Clock reference */ public GPSTimeSec toc; - + /** Issue of data (IODnav) */ public int iode; - + /** Issue of data (IODnav). Always equal to iode */ public int iodc; + - public MsgEphemerisGalDepA(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGalDepA() { - super(TYPE); - } - - public MsgEphemerisGalDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGalDepA (int sender) { super(sender, TYPE); } + public MsgEphemerisGalDepA () { super(TYPE); } + public MsgEphemerisGalDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGalDepA, expected 149, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGalDepA, expected 149, actual " + msg.type); } @Override @@ -143,7 +149,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getFloat(); toc = new GPSTimeSec().parse(parser); iode = parser.getU16(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -171,7 +177,7 @@ protected void build(Builder builder) { builder.putFloat(af2); toc.build(builder); builder.putU16(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGlo.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGlo.java index 51cf98a6ab..c95d0a8d8f 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGlo.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGlo.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,71 +9,72 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_EPHEMERIS_GLO (0x008B). + +/** SBP class for message MSG_EPHEMERIS_GLO (0x008B). * - *

You can have MSG_EPHEMERIS_GLO inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GLO inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * GLO satellite position, velocity, and clock offset. Please see the GLO ICD 5.1 "Table 4.5 - * Characteristics of words of immediate information (ephemeris parameters)" for more details. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate GLO satellite position, velocity, and clock offset. + * Please see the GLO ICD 5.1 "Table 4.5 Characteristics of words of immediate + * information (ephemeris parameters)" for more details. */ + public class MsgEphemerisGlo extends SBPMessage { public static final int TYPE = 0x008B; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** Relative deviation of predicted carrier frequency from nominal */ public float gamma; - + /** Correction to the SV time */ public float tau; - + /** Equipment delay between L1 and L2 */ public float d_tau; - + /** Position of the SV at tb in PZ-90.02 coordinates system */ public double[] pos; - + /** Velocity vector of the SV at tb in PZ-90.02 coordinates system */ public double[] vel; - + /** Acceleration vector of the SV at tb in PZ-90.02 coordinates sys */ public float[] acc; - + /** Frequency slot. FCN+8 (that is [1..14]). 0 or 0xFF for invalid */ public int fcn; - + /** Issue of data. Equal to the 7 bits of the immediate data word t_b */ public int iod; + - public MsgEphemerisGlo(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGlo() { - super(TYPE); - } - - public MsgEphemerisGlo(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGlo (int sender) { super(sender, TYPE); } + public MsgEphemerisGlo () { super(TYPE); } + public MsgEphemerisGlo (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGlo, expected 139, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGlo, expected 139, actual " + msg.type); } @Override @@ -86,7 +88,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vel = parser.getArrayofDouble(3); acc = parser.getArrayofFloat(3); fcn = parser.getU8(); - iod = parser.getU8(); + iod = parser.getU8(); } @Override @@ -99,7 +101,7 @@ protected void build(Builder builder) { builder.putArrayofDouble(vel, 3); builder.putArrayofFloat(acc, 3); builder.putU8(fcn); - builder.putU8(iod); + builder.putU8(iod); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepA.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepA.java index c076ebb480..27f45cd572 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GLO_DEP_A (0x0083). +/** SBP class for message MSG_EPHEMERIS_GLO_DEP_A (0x0083). * - *

You can have MSG_EPHEMERIS_GLO_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GLO_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisGloDepA extends SBPMessage { public static final int TYPE = 0x0083; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepA common; - + /** Relative deviation of predicted carrier frequency from nominal */ public double gamma; - + /** Correction to the SV time */ public double tau; - + /** Position of the SV at tb in PZ-90.02 coordinates system */ public double[] pos; - + /** Velocity vector of the SV at tb in PZ-90.02 coordinates system */ public double[] vel; - + /** Acceleration vector of the SV at tb in PZ-90.02 coordinates sys */ public double[] acc; + - public MsgEphemerisGloDepA(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGloDepA() { - super(TYPE); - } - - public MsgEphemerisGloDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGloDepA (int sender) { super(sender, TYPE); } + public MsgEphemerisGloDepA () { super(TYPE); } + public MsgEphemerisGloDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGloDepA, expected 131, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGloDepA, expected 131, actual " + msg.type); } @Override @@ -72,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tau = parser.getDouble(); pos = parser.getArrayofDouble(3); vel = parser.getArrayofDouble(3); - acc = parser.getArrayofDouble(3); + acc = parser.getArrayofDouble(3); } @Override @@ -82,7 +83,7 @@ protected void build(Builder builder) { builder.putDouble(tau); builder.putArrayofDouble(pos, 3); builder.putArrayofDouble(vel, 3); - builder.putArrayofDouble(acc, 3); + builder.putArrayofDouble(acc, 3); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepB.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepB.java index 905219a1f8..7ce649dce4 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepB.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GLO_DEP_B (0x0085). +/** SBP class for message MSG_EPHEMERIS_GLO_DEP_B (0x0085). * - *

You can have MSG_EPHEMERIS_GLO_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GLO_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisGloDepB extends SBPMessage { public static final int TYPE = 0x0085; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepB common; - + /** Relative deviation of predicted carrier frequency from nominal */ public double gamma; - + /** Correction to the SV time */ public double tau; - + /** Position of the SV at tb in PZ-90.02 coordinates system */ public double[] pos; - + /** Velocity vector of the SV at tb in PZ-90.02 coordinates system */ public double[] vel; - + /** Acceleration vector of the SV at tb in PZ-90.02 coordinates sys */ public double[] acc; + - public MsgEphemerisGloDepB(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGloDepB() { - super(TYPE); - } - - public MsgEphemerisGloDepB(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGloDepB (int sender) { super(sender, TYPE); } + public MsgEphemerisGloDepB () { super(TYPE); } + public MsgEphemerisGloDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGloDepB, expected 133, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGloDepB, expected 133, actual " + msg.type); } @Override @@ -72,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tau = parser.getDouble(); pos = parser.getArrayofDouble(3); vel = parser.getArrayofDouble(3); - acc = parser.getArrayofDouble(3); + acc = parser.getArrayofDouble(3); } @Override @@ -82,7 +83,7 @@ protected void build(Builder builder) { builder.putDouble(tau); builder.putArrayofDouble(pos, 3); builder.putArrayofDouble(vel, 3); - builder.putArrayofDouble(acc, 3); + builder.putArrayofDouble(acc, 3); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepC.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepC.java index 7d8d7be189..9ce7836aae 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepC.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,68 +9,69 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_GLO_DEP_C (0x0087). +/** SBP class for message MSG_EPHEMERIS_GLO_DEP_C (0x0087). * - *

You can have MSG_EPHEMERIS_GLO_DEP_C inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GLO_DEP_C inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * GLO satellite position, velocity, and clock offset. Please see the GLO ICD 5.1 "Table 4.5 - * Characteristics of words of immediate information (ephemeris parameters)" for more details. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate GLO satellite position, velocity, and clock offset. + * Please see the GLO ICD 5.1 "Table 4.5 Characteristics of words of immediate + * information (ephemeris parameters)" for more details. */ + public class MsgEphemerisGloDepC extends SBPMessage { public static final int TYPE = 0x0087; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepB common; - + /** Relative deviation of predicted carrier frequency from nominal */ public double gamma; - + /** Correction to the SV time */ public double tau; - + /** Equipment delay between L1 and L2 */ public double d_tau; - + /** Position of the SV at tb in PZ-90.02 coordinates system */ public double[] pos; - + /** Velocity vector of the SV at tb in PZ-90.02 coordinates system */ public double[] vel; - + /** Acceleration vector of the SV at tb in PZ-90.02 coordinates sys */ public double[] acc; - + /** Frequency slot. FCN+8 (that is [1..14]). 0 or 0xFF for invalid */ public int fcn; + - public MsgEphemerisGloDepC(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGloDepC() { - super(TYPE); - } - - public MsgEphemerisGloDepC(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGloDepC (int sender) { super(sender, TYPE); } + public MsgEphemerisGloDepC () { super(TYPE); } + public MsgEphemerisGloDepC (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGloDepC, expected 135, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGloDepC, expected 135, actual " + msg.type); } @Override @@ -82,7 +84,7 @@ protected void parse(Parser parser) throws SBPBinaryException { pos = parser.getArrayofDouble(3); vel = parser.getArrayofDouble(3); acc = parser.getArrayofDouble(3); - fcn = parser.getU8(); + fcn = parser.getU8(); } @Override @@ -94,7 +96,7 @@ protected void build(Builder builder) { builder.putArrayofDouble(pos, 3); builder.putArrayofDouble(vel, 3); builder.putArrayofDouble(acc, 3); - builder.putU8(fcn); + builder.putU8(fcn); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepD.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepD.java index 1845375f49..7e1e029d14 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepD.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisGloDepD.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,70 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_EPHEMERIS_GLO_DEP_D (0x0088). + +/** SBP class for message MSG_EPHEMERIS_GLO_DEP_D (0x0088). * - *

You can have MSG_EPHEMERIS_GLO_DEP_D inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_GLO_DEP_D inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This observation message has been deprecated in favor of ephemeris message using floats for - * size reduction. - */ + * This observation message has been deprecated in favor of ephemeris message + * using floats for size reduction. */ + public class MsgEphemerisGloDepD extends SBPMessage { public static final int TYPE = 0x0088; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepB common; - + /** Relative deviation of predicted carrier frequency from nominal */ public double gamma; - + /** Correction to the SV time */ public double tau; - + /** Equipment delay between L1 and L2 */ public double d_tau; - + /** Position of the SV at tb in PZ-90.02 coordinates system */ public double[] pos; - + /** Velocity vector of the SV at tb in PZ-90.02 coordinates system */ public double[] vel; - + /** Acceleration vector of the SV at tb in PZ-90.02 coordinates sys */ public double[] acc; - + /** Frequency slot. FCN+8 (that is [1..14]). 0 or 0xFF for invalid */ public int fcn; - + /** Issue of data. Equal to the 7 bits of the immediate data word t_b */ public int iod; + - public MsgEphemerisGloDepD(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisGloDepD() { - super(TYPE); - } - - public MsgEphemerisGloDepD(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisGloDepD (int sender) { super(sender, TYPE); } + public MsgEphemerisGloDepD () { super(TYPE); } + public MsgEphemerisGloDepD (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisGloDepD, expected 136, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisGloDepD, expected 136, actual " + msg.type); } @Override @@ -85,7 +86,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vel = parser.getArrayofDouble(3); acc = parser.getArrayofDouble(3); fcn = parser.getU8(); - iod = parser.getU8(); + iod = parser.getU8(); } @Override @@ -98,7 +99,7 @@ protected void build(Builder builder) { builder.putArrayofDouble(vel, 3); builder.putArrayofDouble(acc, 3); builder.putU8(fcn); - builder.putU8(iod); + builder.putU8(iod); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisQzss.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisQzss.java index 1093573c7e..83b68c5a85 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisQzss.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisQzss.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,111 +9,116 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_QZSS (0x008E). +/** SBP class for message MSG_EPHEMERIS_QZSS (0x008E). * - *

You can have MSG_EPHEMERIS_QZSS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_QZSS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ephemeris message returns a set of satellite orbit parameters that is used to calculate - * QZSS satellite position, velocity, and clock offset. - */ + * The ephemeris message returns a set of satellite orbit parameters that is + * used to calculate QZSS satellite position, velocity, and clock offset. */ + public class MsgEphemerisQzss extends SBPMessage { public static final int TYPE = 0x008E; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** Group delay differential between L1 and L2 */ public float tgd; - + /** Amplitude of the sine harmonic correction term to the orbit radius */ public float c_rs; - + /** Amplitude of the cosine harmonic correction term to the orbit radius */ public float c_rc; - - /** Amplitude of the cosine harmonic correction term to the argument of latitude */ + + /** Amplitude of the cosine harmonic correction term to the argument of + * latitude */ public float c_uc; - - /** Amplitude of the sine harmonic correction term to the argument of latitude */ + + /** Amplitude of the sine harmonic correction term to the argument of + * latitude */ public float c_us; - - /** Amplitude of the cosine harmonic correction term to the angle of inclination */ + + /** Amplitude of the cosine harmonic correction term to the angle of + * inclination */ public float c_ic; - - /** Amplitude of the sine harmonic correction term to the angle of inclination */ + + /** Amplitude of the sine harmonic correction term to the angle of + * inclination */ public float c_is; - + /** Mean motion difference */ public double dn; - + /** Mean anomaly at reference time */ public double m0; - + /** Eccentricity of satellite orbit */ public double ecc; - + /** Square root of the semi-major axis of orbit */ public double sqrta; - + /** Longitude of ascending node of orbit plane at weekly epoch */ public double omega0; - + /** Rate of right ascension */ public double omegadot; - + /** Argument of perigee */ public double w; - + /** Inclination */ public double inc; - + /** Inclination first derivative */ public double inc_dot; - + /** Polynomial clock correction coefficient (clock bias) */ public float af0; - + /** Polynomial clock correction coefficient (clock drift) */ public float af1; - + /** Polynomial clock correction coefficient (rate of clock drift) */ public float af2; - + /** Clock reference */ public GPSTimeSec toc; - + /** Issue of ephemeris data */ public int iode; - + /** Issue of clock data */ public int iodc; + - public MsgEphemerisQzss(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisQzss() { - super(TYPE); - } - - public MsgEphemerisQzss(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisQzss (int sender) { super(sender, TYPE); } + public MsgEphemerisQzss () { super(TYPE); } + public MsgEphemerisQzss (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisQzss, expected 142, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisQzss, expected 142, actual " + msg.type); } @Override @@ -140,7 +146,7 @@ protected void parse(Parser parser) throws SBPBinaryException { af2 = parser.getFloat(); toc = new GPSTimeSec().parse(parser); iode = parser.getU8(); - iodc = parser.getU16(); + iodc = parser.getU16(); } @Override @@ -167,7 +173,7 @@ protected void build(Builder builder) { builder.putFloat(af2); toc.build(builder); builder.putU8(iode); - builder.putU16(iodc); + builder.putU16(iodc); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbas.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbas.java index 76e0ed1ac2..2be805f4f4 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbas.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbas.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgEphemerisSbas extends SBPMessage { public static final int TYPE = 0x008C; + /** Values common for all ephemeris types */ public EphemerisCommonContent common; - + /** Position of the GEO at time toe */ public double[] pos; - + /** Velocity of the GEO at time toe */ public float[] vel; - + /** Acceleration of the GEO at time toe */ public float[] acc; - + /** Time offset of the GEO clock w.r.t. SBAS Network Time */ public float a_gf0; - + /** Drift of the GEO clock w.r.t. SBAS Network Time */ public float a_gf1; + - public MsgEphemerisSbas(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisSbas() { - super(TYPE); - } - - public MsgEphemerisSbas(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisSbas (int sender) { super(sender, TYPE); } + public MsgEphemerisSbas () { super(TYPE); } + public MsgEphemerisSbas (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisSbas, expected 140, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisSbas, expected 140, actual " + msg.type); } @Override @@ -64,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vel = parser.getArrayofFloat(3); acc = parser.getArrayofFloat(3); a_gf0 = parser.getFloat(); - a_gf1 = parser.getFloat(); + a_gf1 = parser.getFloat(); } @Override @@ -74,7 +76,7 @@ protected void build(Builder builder) { builder.putArrayofFloat(vel, 3); builder.putArrayofFloat(acc, 3); builder.putFloat(a_gf0); - builder.putFloat(a_gf1); + builder.putFloat(a_gf1); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepA.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepA.java index 7821627aea..bfa139a86d 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_SBAS_DEP_A (0x0082). +/** SBP class for message MSG_EPHEMERIS_SBAS_DEP_A (0x0082). * - *

You can have MSG_EPHEMERIS_SBAS_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_SBAS_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisSbasDepA extends SBPMessage { public static final int TYPE = 0x0082; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepA common; - + /** Position of the GEO at time toe */ public double[] pos; - + /** Velocity of the GEO at time toe */ public double[] vel; - + /** Acceleration of the GEO at time toe */ public double[] acc; - + /** Time offset of the GEO clock w.r.t. SBAS Network Time */ public double a_gf0; - + /** Drift of the GEO clock w.r.t. SBAS Network Time */ public double a_gf1; + - public MsgEphemerisSbasDepA(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisSbasDepA() { - super(TYPE); - } - - public MsgEphemerisSbasDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisSbasDepA (int sender) { super(sender, TYPE); } + public MsgEphemerisSbasDepA () { super(TYPE); } + public MsgEphemerisSbasDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisSbasDepA, expected 130, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisSbasDepA, expected 130, actual " + msg.type); } @Override @@ -72,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vel = parser.getArrayofDouble(3); acc = parser.getArrayofDouble(3); a_gf0 = parser.getDouble(); - a_gf1 = parser.getDouble(); + a_gf1 = parser.getDouble(); } @Override @@ -82,7 +83,7 @@ protected void build(Builder builder) { builder.putArrayofDouble(vel, 3); builder.putArrayofDouble(acc, 3); builder.putDouble(a_gf0); - builder.putDouble(a_gf1); + builder.putDouble(a_gf1); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepB.java b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepB.java index 027ab75649..a48dda992b 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepB.java +++ b/java/src/com/swiftnav/sbp/observation/MsgEphemerisSbasDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_EPHEMERIS_SBAS_DEP_B (0x0084). +/** SBP class for message MSG_EPHEMERIS_SBAS_DEP_B (0x0084). * - *

You can have MSG_EPHEMERIS_SBAS_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_EPHEMERIS_SBAS_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEphemerisSbasDepB extends SBPMessage { public static final int TYPE = 0x0084; + /** Values common for all ephemeris types */ public EphemerisCommonContentDepB common; - + /** Position of the GEO at time toe */ public double[] pos; - + /** Velocity of the GEO at time toe */ public double[] vel; - + /** Acceleration of the GEO at time toe */ public double[] acc; - + /** Time offset of the GEO clock w.r.t. SBAS Network Time */ public double a_gf0; - + /** Drift of the GEO clock w.r.t. SBAS Network Time */ public double a_gf1; + - public MsgEphemerisSbasDepB(int sender) { - super(sender, TYPE); - } - - public MsgEphemerisSbasDepB() { - super(TYPE); - } - - public MsgEphemerisSbasDepB(SBPMessage msg) throws SBPBinaryException { + public MsgEphemerisSbasDepB (int sender) { super(sender, TYPE); } + public MsgEphemerisSbasDepB () { super(TYPE); } + public MsgEphemerisSbasDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEphemerisSbasDepB, expected 132, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEphemerisSbasDepB, expected 132, actual " + msg.type); } @Override @@ -72,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vel = parser.getArrayofDouble(3); acc = parser.getArrayofDouble(3); a_gf0 = parser.getDouble(); - a_gf1 = parser.getDouble(); + a_gf1 = parser.getDouble(); } @Override @@ -82,7 +83,7 @@ protected void build(Builder builder) { builder.putArrayofDouble(vel, 3); builder.putArrayofDouble(acc, 3); builder.putDouble(a_gf0); - builder.putDouble(a_gf1); + builder.putDouble(a_gf1); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgGloBiases.java b/java/src/com/swiftnav/sbp/observation/MsgGloBiases.java index 15eb76238f..e2767816fb 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgGloBiases.java +++ b/java/src/com/swiftnav/sbp/observation/MsgGloBiases.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GLO_BIASES (0x0075). + +/** SBP class for message MSG_GLO_BIASES (0x0075). * - *

You can have MSG_GLO_BIASES inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GLO_BIASES inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The GLONASS L1/L2 Code-Phase biases allows to perform GPS+GLONASS integer ambiguity resolution - * for baselines with mixed receiver types (e.g. receiver of different manufacturers). - */ + * The GLONASS L1/L2 Code-Phase biases allows to perform GPS+GLONASS integer + * ambiguity resolution for baselines with mixed receiver types (e.g. receiver + * of different manufacturers). */ + public class MsgGloBiases extends SBPMessage { public static final int TYPE = 0x0075; + /** GLONASS FDMA signals mask */ public int mask; - + /** GLONASS L1 C/A Code-Phase Bias */ public int l1ca_bias; - + /** GLONASS L1 P Code-Phase Bias */ public int l1p_bias; - + /** GLONASS L2 C/A Code-Phase Bias */ public int l2ca_bias; - + /** GLONASS L2 P Code-Phase Bias */ public int l2p_bias; + - public MsgGloBiases(int sender) { - super(sender, TYPE); - } - - public MsgGloBiases() { - super(TYPE); - } - - public MsgGloBiases(SBPMessage msg) throws SBPBinaryException { + public MsgGloBiases (int sender) { super(sender, TYPE); } + public MsgGloBiases () { super(TYPE); } + public MsgGloBiases (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGloBiases, expected 117, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGloBiases, expected 117, actual " + msg.type); } @Override @@ -68,7 +71,7 @@ protected void parse(Parser parser) throws SBPBinaryException { l1ca_bias = parser.getS16(); l1p_bias = parser.getS16(); l2ca_bias = parser.getS16(); - l2p_bias = parser.getS16(); + l2p_bias = parser.getS16(); } @Override @@ -77,7 +80,7 @@ protected void build(Builder builder) { builder.putS16(l1ca_bias); builder.putS16(l1p_bias); builder.putS16(l2ca_bias); - builder.putS16(l2p_bias); + builder.putS16(l2p_bias); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgGnssCapb.java b/java/src/com/swiftnav/sbp/observation/MsgGnssCapb.java index c75d58ed91..52724ab28f 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgGnssCapb.java +++ b/java/src/com/swiftnav/sbp/observation/MsgGnssCapb.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_GNSS_CAPB (0x0096). +/** SBP class for message MSG_GNSS_CAPB (0x0096). * - *

You can have MSG_GNSS_CAPB inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GNSS_CAPB inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Bit masks of signal capabilities for each GNSS satellite PRN. Please see ICD-GPS-200 (Chapter - * 20.3.3.5.1.4) for more details. - */ + * Bit masks of signal capabilities for each GNSS satellite PRN. + * Please see ICD-GPS-200 (Chapter 20.3.3.5.1.4) for more details. */ + public class MsgGnssCapb extends SBPMessage { public static final int TYPE = 0x0096; + /** Navigation Message Correction Table Validity Time */ public GPSTimeSec t_nmct; - + /** GNSS capabilities masks */ public GnssCapb gc; + - public MsgGnssCapb(int sender) { - super(sender, TYPE); - } - - public MsgGnssCapb() { - super(TYPE); - } - - public MsgGnssCapb(SBPMessage msg) throws SBPBinaryException { + public MsgGnssCapb (int sender) { super(sender, TYPE); } + public MsgGnssCapb () { super(TYPE); } + public MsgGnssCapb (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGnssCapb, expected 150, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGnssCapb, expected 150, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ t_nmct = new GPSTimeSec().parse(parser); - gc = new GnssCapb().parse(parser); + gc = new GnssCapb().parse(parser); } @Override protected void build(Builder builder) { t_nmct.build(builder); - gc.build(builder); + gc.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgGroupDelay.java b/java/src/com/swiftnav/sbp/observation/MsgGroupDelay.java index e6afaa9cd7..ccaff16726 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgGroupDelay.java +++ b/java/src/com/swiftnav/sbp/observation/MsgGroupDelay.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GROUP_DELAY (0x0094). + +/** SBP class for message MSG_GROUP_DELAY (0x0094). * - *

You can have MSG_GROUP_DELAY inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GROUP_DELAY inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Please see ICD-GPS-200 (30.3.3.3.1.1) for more details. - */ + * Please see ICD-GPS-200 (30.3.3.3.1.1) for more details. */ + public class MsgGroupDelay extends SBPMessage { public static final int TYPE = 0x0094; + /** Data Predict Time of Week */ public GPSTimeSec t_op; - + /** GNSS signal identifier */ public GnssSignal sid; - - /** - * bit-field indicating validity of the values, LSB indicating tgd validity etc. 1 = value is - * valid, 0 = value is not valid. - */ + + /** bit-field indicating validity of the values, LSB indicating tgd + * validity etc. 1 = value is valid, 0 = value is not valid. */ public int valid; - + public int tgd; - + public int isc_l1ca; - + public int isc_l2c; + - public MsgGroupDelay(int sender) { - super(sender, TYPE); - } - - public MsgGroupDelay() { - super(TYPE); - } - - public MsgGroupDelay(SBPMessage msg) throws SBPBinaryException { + public MsgGroupDelay (int sender) { super(sender, TYPE); } + public MsgGroupDelay () { super(TYPE); } + public MsgGroupDelay (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGroupDelay, expected 148, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGroupDelay, expected 148, actual " + msg.type); } @Override @@ -71,7 +71,7 @@ protected void parse(Parser parser) throws SBPBinaryException { valid = parser.getU8(); tgd = parser.getS16(); isc_l1ca = parser.getS16(); - isc_l2c = parser.getS16(); + isc_l2c = parser.getS16(); } @Override @@ -81,7 +81,7 @@ protected void build(Builder builder) { builder.putU8(valid); builder.putS16(tgd); builder.putS16(isc_l1ca); - builder.putS16(isc_l2c); + builder.putS16(isc_l2c); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepA.java b/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepA.java index 5941342e05..fad95bd78a 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GROUP_DELAY_DEP_A (0x0092). + +/** SBP class for message MSG_GROUP_DELAY_DEP_A (0x0092). * - *

You can have MSG_GROUP_DELAY_DEP_A inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_GROUP_DELAY_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgGroupDelayDepA extends SBPMessage { public static final int TYPE = 0x0092; + /** Data Predict Time of Week */ public GPSTimeDep t_op; - + /** Satellite number */ public int prn; - - /** - * bit-field indicating validity of the values, LSB indicating tgd validity etc. 1 = value is - * valid, 0 = value is not valid. - */ + + /** bit-field indicating validity of the values, LSB indicating tgd + * validity etc. 1 = value is valid, 0 = value is not valid. */ public int valid; - + public int tgd; - + public int isc_l1ca; - + public int isc_l2c; + - public MsgGroupDelayDepA(int sender) { - super(sender, TYPE); - } - - public MsgGroupDelayDepA() { - super(TYPE); - } - - public MsgGroupDelayDepA(SBPMessage msg) throws SBPBinaryException { + public MsgGroupDelayDepA (int sender) { super(sender, TYPE); } + public MsgGroupDelayDepA () { super(TYPE); } + public MsgGroupDelayDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGroupDelayDepA, expected 146, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGroupDelayDepA, expected 146, actual " + msg.type); } @Override @@ -71,7 +71,7 @@ protected void parse(Parser parser) throws SBPBinaryException { valid = parser.getU8(); tgd = parser.getS16(); isc_l1ca = parser.getS16(); - isc_l2c = parser.getS16(); + isc_l2c = parser.getS16(); } @Override @@ -81,7 +81,7 @@ protected void build(Builder builder) { builder.putU8(valid); builder.putS16(tgd); builder.putS16(isc_l1ca); - builder.putS16(isc_l2c); + builder.putS16(isc_l2c); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepB.java b/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepB.java index 249be097fd..0aabc5f601 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepB.java +++ b/java/src/com/swiftnav/sbp/observation/MsgGroupDelayDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GROUP_DELAY_DEP_B (0x0093). + +/** SBP class for message MSG_GROUP_DELAY_DEP_B (0x0093). * - *

You can have MSG_GROUP_DELAY_DEP_B inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_GROUP_DELAY_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgGroupDelayDepB extends SBPMessage { public static final int TYPE = 0x0093; + /** Data Predict Time of Week */ public GPSTimeSec t_op; - + /** GNSS signal identifier */ public GnssSignalDep sid; - - /** - * bit-field indicating validity of the values, LSB indicating tgd validity etc. 1 = value is - * valid, 0 = value is not valid. - */ + + /** bit-field indicating validity of the values, LSB indicating tgd + * validity etc. 1 = value is valid, 0 = value is not valid. */ public int valid; - + public int tgd; - + public int isc_l1ca; - + public int isc_l2c; + - public MsgGroupDelayDepB(int sender) { - super(sender, TYPE); - } - - public MsgGroupDelayDepB() { - super(TYPE); - } - - public MsgGroupDelayDepB(SBPMessage msg) throws SBPBinaryException { + public MsgGroupDelayDepB (int sender) { super(sender, TYPE); } + public MsgGroupDelayDepB () { super(TYPE); } + public MsgGroupDelayDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGroupDelayDepB, expected 147, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGroupDelayDepB, expected 147, actual " + msg.type); } @Override @@ -71,7 +71,7 @@ protected void parse(Parser parser) throws SBPBinaryException { valid = parser.getU8(); tgd = parser.getS16(); isc_l1ca = parser.getS16(); - isc_l2c = parser.getS16(); + isc_l2c = parser.getS16(); } @Override @@ -81,7 +81,7 @@ protected void build(Builder builder) { builder.putU8(valid); builder.putS16(tgd); builder.putS16(isc_l1ca); - builder.putS16(isc_l2c); + builder.putS16(isc_l2c); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgIono.java b/java/src/com/swiftnav/sbp/observation/MsgIono.java index 745b147278..6865b02cf1 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgIono.java +++ b/java/src/com/swiftnav/sbp/observation/MsgIono.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_IONO (0x0090). +/** SBP class for message MSG_IONO (0x0090). * - *

You can have MSG_IONO inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_IONO inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The ionospheric parameters which allow the "L1 only" or "L2 only" user to utilize the - * ionospheric model for computation of the ionospheric delay. Please see ICD-GPS-200 (Chapter - * 20.3.3.5.1.7) for more details. - */ + * The ionospheric parameters which allow the "L1 only" or "L2 only" user to + * utilize the ionospheric model for computation of the ionospheric delay. + * Please see ICD-GPS-200 (Chapter 20.3.3.5.1.7) for more details. */ + public class MsgIono extends SBPMessage { public static final int TYPE = 0x0090; + /** Navigation Message Correction Table Validity Time */ public GPSTimeSec t_nmct; - + public double a0; - + public double a1; - + public double a2; - + public double a3; - + public double b0; - + public double b1; - + public double b2; - + public double b3; + - public MsgIono(int sender) { - super(sender, TYPE); - } - - public MsgIono() { - super(TYPE); - } - - public MsgIono(SBPMessage msg) throws SBPBinaryException { + public MsgIono (int sender) { super(sender, TYPE); } + public MsgIono () { super(TYPE); } + public MsgIono (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgIono, expected 144, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgIono, expected 144, actual " + msg.type); } @Override @@ -77,7 +79,7 @@ protected void parse(Parser parser) throws SBPBinaryException { b0 = parser.getDouble(); b1 = parser.getDouble(); b2 = parser.getDouble(); - b3 = parser.getDouble(); + b3 = parser.getDouble(); } @Override @@ -90,7 +92,7 @@ protected void build(Builder builder) { builder.putDouble(b0); builder.putDouble(b1); builder.putDouble(b2); - builder.putDouble(b3); + builder.putDouble(b3); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgObs.java b/java/src/com/swiftnav/sbp/observation/MsgObs.java index 0fd0d17299..cc24cf1840 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgObs.java +++ b/java/src/com/swiftnav/sbp/observation/MsgObs.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_OBS (0x004A). +/** SBP class for message MSG_OBS (0x004A). * - *

You can have MSG_OBS inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_OBS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The GPS observations message reports all the raw pseudorange and carrier phase observations - * for the satellites being tracked by the device. Carrier phase observation here is represented as - * a 40-bit fixed point number with Q32.8 layout (i.e. 32-bits of whole cycles and 8-bits of - * fractional cycles). The observations are be interoperable with 3rd party receivers and conform - * with typical RTCMv3 GNSS observations. - */ + * The GPS observations message reports all the raw pseudorange and carrier + * phase observations for the satellites being tracked by the device. Carrier + * phase observation here is represented as a 40-bit fixed point number with + * Q32.8 layout (i.e. 32-bits of whole cycles and 8-bits of fractional + * cycles). The observations are be interoperable with 3rd party receivers and + * conform with typical RTCMv3 GNSS observations. */ + public class MsgObs extends SBPMessage { public static final int TYPE = 0x004A; + /** Header of a GPS observation message */ public ObservationHeader header; - - /** Pseudorange and carrier phase observation for a satellite being tracked. */ + + /** Pseudorange and carrier phase observation for a satellite being + * tracked. */ public PackedObsContent[] obs; + - public MsgObs(int sender) { - super(sender, TYPE); - } - - public MsgObs() { - super(TYPE); - } - - public MsgObs(SBPMessage msg) throws SBPBinaryException { + public MsgObs (int sender) { super(sender, TYPE); } + public MsgObs () { super(TYPE); } + public MsgObs (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgObs, expected 74, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgObs, expected 74, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new ObservationHeader().parse(parser); - obs = parser.getArray(PackedObsContent.class); + obs = parser.getArray(PackedObsContent.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(obs); + builder.putArray(obs); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgObsDepA.java b/java/src/com/swiftnav/sbp/observation/MsgObsDepA.java index 49d2c893d8..3a451903e3 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgObsDepA.java +++ b/java/src/com/swiftnav/sbp/observation/MsgObsDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_OBS_DEP_A (0x0045). +/** SBP class for message MSG_OBS_DEP_A (0x0045). * - *

You can have MSG_OBS_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_OBS_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgObsDepA extends SBPMessage { public static final int TYPE = 0x0045; + /** Header of a GPS observation message */ public ObservationHeaderDep header; - - /** Pseudorange and carrier phase observation for a satellite being tracked. */ + + /** Pseudorange and carrier phase observation for a satellite being + * tracked. */ public PackedObsContentDepA[] obs; + - public MsgObsDepA(int sender) { - super(sender, TYPE); - } - - public MsgObsDepA() { - super(TYPE); - } - - public MsgObsDepA(SBPMessage msg) throws SBPBinaryException { + public MsgObsDepA (int sender) { super(sender, TYPE); } + public MsgObsDepA () { super(TYPE); } + public MsgObsDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgObsDepA, expected 69, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgObsDepA, expected 69, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new ObservationHeaderDep().parse(parser); - obs = parser.getArray(PackedObsContentDepA.class); + obs = parser.getArray(PackedObsContentDepA.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(obs); + builder.putArray(obs); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgObsDepB.java b/java/src/com/swiftnav/sbp/observation/MsgObsDepB.java index ace43daa6c..f251797361 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgObsDepB.java +++ b/java/src/com/swiftnav/sbp/observation/MsgObsDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_OBS_DEP_B (0x0043). +/** SBP class for message MSG_OBS_DEP_B (0x0043). * - *

You can have MSG_OBS_DEP_B inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_OBS_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgObsDepB extends SBPMessage { public static final int TYPE = 0x0043; + /** Header of a GPS observation message */ public ObservationHeaderDep header; - - /** Pseudorange and carrier phase observation for a satellite being tracked. */ + + /** Pseudorange and carrier phase observation for a satellite being + * tracked. */ public PackedObsContentDepB[] obs; + - public MsgObsDepB(int sender) { - super(sender, TYPE); - } - - public MsgObsDepB() { - super(TYPE); - } - - public MsgObsDepB(SBPMessage msg) throws SBPBinaryException { + public MsgObsDepB (int sender) { super(sender, TYPE); } + public MsgObsDepB () { super(TYPE); } + public MsgObsDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgObsDepB, expected 67, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgObsDepB, expected 67, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new ObservationHeaderDep().parse(parser); - obs = parser.getArray(PackedObsContentDepB.class); + obs = parser.getArray(PackedObsContentDepB.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(obs); + builder.putArray(obs); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgObsDepC.java b/java/src/com/swiftnav/sbp/observation/MsgObsDepC.java index 866b34fffb..242ce02cc0 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgObsDepC.java +++ b/java/src/com/swiftnav/sbp/observation/MsgObsDepC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_OBS_DEP_C (0x0049). +/** SBP class for message MSG_OBS_DEP_C (0x0049). * - *

You can have MSG_OBS_DEP_C inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_OBS_DEP_C inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgObsDepC extends SBPMessage { public static final int TYPE = 0x0049; + /** Header of a GPS observation message */ public ObservationHeaderDep header; - - /** Pseudorange and carrier phase observation for a satellite being tracked. */ + + /** Pseudorange and carrier phase observation for a satellite being + * tracked. */ public PackedObsContentDepC[] obs; + - public MsgObsDepC(int sender) { - super(sender, TYPE); - } - - public MsgObsDepC() { - super(TYPE); - } - - public MsgObsDepC(SBPMessage msg) throws SBPBinaryException { + public MsgObsDepC (int sender) { super(sender, TYPE); } + public MsgObsDepC () { super(TYPE); } + public MsgObsDepC (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgObsDepC, expected 73, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgObsDepC, expected 73, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new ObservationHeaderDep().parse(parser); - obs = parser.getArray(PackedObsContentDepC.class); + obs = parser.getArray(PackedObsContentDepC.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(obs); + builder.putArray(obs); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgOsr.java b/java/src/com/swiftnav/sbp/observation/MsgOsr.java index a7e9f466cd..20e22f2e31 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgOsr.java +++ b/java/src/com/swiftnav/sbp/observation/MsgOsr.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_OSR (0x0640). +/** SBP class for message MSG_OSR (0x0640). * - *

You can have MSG_OSR inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_OSR inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The OSR message contains network corrections in an observation-like format. - */ + * The OSR message contains network corrections in an observation-like format. */ + public class MsgOsr extends SBPMessage { public static final int TYPE = 0x0640; + /** Header of a GPS observation message */ public ObservationHeader header; - + /** Network correction for a satellite signal. */ public PackedOsrContent[] obs; + - public MsgOsr(int sender) { - super(sender, TYPE); - } - - public MsgOsr() { - super(TYPE); - } - - public MsgOsr(SBPMessage msg) throws SBPBinaryException { + public MsgOsr (int sender) { super(sender, TYPE); } + public MsgOsr () { super(TYPE); } + public MsgOsr (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgOsr, expected 1600, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgOsr, expected 1600, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new ObservationHeader().parse(parser); - obs = parser.getArray(PackedOsrContent.class); + obs = parser.getArray(PackedOsrContent.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(obs); + builder.putArray(obs); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgSvAzEl.java b/java/src/com/swiftnav/sbp/observation/MsgSvAzEl.java index 9ec8330272..5b0076c116 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgSvAzEl.java +++ b/java/src/com/swiftnav/sbp/observation/MsgSvAzEl.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SV_AZ_EL (0x0097). +/** SBP class for message MSG_SV_AZ_EL (0x0097). * - *

You can have MSG_SV_AZ_EL inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SV_AZ_EL inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Azimuth and elevation angles of all the visible satellites that the device does have ephemeris - * or almanac for. - */ + * Azimuth and elevation angles of all the visible satellites that the device + * does have ephemeris or almanac for. */ + public class MsgSvAzEl extends SBPMessage { public static final int TYPE = 0x0097; + /** Azimuth and elevation per satellite */ public SvAzEl[] azel; + - public MsgSvAzEl(int sender) { - super(sender, TYPE); - } - - public MsgSvAzEl() { - super(TYPE); - } - - public MsgSvAzEl(SBPMessage msg) throws SBPBinaryException { + public MsgSvAzEl (int sender) { super(sender, TYPE); } + public MsgSvAzEl () { super(TYPE); } + public MsgSvAzEl (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSvAzEl, expected 151, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSvAzEl, expected 151, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - azel = parser.getArray(SvAzEl.class); + azel = parser.getArray(SvAzEl.class); } @Override protected void build(Builder builder) { - builder.putArray(azel); + builder.putArray(azel); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/MsgSvConfigurationGPSDep.java b/java/src/com/swiftnav/sbp/observation/MsgSvConfigurationGPSDep.java index aa333ead0e..73ff7fdf4c 100644 --- a/java/src/com/swiftnav/sbp/observation/MsgSvConfigurationGPSDep.java +++ b/java/src/com/swiftnav/sbp/observation/MsgSvConfigurationGPSDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SV_CONFIGURATION_GPS_DEP (0x0091). +/** SBP class for message MSG_SV_CONFIGURATION_GPS_DEP (0x0091). * - *

You can have MSG_SV_CONFIGURATION_GPS_DEP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SV_CONFIGURATION_GPS_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSvConfigurationGPSDep extends SBPMessage { public static final int TYPE = 0x0091; + /** Navigation Message Correction Table Validity Time */ public GPSTimeSec t_nmct; - + /** L2C capability mask, SV32 bit being MSB, SV1 bit being LSB */ public long l2c_mask; + - public MsgSvConfigurationGPSDep(int sender) { - super(sender, TYPE); - } - - public MsgSvConfigurationGPSDep() { - super(TYPE); - } - - public MsgSvConfigurationGPSDep(SBPMessage msg) throws SBPBinaryException { + public MsgSvConfigurationGPSDep (int sender) { super(sender, TYPE); } + public MsgSvConfigurationGPSDep () { super(TYPE); } + public MsgSvConfigurationGPSDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSvConfigurationGPSDep, expected 145, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSvConfigurationGPSDep, expected 145, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ t_nmct = new GPSTimeSec().parse(parser); - l2c_mask = parser.getU32(); + l2c_mask = parser.getU32(); } @Override protected void build(Builder builder) { t_nmct.build(builder); - builder.putU32(l2c_mask); + builder.putU32(l2c_mask); } @Override diff --git a/java/src/com/swiftnav/sbp/observation/ObservationHeader.java b/java/src/com/swiftnav/sbp/observation/ObservationHeader.java index 3700c3dfd7..08b0c2f7e2 100644 --- a/java/src/com/swiftnav/sbp/observation/ObservationHeader.java +++ b/java/src/com/swiftnav/sbp/observation/ObservationHeader.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,33 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class ObservationHeader extends SBPStruct { - + /** GNSS time of this observation */ public GPSTime t; - - /** - * Total number of observations. First nibble is the size of the sequence (n), second nibble is - * the zero-indexed counter (ith packet of n) - */ + + /** Total number of observations. First nibble is the size of the sequence (n), + * second nibble is the zero-indexed counter (ith packet of n) */ public int n_obs; + - public ObservationHeader() {} + public ObservationHeader () {} @Override public ObservationHeader parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/ObservationHeaderDep.java b/java/src/com/swiftnav/sbp/observation/ObservationHeaderDep.java index 0d1609056b..52452358c3 100644 --- a/java/src/com/swiftnav/sbp/observation/ObservationHeaderDep.java +++ b/java/src/com/swiftnav/sbp/observation/ObservationHeaderDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,33 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class ObservationHeaderDep extends SBPStruct { - + /** GPS time of this observation */ public GPSTimeDep t; - - /** - * Total number of observations. First nibble is the size of the sequence (n), second nibble is - * the zero-indexed counter (ith packet of n) - */ + + /** Total number of observations. First nibble is the size of the sequence (n), + * second nibble is the zero-indexed counter (ith packet of n) */ public int n_obs; + - public ObservationHeaderDep() {} + public ObservationHeaderDep () {} @Override public ObservationHeaderDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/PackedObsContent.java b/java/src/com/swiftnav/sbp/observation/PackedObsContent.java index adffb389d5..70ce3b0118 100644 --- a/java/src/com/swiftnav/sbp/observation/PackedObsContent.java +++ b/java/src/com/swiftnav/sbp/observation/PackedObsContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,50 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PackedObsContent extends SBPStruct { - + /** Pseudorange observation */ public long P; - + /** Carrier phase observation with typical sign convention. */ public CarrierPhase L; - + /** Doppler observation with typical sign convention. */ public Doppler D; - - /** Carrier-to-Noise density. Zero implies invalid cn0. */ + + /** Carrier-to-Noise density. Zero implies invalid cn0. */ public int cn0; - - /** - * Lock timer. This value gives an indication of the time for which a signal has maintained - * continuous phase lock. Whenever a signal has lost and regained lock, this value is reset to - * zero. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. Valid - * values range from 0 to 15 and the most significant nibble is reserved for future use. - */ + + /** Lock timer. This value gives an indication of the time for which a signal has + * maintained continuous phase lock. Whenever a signal has lost and regained lock, + * this value is reset to zero. It is encoded according to DF402 from the RTCM + * 10403.2 Amendment 2 specification. Valid values range from 0 to 15 and the + * most significant nibble is reserved for future use. */ public int lock; - - /** - * Measurement status flags. A bit field of flags providing the status of this observation. If - * this field is 0 it means only the Cn0 estimate for the signal is valid. - */ + + /** Measurement status flags. A bit field of flags providing the status of this + * observation. If this field is 0 it means only the Cn0 estimate for the signal + * is valid. */ public int flags; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; + - public PackedObsContent() {} + public PackedObsContent () {} @Override public PackedObsContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepA.java b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepA.java index 90019c7f4d..a1f4532553 100644 --- a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepA.java +++ b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,39 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PackedObsContentDepA extends SBPStruct { - + /** Pseudorange observation */ public long P; - + /** Carrier phase observation with opposite sign from typical convention */ public CarrierPhaseDepA L; - + /** Carrier-to-Noise density */ public int cn0; - - /** - * Lock indicator. This value changes whenever a satellite signal has lost and regained lock, - * indicating that the carrier phase ambiguity may have changed. - */ + + /** Lock indicator. This value changes whenever a satellite signal has lost and + * regained lock, indicating that the carrier phase ambiguity may have changed. */ public int lock; - + /** PRN-1 identifier of the satellite signal */ public int prn; + - public PackedObsContentDepA() {} + public PackedObsContentDepA () {} @Override public PackedObsContentDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepB.java b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepB.java index cb1050c2da..380658b9fa 100644 --- a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepB.java +++ b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,39 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PackedObsContentDepB extends SBPStruct { - + /** Pseudorange observation */ public long P; - + /** Carrier phase observation with opposite sign from typical convention. */ public CarrierPhaseDepA L; - + /** Carrier-to-Noise density */ public int cn0; - - /** - * Lock indicator. This value changes whenever a satellite signal has lost and regained lock, - * indicating that the carrier phase ambiguity may have changed. - */ + + /** Lock indicator. This value changes whenever a satellite signal has lost and + * regained lock, indicating that the carrier phase ambiguity may have changed. */ public int lock; - + /** GNSS signal identifier */ public GnssSignalDep sid; + - public PackedObsContentDepB() {} + public PackedObsContentDepB () {} @Override public PackedObsContentDepB parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepC.java b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepC.java index 80543df58a..8282db99f4 100644 --- a/java/src/com/swiftnav/sbp/observation/PackedObsContentDepC.java +++ b/java/src/com/swiftnav/sbp/observation/PackedObsContentDepC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,39 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PackedObsContentDepC extends SBPStruct { - + /** Pseudorange observation */ public long P; - + /** Carrier phase observation with typical sign convention. */ public CarrierPhase L; - + /** Carrier-to-Noise density */ public int cn0; - - /** - * Lock indicator. This value changes whenever a satellite signal has lost and regained lock, - * indicating that the carrier phase ambiguity may have changed. - */ + + /** Lock indicator. This value changes whenever a satellite signal has lost and + * regained lock, indicating that the carrier phase ambiguity may have changed. */ public int lock; - + /** GNSS signal identifier */ public GnssSignalDep sid; + - public PackedObsContentDepC() {} + public PackedObsContentDepC () {} @Override public PackedObsContentDepC parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/PackedOsrContent.java b/java/src/com/swiftnav/sbp/observation/PackedOsrContent.java index 8a964e7615..3a3a6715bc 100644 --- a/java/src/com/swiftnav/sbp/observation/PackedOsrContent.java +++ b/java/src/com/swiftnav/sbp/observation/PackedOsrContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,50 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PackedOsrContent extends SBPStruct { - + /** Pseudorange observation */ public long P; - + /** Carrier phase observation with typical sign convention. */ public CarrierPhase L; - - /** - * Lock timer. This value gives an indication of the time for which a signal has maintained - * continuous phase lock. Whenever a signal has lost and regained lock, this value is reset to - * zero. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. Valid - * values range from 0 to 15 and the most significant nibble is reserved for future use. - */ + + /** Lock timer. This value gives an indication of the time for which a signal has + * maintained continuous phase lock. Whenever a signal has lost and regained lock, + * this value is reset to zero. It is encoded according to DF402 from the RTCM + * 10403.2 Amendment 2 specification. Valid values range from 0 to 15 and the + * most significant nibble is reserved for future use. */ public int lock; - + /** Correction flags. */ public int flags; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - + /** Slant ionospheric correction standard deviation */ public int iono_std; - + /** Slant tropospheric correction standard deviation */ public int tropo_std; - + /** Orbit/clock/bias correction projected on range standard deviation */ public int range_std; + - public PackedOsrContent() {} + public PackedOsrContent () {} @Override public PackedOsrContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/observation/SvAzEl.java b/java/src/com/swiftnav/sbp/observation/SvAzEl.java index 41b0d3dad8..5db524ee56 100644 --- a/java/src/com/swiftnav/sbp/observation/SvAzEl.java +++ b/java/src/com/swiftnav/sbp/observation/SvAzEl.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,35 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.observation; // This file was auto-generated from yaml/swiftnav/sbp/observation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class SvAzEl extends SBPStruct { - + /** GNSS signal identifier */ public GnssSignal sid; - + /** Azimuth angle (range 0..179) */ public int az; - + /** Elevation angle (range -90..90) */ public int el; + - public SvAzEl() {} + public SvAzEl () {} @Override public SvAzEl parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/orientation/MsgAngularRate.java b/java/src/com/swiftnav/sbp/orientation/MsgAngularRate.java index 418899bd88..5fb67b41a2 100644 --- a/java/src/com/swiftnav/sbp/orientation/MsgAngularRate.java +++ b/java/src/com/swiftnav/sbp/orientation/MsgAngularRate.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.orientation; // This file was auto-generated from yaml/swiftnav/sbp/orientation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ANGULAR_RATE (0x0222). + +/** SBP class for message MSG_ANGULAR_RATE (0x0222). * - *

You can have MSG_ANGULAR_RATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ANGULAR_RATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the orientation rates in the vehicle body frame. The values represent the - * measurements a strapped down gyroscope would make and are not equivalent to the time derivative - * of the Euler angles. The orientation and origin of the user frame is specified via device - * settings. By convention, the vehicle x-axis is expected to be aligned with the forward direction, - * while the vehicle y-axis is expected to be aligned with the right direction, and the vehicle - * z-axis should be aligned with the down direction. This message will only be available in future - * INS versions of Swift Products and is not produced by Piksi Multi or Duro. - */ + * This message reports the orientation rates in the vehicle body frame. The + * values represent the measurements a strapped down gyroscope would make and + * are not equivalent to the time derivative of the Euler angles. The + * orientation and origin of the user frame is specified via device settings. + * By convention, the vehicle x-axis is expected to be aligned with the + * forward direction, while the vehicle y-axis is expected to be aligned with + * the right direction, and the vehicle z-axis should be aligned with the down + * direction. This message will only be available in future INS versions of + * Swift Products and is not produced by Piksi Multi or Duro. */ + public class MsgAngularRate extends SBPMessage { public static final int TYPE = 0x0222; + /** GPS Time of Week */ public long tow; - + /** angular rate about x axis */ public int x; - + /** angular rate about y axis */ public int y; - + /** angular rate about z axis */ public int z; - + /** Status flags */ public int flags; + - public MsgAngularRate(int sender) { - super(sender, TYPE); - } - - public MsgAngularRate() { - super(TYPE); - } - - public MsgAngularRate(SBPMessage msg) throws SBPBinaryException { + public MsgAngularRate (int sender) { super(sender, TYPE); } + public MsgAngularRate () { super(TYPE); } + public MsgAngularRate (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAngularRate, expected 546, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAngularRate, expected 546, actual " + msg.type); } @Override @@ -72,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { x = parser.getS32(); y = parser.getS32(); z = parser.getS32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -81,7 +85,7 @@ protected void build(Builder builder) { builder.putS32(x); builder.putS32(y); builder.putS32(z); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/orientation/MsgBaselineHeading.java b/java/src/com/swiftnav/sbp/orientation/MsgBaselineHeading.java index 64b70b9c71..ab80dfb1fb 100644 --- a/java/src/com/swiftnav/sbp/orientation/MsgBaselineHeading.java +++ b/java/src/com/swiftnav/sbp/orientation/MsgBaselineHeading.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.orientation; // This file was auto-generated from yaml/swiftnav/sbp/orientation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_BASELINE_HEADING (0x020F). + +/** SBP class for message MSG_BASELINE_HEADING (0x020F). * - *

You can have MSG_BASELINE_HEADING inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_BASELINE_HEADING inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the baseline heading pointing from the base station to the rover relative - * to True North. The full GPS time is given by the preceding MSG_GPS_TIME with the matching - * time-of-week (tow). It is intended that time-matched RTK mode is used when the base station is - * moving. - */ + * This message reports the baseline heading pointing from the base station to + * the rover relative to True North. The full GPS time is given by the + * preceding MSG_GPS_TIME with the matching time-of-week (tow). It is intended + * that time-matched RTK mode is used when the base station is moving. */ + public class MsgBaselineHeading extends SBPMessage { public static final int TYPE = 0x020F; + /** GPS Time of Week */ public long tow; - + /** Heading */ public long heading; - + /** Number of satellites used in solution */ public int n_sats; - + /** Status flags */ public int flags; + - public MsgBaselineHeading(int sender) { - super(sender, TYPE); - } - - public MsgBaselineHeading() { - super(TYPE); - } - - public MsgBaselineHeading(SBPMessage msg) throws SBPBinaryException { + public MsgBaselineHeading (int sender) { super(sender, TYPE); } + public MsgBaselineHeading () { super(TYPE); } + public MsgBaselineHeading (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgBaselineHeading, expected 527, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgBaselineHeading, expected 527, actual " + msg.type); } @Override @@ -65,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tow = parser.getU32(); heading = parser.getU32(); n_sats = parser.getU8(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -73,7 +75,7 @@ protected void build(Builder builder) { builder.putU32(tow); builder.putU32(heading); builder.putU8(n_sats); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/orientation/MsgOrientEuler.java b/java/src/com/swiftnav/sbp/orientation/MsgOrientEuler.java index e47a5eddc3..37844bc56f 100644 --- a/java/src/com/swiftnav/sbp/orientation/MsgOrientEuler.java +++ b/java/src/com/swiftnav/sbp/orientation/MsgOrientEuler.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,67 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.orientation; // This file was auto-generated from yaml/swiftnav/sbp/orientation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ORIENT_EULER (0x0221). +/** SBP class for message MSG_ORIENT_EULER (0x0221). * - *

You can have MSG_ORIENT_EULER inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ORIENT_EULER inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the yaw, pitch, and roll angles of the vehicle body frame. The rotations - * should applied intrinsically in the order yaw, pitch, and roll in order to rotate the from a - * frame aligned with the local-level NED frame to the vehicle body frame. This message will only be - * available in future INS versions of Swift Products and is not produced by Piksi Multi or Duro. - */ + * This message reports the yaw, pitch, and roll angles of the vehicle body + * frame. The rotations should applied intrinsically in the order yaw, pitch, + * and roll in order to rotate the from a frame aligned with the local-level + * NED frame to the vehicle body frame. This message will only be available + * in future INS versions of Swift Products and is not produced by Piksi Multi + * or Duro. */ + public class MsgOrientEuler extends SBPMessage { public static final int TYPE = 0x0221; + /** GPS Time of Week */ public long tow; - + /** rotation about the forward axis of the vehicle */ public int roll; - + /** rotation about the rightward axis of the vehicle */ public int pitch; - + /** rotation about the downward axis of the vehicle */ public int yaw; - + /** Estimated standard deviation of roll */ public float roll_accuracy; - + /** Estimated standard deviation of pitch */ public float pitch_accuracy; - + /** Estimated standard deviation of yaw */ public float yaw_accuracy; - + /** Status flags */ public int flags; + - public MsgOrientEuler(int sender) { - super(sender, TYPE); - } - - public MsgOrientEuler() { - super(TYPE); - } - - public MsgOrientEuler(SBPMessage msg) throws SBPBinaryException { + public MsgOrientEuler (int sender) { super(sender, TYPE); } + public MsgOrientEuler () { super(TYPE); } + public MsgOrientEuler (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgOrientEuler, expected 545, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgOrientEuler, expected 545, actual " + msg.type); } @Override @@ -81,7 +85,7 @@ protected void parse(Parser parser) throws SBPBinaryException { roll_accuracy = parser.getFloat(); pitch_accuracy = parser.getFloat(); yaw_accuracy = parser.getFloat(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -93,7 +97,7 @@ protected void build(Builder builder) { builder.putFloat(roll_accuracy); builder.putFloat(pitch_accuracy); builder.putFloat(yaw_accuracy); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/orientation/MsgOrientQuat.java b/java/src/com/swiftnav/sbp/orientation/MsgOrientQuat.java index e1894b5588..f76b698396 100644 --- a/java/src/com/swiftnav/sbp/orientation/MsgOrientQuat.java +++ b/java/src/com/swiftnav/sbp/orientation/MsgOrientQuat.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,76 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.orientation; // This file was auto-generated from yaml/swiftnav/sbp/orientation.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ORIENT_QUAT (0x0220). +/** SBP class for message MSG_ORIENT_QUAT (0x0220). * - *

You can have MSG_ORIENT_QUAT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ORIENT_QUAT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the quaternion vector describing the vehicle body frame's orientation - * with respect to a local-level NED frame. The components of the vector should sum to a unit vector - * assuming that the LSB of each component as a value of 2^-31. This message will only be available - * in future INS versions of Swift Products and is not produced by Piksi Multi or Duro. - */ + * This message reports the quaternion vector describing the vehicle body + * frame's orientation with respect to a local-level NED frame. The components + * of the vector should sum to a unit vector assuming that the LSB of each + * component as a value of 2^-31. This message will only be available in + * future INS versions of Swift Products and is not produced by Piksi Multi or + * Duro. */ + public class MsgOrientQuat extends SBPMessage { public static final int TYPE = 0x0220; + /** GPS Time of Week */ public long tow; - + /** Real component */ public int w; - + /** 1st imaginary component */ public int x; - + /** 2nd imaginary component */ public int y; - + /** 3rd imaginary component */ public int z; - + /** Estimated standard deviation of w */ public float w_accuracy; - + /** Estimated standard deviation of x */ public float x_accuracy; - + /** Estimated standard deviation of y */ public float y_accuracy; - + /** Estimated standard deviation of z */ public float z_accuracy; - + /** Status flags */ public int flags; + - public MsgOrientQuat(int sender) { - super(sender, TYPE); - } - - public MsgOrientQuat() { - super(TYPE); - } - - public MsgOrientQuat(SBPMessage msg) throws SBPBinaryException { + public MsgOrientQuat (int sender) { super(sender, TYPE); } + public MsgOrientQuat () { super(TYPE); } + public MsgOrientQuat (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgOrientQuat, expected 544, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgOrientQuat, expected 544, actual " + msg.type); } @Override @@ -89,7 +93,7 @@ protected void parse(Parser parser) throws SBPBinaryException { x_accuracy = parser.getFloat(); y_accuracy = parser.getFloat(); z_accuracy = parser.getFloat(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -103,7 +107,7 @@ protected void build(Builder builder) { builder.putFloat(x_accuracy); builder.putFloat(y_accuracy); builder.putFloat(z_accuracy); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/Latency.java b/java/src/com/swiftnav/sbp/piksi/Latency.java index 6e43319b17..1dd9a26c90 100644 --- a/java/src/com/swiftnav/sbp/piksi/Latency.java +++ b/java/src/com/swiftnav/sbp/piksi/Latency.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,33 +9,38 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class Latency extends SBPStruct { - + /** Average latency */ public int avg; - + /** Minimum latency */ public int lmin; - + /** Maximum latency */ public int lmax; - + /** Smoothed estimate of the current latency */ public int current; + - public Latency() {} + public Latency () {} @Override public Latency parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/piksi/MsgAlmanac.java b/java/src/com/swiftnav/sbp/piksi/MsgAlmanac.java index 08791318c0..b1cd72d5b9 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgAlmanac.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgAlmanac.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,43 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ALMANAC (0x0069). +/** SBP class for message MSG_ALMANAC (0x0069). * - *

You can have MSG_ALMANAC inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ALMANAC inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This is a legacy message for sending and loading a satellite alamanac onto the Piksi's flash - * memory from the host. - */ + * This is a legacy message for sending and loading a satellite alamanac onto + * the Piksi's flash memory from the host. */ + public class MsgAlmanac extends SBPMessage { public static final int TYPE = 0x0069; - public MsgAlmanac(int sender) { - super(sender, TYPE); - } - - public MsgAlmanac() { - super(TYPE); - } + - public MsgAlmanac(SBPMessage msg) throws SBPBinaryException { + public MsgAlmanac (int sender) { super(sender, TYPE); } + public MsgAlmanac () { super(TYPE); } + public MsgAlmanac (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAlmanac, expected 105, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAlmanac, expected 105, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCellModemStatus.java b/java/src/com/swiftnav/sbp/piksi/MsgCellModemStatus.java index a3004620a5..0d045d2ef7 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCellModemStatus.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCellModemStatus.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_CELL_MODEM_STATUS (0x00BE). + +/** SBP class for message MSG_CELL_MODEM_STATUS (0x00BE). * - *

You can have MSG_CELL_MODEM_STATUS inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_CELL_MODEM_STATUS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

If a cell modem is present on a piksi device, this message will be send periodically to update - * the host on the status of the modem and its various parameters. - */ + * If a cell modem is present on a piksi device, this message will be send + * periodically to update the host on the status of the modem and its various + * parameters. */ + public class MsgCellModemStatus extends SBPMessage { public static final int TYPE = 0x00BE; + /** Received cell signal strength in dBm, zero translates to unknown */ public int signal_strength; - + /** BER as reported by the modem, zero translates to unknown */ public float signal_error_rate; - + /** Unspecified data TBD for this schema */ public int[] reserved; + - public MsgCellModemStatus(int sender) { - super(sender, TYPE); - } - - public MsgCellModemStatus() { - super(TYPE); - } - - public MsgCellModemStatus(SBPMessage msg) throws SBPBinaryException { + public MsgCellModemStatus (int sender) { super(sender, TYPE); } + public MsgCellModemStatus () { super(TYPE); } + public MsgCellModemStatus (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCellModemStatus, expected 190, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCellModemStatus, expected 190, actual " + msg.type); } @Override @@ -61,14 +63,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ signal_strength = parser.getS8(); signal_error_rate = parser.getFloat(); - reserved = parser.getArrayofU8(); + reserved = parser.getArrayofU8(); } @Override protected void build(Builder builder) { builder.putS8(signal_strength); builder.putFloat(signal_error_rate); - builder.putArrayofU8(reserved); + builder.putArrayofU8(reserved); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCommandOutput.java b/java/src/com/swiftnav/sbp/piksi/MsgCommandOutput.java index 55c18f7b02..7d2cd3bec1 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCommandOutput.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCommandOutput.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_COMMAND_OUTPUT (0x00BC). +/** SBP class for message MSG_COMMAND_OUTPUT (0x00BC). * - *

You can have MSG_COMMAND_OUTPUT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_COMMAND_OUTPUT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Returns the standard output and standard error of the command requested by MSG_COMMAND_REQ. - * The sequence number can be used to filter for filtering the correct command. - */ + * Returns the standard output and standard error of the command requested by + * MSG_COMMAND_REQ. The sequence number can be used to filter for filtering + * the correct command. */ + public class MsgCommandOutput extends SBPMessage { public static final int TYPE = 0x00BC; + /** Sequence number */ public long sequence; - + /** Line of standard output or standard error */ public String line; + - public MsgCommandOutput(int sender) { - super(sender, TYPE); - } - - public MsgCommandOutput() { - super(TYPE); - } - - public MsgCommandOutput(SBPMessage msg) throws SBPBinaryException { + public MsgCommandOutput (int sender) { super(sender, TYPE); } + public MsgCommandOutput () { super(TYPE); } + public MsgCommandOutput (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCommandOutput, expected 188, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCommandOutput, expected 188, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); - line = parser.getString(); + line = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(sequence); - builder.putString(line); + builder.putString(line); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCommandReq.java b/java/src/com/swiftnav/sbp/piksi/MsgCommandReq.java index fcf9e0adff..5d983ce71e 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCommandReq.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCommandReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_COMMAND_REQ (0x00B8). +/** SBP class for message MSG_COMMAND_REQ (0x00B8). * - *

You can have MSG_COMMAND_REQ inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_COMMAND_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Request the recipient to execute an command. Output will be sent in MSG_LOG messages, and the - * exit code will be returned with MSG_COMMAND_RESP. - */ + * Request the recipient to execute an command. Output will be sent in MSG_LOG + * messages, and the exit code will be returned with MSG_COMMAND_RESP. */ + public class MsgCommandReq extends SBPMessage { public static final int TYPE = 0x00B8; + /** Sequence number */ public long sequence; - + /** Command line to execute */ public String command; + - public MsgCommandReq(int sender) { - super(sender, TYPE); - } - - public MsgCommandReq() { - super(TYPE); - } - - public MsgCommandReq(SBPMessage msg) throws SBPBinaryException { + public MsgCommandReq (int sender) { super(sender, TYPE); } + public MsgCommandReq () { super(TYPE); } + public MsgCommandReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCommandReq, expected 184, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCommandReq, expected 184, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); - command = parser.getString(); + command = parser.getString(); } @Override protected void build(Builder builder) { builder.putU32(sequence); - builder.putString(command); + builder.putString(command); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCommandResp.java b/java/src/com/swiftnav/sbp/piksi/MsgCommandResp.java index 032ae37085..e9447aef0b 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCommandResp.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCommandResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_COMMAND_RESP (0x00B9). +/** SBP class for message MSG_COMMAND_RESP (0x00B9). * - *

You can have MSG_COMMAND_RESP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_COMMAND_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The response to MSG_COMMAND_REQ with the return code of the command. A return code of zero - * indicates success. - */ + * The response to MSG_COMMAND_REQ with the return code of the command. A + * return code of zero indicates success. */ + public class MsgCommandResp extends SBPMessage { public static final int TYPE = 0x00B9; + /** Sequence number */ public long sequence; - + /** Exit code */ public int code; + - public MsgCommandResp(int sender) { - super(sender, TYPE); - } - - public MsgCommandResp() { - super(TYPE); - } - - public MsgCommandResp(SBPMessage msg) throws SBPBinaryException { + public MsgCommandResp (int sender) { super(sender, TYPE); } + public MsgCommandResp () { super(TYPE); } + public MsgCommandResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCommandResp, expected 185, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCommandResp, expected 185, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ sequence = parser.getU32(); - code = parser.getS32(); + code = parser.getS32(); } @Override protected void build(Builder builder) { builder.putU32(sequence); - builder.putS32(code); + builder.putS32(code); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCwResults.java b/java/src/com/swiftnav/sbp/piksi/MsgCwResults.java index a8ea0b8c39..c7dfd1940d 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCwResults.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCwResults.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_CW_RESULTS (0x00C0). +/** SBP class for message MSG_CW_RESULTS (0x00C0). * - *

You can have MSG_CW_RESULTS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_CW_RESULTS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This is an unused legacy message for result reporting from the CW interference channel on the - * SwiftNAP. This message will be removed in a future release. - */ + * This is an unused legacy message for result reporting from the CW + * interference channel on the SwiftNAP. This message will be removed in a + * future release. */ + public class MsgCwResults extends SBPMessage { public static final int TYPE = 0x00C0; - public MsgCwResults(int sender) { - super(sender, TYPE); - } - - public MsgCwResults() { - super(TYPE); - } + - public MsgCwResults(SBPMessage msg) throws SBPBinaryException { + public MsgCwResults (int sender) { super(sender, TYPE); } + public MsgCwResults () { super(TYPE); } + public MsgCwResults (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCwResults, expected 192, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCwResults, expected 192, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgCwStart.java b/java/src/com/swiftnav/sbp/piksi/MsgCwStart.java index 47d5db4d1b..444796e61e 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgCwStart.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgCwStart.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_CW_START (0x00C1). +/** SBP class for message MSG_CW_START (0x00C1). * - *

You can have MSG_CW_START inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_CW_START inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This is an unused legacy message from the host for starting the CW interference channel on the - * SwiftNAP. This message will be removed in a future release. - */ + * This is an unused legacy message from the host for starting the CW + * interference channel on the SwiftNAP. This message will be removed in a + * future release. */ + public class MsgCwStart extends SBPMessage { public static final int TYPE = 0x00C1; - public MsgCwStart(int sender) { - super(sender, TYPE); - } - - public MsgCwStart() { - super(TYPE); - } + - public MsgCwStart(SBPMessage msg) throws SBPBinaryException { + public MsgCwStart (int sender) { super(sender, TYPE); } + public MsgCwStart () { super(TYPE); } + public MsgCwStart (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCwStart, expected 193, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCwStart, expected 193, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgDeviceMonitor.java b/java/src/com/swiftnav/sbp/piksi/MsgDeviceMonitor.java index e702dfccb5..96ea313070 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgDeviceMonitor.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgDeviceMonitor.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,59 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_DEVICE_MONITOR (0x00B5). + +/** SBP class for message MSG_DEVICE_MONITOR (0x00B5). * - *

You can have MSG_DEVICE_MONITOR inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_DEVICE_MONITOR inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message contains temperature and voltage level measurements from the processor's - * monitoring system and the RF frontend die temperature if available. - */ + * This message contains temperature and voltage level measurements from the + * processor's monitoring system and the RF frontend die temperature if + * available. */ + public class MsgDeviceMonitor extends SBPMessage { public static final int TYPE = 0x00B5; + /** Device V_in */ public int dev_vin; - + /** Processor V_int */ public int cpu_vint; - + /** Processor V_aux */ public int cpu_vaux; - + /** Processor temperature */ public int cpu_temperature; - + /** Frontend temperature (if available) */ public int fe_temperature; + - public MsgDeviceMonitor(int sender) { - super(sender, TYPE); - } - - public MsgDeviceMonitor() { - super(TYPE); - } - - public MsgDeviceMonitor(SBPMessage msg) throws SBPBinaryException { + public MsgDeviceMonitor (int sender) { super(sender, TYPE); } + public MsgDeviceMonitor () { super(TYPE); } + public MsgDeviceMonitor (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgDeviceMonitor, expected 181, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgDeviceMonitor, expected 181, actual " + msg.type); } @Override @@ -68,7 +71,7 @@ protected void parse(Parser parser) throws SBPBinaryException { cpu_vint = parser.getS16(); cpu_vaux = parser.getS16(); cpu_temperature = parser.getS16(); - fe_temperature = parser.getS16(); + fe_temperature = parser.getS16(); } @Override @@ -77,7 +80,7 @@ protected void build(Builder builder) { builder.putS16(cpu_vint); builder.putS16(cpu_vaux); builder.putS16(cpu_temperature); - builder.putS16(fe_temperature); + builder.putS16(fe_temperature); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgFrontEndGain.java b/java/src/com/swiftnav/sbp/piksi/MsgFrontEndGain.java index 8ad1f0f76b..b83a8f13b1 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgFrontEndGain.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgFrontEndGain.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,66 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_FRONT_END_GAIN (0x00BF). +/** SBP class for message MSG_FRONT_END_GAIN (0x00BF). * - *

You can have MSG_FRONT_END_GAIN inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_FRONT_END_GAIN inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message describes the gain of each channel in the receiver frontend. Each gain is encoded - * as a non-dimensional percentage relative to the maximum range possible for the gain stage of the - * frontend. By convention, each gain array has 8 entries and the index of the array corresponding - * to the index of the rf channel in the frontend. A gain of 127 percent encodes that rf channel is - * not present in the hardware. A negative value implies an error for the particular gain stage as - * reported by the frontend. - */ + * This message describes the gain of each channel in the receiver frontend. + * Each gain is encoded as a non-dimensional percentage relative to the + * maximum range possible for the gain stage of the frontend. By convention, + * each gain array has 8 entries and the index of the array corresponding to + * the index of the rf channel in the frontend. A gain of 127 percent encodes + * that rf channel is not present in the hardware. A negative value implies an + * error for the particular gain stage as reported by the frontend. */ + public class MsgFrontEndGain extends SBPMessage { public static final int TYPE = 0x00BF; + /** RF gain for each frontend channel */ public int[] rf_gain; - + /** Intermediate frequency gain for each frontend channel */ public int[] if_gain; + - public MsgFrontEndGain(int sender) { - super(sender, TYPE); - } - - public MsgFrontEndGain() { - super(TYPE); - } - - public MsgFrontEndGain(SBPMessage msg) throws SBPBinaryException { + public MsgFrontEndGain (int sender) { super(sender, TYPE); } + public MsgFrontEndGain () { super(TYPE); } + public MsgFrontEndGain (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgFrontEndGain, expected 191, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgFrontEndGain, expected 191, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ rf_gain = parser.getArrayofS8(8); - if_gain = parser.getArrayofS8(8); + if_gain = parser.getArrayofS8(8); } @Override protected void build(Builder builder) { builder.putArrayofS8(rf_gain, 8); - builder.putArrayofS8(if_gain, 8); + builder.putArrayofS8(if_gain, 8); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgIarState.java b/java/src/com/swiftnav/sbp/piksi/MsgIarState.java index a28cfc2836..5fb9b2550f 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgIarState.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgIarState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_IAR_STATE (0x0019). +/** SBP class for message MSG_IAR_STATE (0x0019). * - *

You can have MSG_IAR_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_IAR_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message reports the state of the Integer Ambiguity Resolution (IAR) process, which - * resolves unknown integer ambiguities from double-differenced carrier-phase measurements from - * satellite observations. - */ + * This message reports the state of the Integer Ambiguity Resolution (IAR) + * process, which resolves unknown integer ambiguities from double-differenced + * carrier-phase measurements from satellite observations. */ + public class MsgIarState extends SBPMessage { public static final int TYPE = 0x0019; + /** Number of integer ambiguity hypotheses remaining */ public long num_hyps; + - public MsgIarState(int sender) { - super(sender, TYPE); - } - - public MsgIarState() { - super(TYPE); - } - - public MsgIarState(SBPMessage msg) throws SBPBinaryException { + public MsgIarState (int sender) { super(sender, TYPE); } + public MsgIarState () { super(TYPE); } + public MsgIarState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgIarState, expected 25, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgIarState, expected 25, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - num_hyps = parser.getU32(); + num_hyps = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(num_hyps); + builder.putU32(num_hyps); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgInitBaseDep.java b/java/src/com/swiftnav/sbp/piksi/MsgInitBaseDep.java index 3b7c99d432..c910d4cf1b 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgInitBaseDep.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgInitBaseDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_INIT_BASE_DEP (0x0023). +/** SBP class for message MSG_INIT_BASE_DEP (0x0023). * - *

You can have MSG_INIT_BASE_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_INIT_BASE_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgInitBaseDep extends SBPMessage { public static final int TYPE = 0x0023; - public MsgInitBaseDep(int sender) { - super(sender, TYPE); - } - - public MsgInitBaseDep() { - super(TYPE); - } + - public MsgInitBaseDep(SBPMessage msg) throws SBPBinaryException { + public MsgInitBaseDep (int sender) { super(sender, TYPE); } + public MsgInitBaseDep () { super(TYPE); } + public MsgInitBaseDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgInitBaseDep, expected 35, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgInitBaseDep, expected 35, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgMaskSatellite.java b/java/src/com/swiftnav/sbp/piksi/MsgMaskSatellite.java index b7063690fc..1d0b369b68 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgMaskSatellite.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgMaskSatellite.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_MASK_SATELLITE (0x002B). +/** SBP class for message MSG_MASK_SATELLITE (0x002B). * - *

You can have MSG_MASK_SATELLITE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_MASK_SATELLITE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message allows setting a mask to prevent a particular satellite from being used in - * various Piksi subsystems. - */ + * This message allows setting a mask to prevent a particular satellite from + * being used in various Piksi subsystems. */ + public class MsgMaskSatellite extends SBPMessage { public static final int TYPE = 0x002B; + /** Mask of systems that should ignore this satellite. */ public int mask; - + /** GNSS signal for which the mask is applied */ public GnssSignal sid; + - public MsgMaskSatellite(int sender) { - super(sender, TYPE); - } - - public MsgMaskSatellite() { - super(TYPE); - } - - public MsgMaskSatellite(SBPMessage msg) throws SBPBinaryException { + public MsgMaskSatellite (int sender) { super(sender, TYPE); } + public MsgMaskSatellite () { super(TYPE); } + public MsgMaskSatellite (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgMaskSatellite, expected 43, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgMaskSatellite, expected 43, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ mask = parser.getU8(); - sid = new GnssSignal().parse(parser); + sid = new GnssSignal().parse(parser); } @Override protected void build(Builder builder) { builder.putU8(mask); - sid.build(builder); + sid.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgMaskSatelliteDep.java b/java/src/com/swiftnav/sbp/piksi/MsgMaskSatelliteDep.java index 9ba9131766..1a946cab46 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgMaskSatelliteDep.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgMaskSatelliteDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_MASK_SATELLITE_DEP (0x001B). +/** SBP class for message MSG_MASK_SATELLITE_DEP (0x001B). * - *

You can have MSG_MASK_SATELLITE_DEP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_MASK_SATELLITE_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgMaskSatelliteDep extends SBPMessage { public static final int TYPE = 0x001B; + /** Mask of systems that should ignore this satellite. */ public int mask; - + /** GNSS signal for which the mask is applied */ public GnssSignalDep sid; + - public MsgMaskSatelliteDep(int sender) { - super(sender, TYPE); - } - - public MsgMaskSatelliteDep() { - super(TYPE); - } - - public MsgMaskSatelliteDep(SBPMessage msg) throws SBPBinaryException { + public MsgMaskSatelliteDep (int sender) { super(sender, TYPE); } + public MsgMaskSatelliteDep () { super(TYPE); } + public MsgMaskSatelliteDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgMaskSatelliteDep, expected 27, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgMaskSatelliteDep, expected 27, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ mask = parser.getU8(); - sid = new GnssSignalDep().parse(parser); + sid = new GnssSignalDep().parse(parser); } @Override protected void build(Builder builder) { builder.putU8(mask); - sid.build(builder); + sid.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgNetworkBandwidthUsage.java b/java/src/com/swiftnav/sbp/piksi/MsgNetworkBandwidthUsage.java index 21f4782f8a..9fc116623e 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgNetworkBandwidthUsage.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgNetworkBandwidthUsage.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NETWORK_BANDWIDTH_USAGE (0x00BD). +/** SBP class for message MSG_NETWORK_BANDWIDTH_USAGE (0x00BD). * - *

You can have MSG_NETWORK_BANDWIDTH_USAGE inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_NETWORK_BANDWIDTH_USAGE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The bandwidth usage, a list of usage by interface. - */ + * The bandwidth usage, a list of usage by interface. */ + public class MsgNetworkBandwidthUsage extends SBPMessage { public static final int TYPE = 0x00BD; + /** Usage measurement array */ public NetworkUsage[] interfaces; + - public MsgNetworkBandwidthUsage(int sender) { - super(sender, TYPE); - } - - public MsgNetworkBandwidthUsage() { - super(TYPE); - } - - public MsgNetworkBandwidthUsage(SBPMessage msg) throws SBPBinaryException { + public MsgNetworkBandwidthUsage (int sender) { super(sender, TYPE); } + public MsgNetworkBandwidthUsage () { super(TYPE); } + public MsgNetworkBandwidthUsage (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNetworkBandwidthUsage, expected 189, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNetworkBandwidthUsage, expected 189, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - interfaces = parser.getArray(NetworkUsage.class); + interfaces = parser.getArray(NetworkUsage.class); } @Override protected void build(Builder builder) { - builder.putArray(interfaces); + builder.putArray(interfaces); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateReq.java b/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateReq.java index 1845f386a7..9276aebbe0 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateReq.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,42 +9,43 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NETWORK_STATE_REQ (0x00BA). +/** SBP class for message MSG_NETWORK_STATE_REQ (0x00BA). * - *

You can have MSG_NETWORK_STATE_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_NETWORK_STATE_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Request state of Piksi network interfaces. Output will be sent in MSG_NETWORK_STATE_RESP - * messages. - */ + * Request state of Piksi network interfaces. Output will be sent in + * MSG_NETWORK_STATE_RESP messages. */ + public class MsgNetworkStateReq extends SBPMessage { public static final int TYPE = 0x00BA; - public MsgNetworkStateReq(int sender) { - super(sender, TYPE); - } - - public MsgNetworkStateReq() { - super(TYPE); - } + - public MsgNetworkStateReq(SBPMessage msg) throws SBPBinaryException { + public MsgNetworkStateReq (int sender) { super(sender, TYPE); } + public MsgNetworkStateReq () { super(TYPE); } + public MsgNetworkStateReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNetworkStateReq, expected 186, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNetworkStateReq, expected 186, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateResp.java b/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateResp.java index e2e1692221..499cf45260 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateResp.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgNetworkStateResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,67 +9,67 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_NETWORK_STATE_RESP (0x00BB). +/** SBP class for message MSG_NETWORK_STATE_RESP (0x00BB). * - *

You can have MSG_NETWORK_STATE_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_NETWORK_STATE_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The state of a network interface on the Piksi. Data is made to reflect output of ifaddrs - * struct returned by getifaddrs in c. - */ + * The state of a network interface on the Piksi. Data is made to reflect + * output of ifaddrs struct returned by getifaddrs in c. */ + public class MsgNetworkStateResp extends SBPMessage { public static final int TYPE = 0x00BB; + /** IPv4 address (all zero when unavailable) */ public int[] ipv4_address; - + /** IPv4 netmask CIDR notation */ public int ipv4_mask_size; - + /** IPv6 address (all zero when unavailable) */ public int[] ipv6_address; - + /** IPv6 netmask CIDR notation */ public int ipv6_mask_size; - + /** Number of Rx bytes */ public long rx_bytes; - + /** Number of Tx bytes */ public long tx_bytes; - + /** Interface Name */ public String interface_name; - + /** Interface flags from SIOCGIFFLAGS */ public long flags; + - public MsgNetworkStateResp(int sender) { - super(sender, TYPE); - } - - public MsgNetworkStateResp() { - super(TYPE); - } - - public MsgNetworkStateResp(SBPMessage msg) throws SBPBinaryException { + public MsgNetworkStateResp (int sender) { super(sender, TYPE); } + public MsgNetworkStateResp () { super(TYPE); } + public MsgNetworkStateResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgNetworkStateResp, expected 187, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgNetworkStateResp, expected 187, actual " + msg.type); } @Override @@ -81,7 +82,7 @@ protected void parse(Parser parser) throws SBPBinaryException { rx_bytes = parser.getU32(); tx_bytes = parser.getU32(); interface_name = parser.getString(16); - flags = parser.getU32(); + flags = parser.getU32(); } @Override @@ -93,7 +94,7 @@ protected void build(Builder builder) { builder.putU32(rx_bytes); builder.putU32(tx_bytes); builder.putString(interface_name, 16); - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgReset.java b/java/src/com/swiftnav/sbp/piksi/MsgReset.java index d60fb5bc63..671451a326 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgReset.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgReset.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_RESET (0x00B6). +/** SBP class for message MSG_RESET (0x00B6). * - *

You can have MSG_RESET inherent its fields directly from an inherited SBP object, or construct - * it inline using a dict of its fields. + * You can have MSG_RESET inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message from the host resets the Piksi back into the bootloader. - */ + * This message from the host resets the Piksi back into the bootloader. */ + public class MsgReset extends SBPMessage { public static final int TYPE = 0x00B6; + /** Reset flags */ public long flags; + - public MsgReset(int sender) { - super(sender, TYPE); - } - - public MsgReset() { - super(TYPE); - } - - public MsgReset(SBPMessage msg) throws SBPBinaryException { + public MsgReset (int sender) { super(sender, TYPE); } + public MsgReset () { super(TYPE); } + public MsgReset (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgReset, expected 182, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgReset, expected 182, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - flags = parser.getU32(); + flags = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgResetDep.java b/java/src/com/swiftnav/sbp/piksi/MsgResetDep.java index 70b5d030f2..cba4bfdeee 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgResetDep.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgResetDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_RESET_DEP (0x00B2). +/** SBP class for message MSG_RESET_DEP (0x00B2). * - *

You can have MSG_RESET_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_RESET_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgResetDep extends SBPMessage { public static final int TYPE = 0x00B2; - public MsgResetDep(int sender) { - super(sender, TYPE); - } - - public MsgResetDep() { - super(TYPE); - } + - public MsgResetDep(SBPMessage msg) throws SBPBinaryException { + public MsgResetDep (int sender) { super(sender, TYPE); } + public MsgResetDep () { super(TYPE); } + public MsgResetDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgResetDep, expected 178, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgResetDep, expected 178, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgResetFilters.java b/java/src/com/swiftnav/sbp/piksi/MsgResetFilters.java index 05791276af..dfe8540fa2 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgResetFilters.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgResetFilters.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_RESET_FILTERS (0x0022). +/** SBP class for message MSG_RESET_FILTERS (0x0022). * - *

You can have MSG_RESET_FILTERS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_RESET_FILTERS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message resets either the DGNSS Kalman filters or Integer Ambiguity Resolution (IAR) - * process. - */ + * This message resets either the DGNSS Kalman filters or Integer Ambiguity + * Resolution (IAR) process. */ + public class MsgResetFilters extends SBPMessage { public static final int TYPE = 0x0022; + /** Filter flags */ public int filter; + - public MsgResetFilters(int sender) { - super(sender, TYPE); - } - - public MsgResetFilters() { - super(TYPE); - } - - public MsgResetFilters(SBPMessage msg) throws SBPBinaryException { + public MsgResetFilters (int sender) { super(sender, TYPE); } + public MsgResetFilters () { super(TYPE); } + public MsgResetFilters (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgResetFilters, expected 34, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgResetFilters, expected 34, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - filter = parser.getU8(); + filter = parser.getU8(); } @Override protected void build(Builder builder) { - builder.putU8(filter); + builder.putU8(filter); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgSetTime.java b/java/src/com/swiftnav/sbp/piksi/MsgSetTime.java index 8f4c67b8c4..57bf6a275d 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgSetTime.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgSetTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,43 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SET_TIME (0x0068). +/** SBP class for message MSG_SET_TIME (0x0068). * - *

You can have MSG_SET_TIME inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SET_TIME inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message sets up timing functionality using a coarse GPS time estimate sent by the host. - */ + * This message sets up timing functionality using a coarse GPS time estimate + * sent by the host. */ + public class MsgSetTime extends SBPMessage { public static final int TYPE = 0x0068; - public MsgSetTime(int sender) { - super(sender, TYPE); - } - - public MsgSetTime() { - super(TYPE); - } + - public MsgSetTime(SBPMessage msg) throws SBPBinaryException { + public MsgSetTime (int sender) { super(sender, TYPE); } + public MsgSetTime () { super(TYPE); } + public MsgSetTime (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSetTime, expected 104, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSetTime, expected 104, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgSpecan.java b/java/src/com/swiftnav/sbp/piksi/MsgSpecan.java index 88b59b738c..07bc3bd1ab 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgSpecan.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgSpecan.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SPECAN (0x0051). +/** SBP class for message MSG_SPECAN (0x0051). * - *

You can have MSG_SPECAN inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SPECAN inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Spectrum analyzer packet. - */ + * Spectrum analyzer packet. */ + public class MsgSpecan extends SBPMessage { public static final int TYPE = 0x0051; + /** Channel ID */ public int channel_tag; - + /** Receiver time of this observation */ public GPSTime t; - + /** Reference frequency of this packet */ public float freq_ref; - + /** Frequency step of points in this packet */ public float freq_step; - + /** Reference amplitude of this packet */ public float amplitude_ref; - + /** Amplitude unit value of points in this packet */ public float amplitude_unit; - + /** Amplitude values (in the above units) of points in this packet */ public int[] amplitude_value; + - public MsgSpecan(int sender) { - super(sender, TYPE); - } - - public MsgSpecan() { - super(TYPE); - } - - public MsgSpecan(SBPMessage msg) throws SBPBinaryException { + public MsgSpecan (int sender) { super(sender, TYPE); } + public MsgSpecan () { super(TYPE); } + public MsgSpecan (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSpecan, expected 81, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSpecan, expected 81, actual " + msg.type); } @Override @@ -76,7 +77,7 @@ protected void parse(Parser parser) throws SBPBinaryException { freq_step = parser.getFloat(); amplitude_ref = parser.getFloat(); amplitude_unit = parser.getFloat(); - amplitude_value = parser.getArrayofU8(); + amplitude_value = parser.getArrayofU8(); } @Override @@ -87,7 +88,7 @@ protected void build(Builder builder) { builder.putFloat(freq_step); builder.putFloat(amplitude_ref); builder.putFloat(amplitude_unit); - builder.putArrayofU8(amplitude_value); + builder.putArrayofU8(amplitude_value); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgSpecanDep.java b/java/src/com/swiftnav/sbp/piksi/MsgSpecanDep.java index fc30de19c7..a1306ff062 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgSpecanDep.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgSpecanDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SPECAN_DEP (0x0050). +/** SBP class for message MSG_SPECAN_DEP (0x0050). * - *

You can have MSG_SPECAN_DEP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SPECAN_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSpecanDep extends SBPMessage { public static final int TYPE = 0x0050; + /** Channel ID */ public int channel_tag; - + /** Receiver time of this observation */ public GPSTimeDep t; - + /** Reference frequency of this packet */ public float freq_ref; - + /** Frequency step of points in this packet */ public float freq_step; - + /** Reference amplitude of this packet */ public float amplitude_ref; - + /** Amplitude unit value of points in this packet */ public float amplitude_unit; - + /** Amplitude values (in the above units) of points in this packet */ public int[] amplitude_value; + - public MsgSpecanDep(int sender) { - super(sender, TYPE); - } - - public MsgSpecanDep() { - super(TYPE); - } - - public MsgSpecanDep(SBPMessage msg) throws SBPBinaryException { + public MsgSpecanDep (int sender) { super(sender, TYPE); } + public MsgSpecanDep () { super(TYPE); } + public MsgSpecanDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSpecanDep, expected 80, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSpecanDep, expected 80, actual " + msg.type); } @Override @@ -76,7 +77,7 @@ protected void parse(Parser parser) throws SBPBinaryException { freq_step = parser.getFloat(); amplitude_ref = parser.getFloat(); amplitude_unit = parser.getFloat(); - amplitude_value = parser.getArrayofU8(); + amplitude_value = parser.getArrayofU8(); } @Override @@ -87,7 +88,7 @@ protected void build(Builder builder) { builder.putFloat(freq_step); builder.putFloat(amplitude_ref); builder.putFloat(amplitude_unit); - builder.putArrayofU8(amplitude_value); + builder.putArrayofU8(amplitude_value); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgThreadState.java b/java/src/com/swiftnav/sbp/piksi/MsgThreadState.java index 61c988f34d..9eb66531d2 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgThreadState.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgThreadState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_THREAD_STATE (0x0017). + +/** SBP class for message MSG_THREAD_STATE (0x0017). * - *

You can have MSG_THREAD_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_THREAD_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The thread usage message from the device reports real-time operating system (RTOS) thread - * usage statistics for the named thread. The reported percentage values must be normalized. - */ + * The thread usage message from the device reports real-time operating system + * (RTOS) thread usage statistics for the named thread. The reported + * percentage values must be normalized. */ + public class MsgThreadState extends SBPMessage { public static final int TYPE = 0x0017; + /** Thread name (NULL terminated) */ public String name; - - /** - * Percentage cpu use for this thread. Values range from 0 - 1000 and needs to be renormalized - * to 100 - */ + + /** Percentage cpu use for this thread. Values range from 0 - 1000 and + * needs to be renormalized to 100 */ public int cpu; - + /** Free stack space for this thread */ public long stack_free; + - public MsgThreadState(int sender) { - super(sender, TYPE); - } - - public MsgThreadState() { - super(TYPE); - } - - public MsgThreadState(SBPMessage msg) throws SBPBinaryException { + public MsgThreadState (int sender) { super(sender, TYPE); } + public MsgThreadState () { super(TYPE); } + public MsgThreadState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgThreadState, expected 23, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgThreadState, expected 23, actual " + msg.type); } @Override @@ -63,14 +64,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ name = parser.getString(20); cpu = parser.getU16(); - stack_free = parser.getU32(); + stack_free = parser.getU32(); } @Override protected void build(Builder builder) { builder.putString(name, 20); builder.putU16(cpu); - builder.putU32(stack_free); + builder.putU32(stack_free); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgUartState.java b/java/src/com/swiftnav/sbp/piksi/MsgUartState.java index fa7d294ea3..c4ecb96088 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgUartState.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgUartState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_UART_STATE (0x001D). + +/** SBP class for message MSG_UART_STATE (0x001D). * - *

You can have MSG_UART_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_UART_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The UART message reports data latency and throughput of the UART channels providing SBP I/O. - * On the default Piksi configuration, UARTs A and B are used for telemetry radios, but can also be - * host access ports for embedded hosts, or other interfaces in future. The reported percentage - * values must be normalized. Observations latency and period can be used to assess the health of - * the differential corrections link. Latency provides the timeliness of received base observations - * while the period indicates their likelihood of transmission. - */ + * The UART message reports data latency and throughput of the UART channels + * providing SBP I/O. On the default Piksi configuration, UARTs A and B are + * used for telemetry radios, but can also be host access ports for embedded + * hosts, or other interfaces in future. The reported percentage values must + * be normalized. Observations latency and period can be used to assess the + * health of the differential corrections link. Latency provides the + * timeliness of received base observations while the period indicates their + * likelihood of transmission. */ + public class MsgUartState extends SBPMessage { public static final int TYPE = 0x001D; + /** State of UART A */ public UARTChannel uart_a; - + /** State of UART B */ public UARTChannel uart_b; - + /** State of UART FTDI (USB logger) */ public UARTChannel uart_ftdi; - + /** UART communication latency */ public Latency latency; - + /** Observation receipt period */ public Period obs_period; + - public MsgUartState(int sender) { - super(sender, TYPE); - } - - public MsgUartState() { - super(TYPE); - } - - public MsgUartState(SBPMessage msg) throws SBPBinaryException { + public MsgUartState (int sender) { super(sender, TYPE); } + public MsgUartState () { super(TYPE); } + public MsgUartState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUartState, expected 29, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUartState, expected 29, actual " + msg.type); } @Override @@ -72,7 +76,7 @@ protected void parse(Parser parser) throws SBPBinaryException { uart_b = new UARTChannel().parse(parser); uart_ftdi = new UARTChannel().parse(parser); latency = new Latency().parse(parser); - obs_period = new Period().parse(parser); + obs_period = new Period().parse(parser); } @Override @@ -81,7 +85,7 @@ protected void build(Builder builder) { uart_b.build(builder); uart_ftdi.build(builder); latency.build(builder); - obs_period.build(builder); + obs_period.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/MsgUartStateDepa.java b/java/src/com/swiftnav/sbp/piksi/MsgUartStateDepa.java index 2eafa5820a..87230c6ff4 100644 --- a/java/src/com/swiftnav/sbp/piksi/MsgUartStateDepa.java +++ b/java/src/com/swiftnav/sbp/piksi/MsgUartStateDepa.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_UART_STATE_DEPA (0x0018). + +/** SBP class for message MSG_UART_STATE_DEPA (0x0018). * - *

You can have MSG_UART_STATE_DEPA inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_UART_STATE_DEPA inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgUartStateDepa extends SBPMessage { public static final int TYPE = 0x0018; + /** State of UART A */ public UARTChannel uart_a; - + /** State of UART B */ public UARTChannel uart_b; - + /** State of UART FTDI (USB logger) */ public UARTChannel uart_ftdi; - + /** UART communication latency */ public Latency latency; + - public MsgUartStateDepa(int sender) { - super(sender, TYPE); - } - - public MsgUartStateDepa() { - super(TYPE); - } - - public MsgUartStateDepa(SBPMessage msg) throws SBPBinaryException { + public MsgUartStateDepa (int sender) { super(sender, TYPE); } + public MsgUartStateDepa () { super(TYPE); } + public MsgUartStateDepa (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUartStateDepa, expected 24, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUartStateDepa, expected 24, actual " + msg.type); } @Override @@ -63,7 +65,7 @@ protected void parse(Parser parser) throws SBPBinaryException { uart_a = new UARTChannel().parse(parser); uart_b = new UARTChannel().parse(parser); uart_ftdi = new UARTChannel().parse(parser); - latency = new Latency().parse(parser); + latency = new Latency().parse(parser); } @Override @@ -71,7 +73,7 @@ protected void build(Builder builder) { uart_a.build(builder); uart_b.build(builder); uart_ftdi.build(builder); - latency.build(builder); + latency.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/piksi/NetworkUsage.java b/java/src/com/swiftnav/sbp/piksi/NetworkUsage.java index 8b1c13dfbf..7e804659df 100644 --- a/java/src/com/swiftnav/sbp/piksi/NetworkUsage.java +++ b/java/src/com/swiftnav/sbp/piksi/NetworkUsage.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,37 +9,41 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; public class NetworkUsage extends SBPStruct { - + /** Duration over which the measurement was collected */ public BigInteger duration; - + /** Number of bytes handled in total within period */ public BigInteger total_bytes; - + /** Number of bytes transmitted within period */ public long rx_bytes; - + /** Number of bytes received within period */ public long tx_bytes; - + /** Interface Name */ public String interface_name; + - public NetworkUsage() {} + public NetworkUsage () {} @Override public NetworkUsage parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/piksi/Period.java b/java/src/com/swiftnav/sbp/piksi/Period.java index 5667c5c3b5..44540a9210 100644 --- a/java/src/com/swiftnav/sbp/piksi/Period.java +++ b/java/src/com/swiftnav/sbp/piksi/Period.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,33 +9,38 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class Period extends SBPStruct { - + /** Average period */ public int avg; - + /** Minimum period */ public int pmin; - + /** Maximum period */ public int pmax; - + /** Smoothed estimate of the current period */ public int current; + - public Period() {} + public Period () {} @Override public Period parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/piksi/UARTChannel.java b/java/src/com/swiftnav/sbp/piksi/UARTChannel.java index fdae284ffe..a7ce9ad816 100644 --- a/java/src/com/swiftnav/sbp/piksi/UARTChannel.java +++ b/java/src/com/swiftnav/sbp/piksi/UARTChannel.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,39 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.piksi; // This file was auto-generated from yaml/swiftnav/sbp/piksi.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class UARTChannel extends SBPStruct { - + /** UART transmit throughput */ public float tx_throughput; - + /** UART receive throughput */ public float rx_throughput; - + /** UART CRC error count */ public int crc_error_count; - + /** UART IO error count */ public int io_error_count; - + /** UART transmit buffer percentage utilization (ranges from 0 to 255) */ public int tx_buffer_level; - + /** UART receive buffer percentage utilization (ranges from 0 to 255) */ public int rx_buffer_level; + - public UARTChannel() {} + public UARTChannel () {} @Override public UARTChannel parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/profiling/MsgMeasurementPoint.java b/java/src/com/swiftnav/sbp/profiling/MsgMeasurementPoint.java index c454817c53..1362d997a4 100644 --- a/java/src/com/swiftnav/sbp/profiling/MsgMeasurementPoint.java +++ b/java/src/com/swiftnav/sbp/profiling/MsgMeasurementPoint.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.profiling; // This file was auto-generated from yaml/swiftnav/sbp/profiling.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_MEASUREMENT_POINT (0xCF00). + +/** SBP class for message MSG_MEASUREMENT_POINT (0xCF00). * - *

You can have MSG_MEASUREMENT_POINT inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_MEASUREMENT_POINT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Tracks execution time of certain code paths in specially built products. This message should - * only be expected and processed on the direction of Swift's engineering teams. - */ + * Tracks execution time of certain code paths in specially built products. + * This message should only be expected and processed on the direction of + * Swift's engineering teams. */ + public class MsgMeasurementPoint extends SBPMessage { public static final int TYPE = 0xCF00; + /** Total time spent in measurement point (microseconds) */ public long total_time; - + /** Number of times measurement point has executed */ public int num_executions; - + /** Minimum execution time (microseconds) */ public long min; - + /** Maximum execution time (microseconds) */ public long max; - + /** Return address */ public BigInteger return_addr; - + /** Unique ID */ public BigInteger id; - + /** CPU slice time (milliseconds) */ public BigInteger slice_time; - + /** Line number */ public int line; - + /** Function name */ public String func; + - public MsgMeasurementPoint(int sender) { - super(sender, TYPE); - } - - public MsgMeasurementPoint() { - super(TYPE); - } - - public MsgMeasurementPoint(SBPMessage msg) throws SBPBinaryException { + public MsgMeasurementPoint (int sender) { super(sender, TYPE); } + public MsgMeasurementPoint () { super(TYPE); } + public MsgMeasurementPoint (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgMeasurementPoint, expected 52992, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgMeasurementPoint, expected 52992, actual " + msg.type); } @Override @@ -84,7 +86,7 @@ protected void parse(Parser parser) throws SBPBinaryException { id = parser.getU64(); slice_time = parser.getU64(); line = parser.getU16(); - func = parser.getString(); + func = parser.getString(); } @Override @@ -97,7 +99,7 @@ protected void build(Builder builder) { builder.putU64(id); builder.putU64(slice_time); builder.putU16(line); - builder.putString(func); + builder.putString(func); } @Override diff --git a/java/src/com/swiftnav/sbp/profiling/MsgProfilingResourceCounter.java b/java/src/com/swiftnav/sbp/profiling/MsgProfilingResourceCounter.java index 0f483719e3..167bf7343e 100644 --- a/java/src/com/swiftnav/sbp/profiling/MsgProfilingResourceCounter.java +++ b/java/src/com/swiftnav/sbp/profiling/MsgProfilingResourceCounter.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,51 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.profiling; // This file was auto-generated from yaml/swiftnav/sbp/profiling.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_PROFILING_RESOURCE_COUNTER (0xCF03). + +/** SBP class for message MSG_PROFILING_RESOURCE_COUNTER (0xCF03). * - *

You can have MSG_PROFILING_RESOURCE_COUNTER inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_PROFILING_RESOURCE_COUNTER inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Information about resource buckets. Refer to product documentation to understand the meaning - * and values in this message. - */ + * Information about resource buckets. Refer to product documentation to + * understand the meaning and values in this message. */ + public class MsgProfilingResourceCounter extends SBPMessage { public static final int TYPE = 0xCF03; + /** Message number in complete sequence */ public int seq_no; - + /** Length of message sequence */ public int seq_len; - + /** List of resource buckets */ public ResourceBucket[] buckets; + - public MsgProfilingResourceCounter(int sender) { - super(sender, TYPE); - } - - public MsgProfilingResourceCounter() { - super(TYPE); - } - - public MsgProfilingResourceCounter(SBPMessage msg) throws SBPBinaryException { + public MsgProfilingResourceCounter (int sender) { super(sender, TYPE); } + public MsgProfilingResourceCounter () { super(TYPE); } + public MsgProfilingResourceCounter (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgProfilingResourceCounter, expected 52995, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgProfilingResourceCounter, expected 52995, actual " + msg.type); } @Override @@ -61,14 +61,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ seq_no = parser.getU8(); seq_len = parser.getU8(); - buckets = parser.getArray(ResourceBucket.class); + buckets = parser.getArray(ResourceBucket.class); } @Override protected void build(Builder builder) { builder.putU8(seq_no); builder.putU8(seq_len); - builder.putArray(buckets); + builder.putArray(buckets); } @Override diff --git a/java/src/com/swiftnav/sbp/profiling/MsgProfilingSystemInfo.java b/java/src/com/swiftnav/sbp/profiling/MsgProfilingSystemInfo.java index c59470c126..919601856a 100644 --- a/java/src/com/swiftnav/sbp/profiling/MsgProfilingSystemInfo.java +++ b/java/src/com/swiftnav/sbp/profiling/MsgProfilingSystemInfo.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.profiling; // This file was auto-generated from yaml/swiftnav/sbp/profiling.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_PROFILING_SYSTEM_INFO (0xCF01). + +/** SBP class for message MSG_PROFILING_SYSTEM_INFO (0xCF01). * - *

You can have MSG_PROFILING_SYSTEM_INFO inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_PROFILING_SYSTEM_INFO inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Contains basic information about system resource usage. System is defined in terms of the - * source of this message and may vary from sender to sender. Refer to product documentation to - * understand the exact scope and meaning of this message. - */ + * Contains basic information about system resource usage. System is defined + * in terms of the source of this message and may vary from sender to sender. + * Refer to product documentation to understand the exact scope and meaning of + * this message. */ + public class MsgProfilingSystemInfo extends SBPMessage { public static final int TYPE = 0xCF01; + /** Total cpu time in microseconds consumed by this system */ public BigInteger total_cpu_time; - + /** Age of the producing system in microseconds */ public BigInteger age; - + /** Number of threads being tracked by this system */ public int n_threads; - + /** Number of bytes allocated on the heap */ public long heap_usage; + - public MsgProfilingSystemInfo(int sender) { - super(sender, TYPE); - } - - public MsgProfilingSystemInfo() { - super(TYPE); - } - - public MsgProfilingSystemInfo(SBPMessage msg) throws SBPBinaryException { + public MsgProfilingSystemInfo (int sender) { super(sender, TYPE); } + public MsgProfilingSystemInfo () { super(TYPE); } + public MsgProfilingSystemInfo (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgProfilingSystemInfo, expected 52993, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgProfilingSystemInfo, expected 52993, actual " + msg.type); } @Override @@ -65,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { total_cpu_time = parser.getU64(); age = parser.getU64(); n_threads = parser.getU8(); - heap_usage = parser.getU32(); + heap_usage = parser.getU32(); } @Override @@ -73,7 +75,7 @@ protected void build(Builder builder) { builder.putU64(total_cpu_time); builder.putU64(age); builder.putU8(n_threads); - builder.putU32(heap_usage); + builder.putU32(heap_usage); } @Override diff --git a/java/src/com/swiftnav/sbp/profiling/MsgProfilingThreadInfo.java b/java/src/com/swiftnav/sbp/profiling/MsgProfilingThreadInfo.java index e85f000f77..dbcd3e08da 100644 --- a/java/src/com/swiftnav/sbp/profiling/MsgProfilingThreadInfo.java +++ b/java/src/com/swiftnav/sbp/profiling/MsgProfilingThreadInfo.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.profiling; // This file was auto-generated from yaml/swiftnav/sbp/profiling.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_PROFILING_THREAD_INFO (0xCF02). +/** SBP class for message MSG_PROFILING_THREAD_INFO (0xCF02). * - *

You can have MSG_PROFILING_THREAD_INFO inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_PROFILING_THREAD_INFO inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Contains profiling information related to a single thread being tracked by the producing - * system. Refer to product documentation to understand the exact scope and meaning of this message. - */ + * Contains profiling information related to a single thread being tracked by + * the producing system. Refer to product documentation to understand the + * exact scope and meaning of this message. */ + public class MsgProfilingThreadInfo extends SBPMessage { public static final int TYPE = 0xCF02; + /** Total cpu time in microseconds consumed by this thread */ public BigInteger total_cpu_time; - + /** Age of the thread in microseconds */ public BigInteger age; - + /** Thread state */ public int state; - + /** Stack size in bytes */ public long stack_size; - + /** Stack high water usage in bytes */ public long stack_usage; - + /** Thread name */ public String name; + - public MsgProfilingThreadInfo(int sender) { - super(sender, TYPE); - } - - public MsgProfilingThreadInfo() { - super(TYPE); - } - - public MsgProfilingThreadInfo(SBPMessage msg) throws SBPBinaryException { + public MsgProfilingThreadInfo (int sender) { super(sender, TYPE); } + public MsgProfilingThreadInfo () { super(TYPE); } + public MsgProfilingThreadInfo (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgProfilingThreadInfo, expected 52994, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgProfilingThreadInfo, expected 52994, actual " + msg.type); } @Override @@ -72,7 +74,7 @@ protected void parse(Parser parser) throws SBPBinaryException { state = parser.getU8(); stack_size = parser.getU32(); stack_usage = parser.getU32(); - name = parser.getString(); + name = parser.getString(); } @Override @@ -82,7 +84,7 @@ protected void build(Builder builder) { builder.putU8(state); builder.putU32(stack_size); builder.putU32(stack_usage); - builder.putString(name); + builder.putString(name); } @Override diff --git a/java/src/com/swiftnav/sbp/profiling/ResourceBucket.java b/java/src/com/swiftnav/sbp/profiling/ResourceBucket.java index 4795ca39c9..86419a0227 100644 --- a/java/src/com/swiftnav/sbp/profiling/ResourceBucket.java +++ b/java/src/com/swiftnav/sbp/profiling/ResourceBucket.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,47 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.profiling; // This file was auto-generated from yaml/swiftnav/sbp/profiling.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class ResourceBucket extends SBPStruct { - + /** Bucket name */ public String name; - + /** Number of threads */ public int thread; - + /** Number of mutexes */ public int mutex; - + /** Number of condition variables */ public int cv; - + /** Number of IO handles */ public int io; - + /** Number of bytes allocated on the heap */ public long heap_bytes_alloc; - + /** Number of bytes freed on the heap */ public long heap_bytes_free; - + /** Number of bytes written to IO handles */ public long io_write; - + /** Number of bytes read from IO handles */ public long io_read; + - public ResourceBucket() {} + public ResourceBucket () {} @Override public ResourceBucket parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/sbas/MsgSbasRaw.java b/java/src/com/swiftnav/sbp/sbas/MsgSbasRaw.java index 2e0dfd3646..c07a2b53eb 100644 --- a/java/src/com/swiftnav/sbp/sbas/MsgSbasRaw.java +++ b/java/src/com/swiftnav/sbp/sbas/MsgSbasRaw.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.sbas; // This file was auto-generated from yaml/swiftnav/sbp/sbas.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SBAS_RAW (0x7777). + +/** SBP class for message MSG_SBAS_RAW (0x7777). * - *

You can have MSG_SBAS_RAW inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SBAS_RAW inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message is sent once per second per SBAS satellite. ME checks the parity of the data - * block and sends only blocks that pass the check. - */ + * This message is sent once per second per SBAS satellite. ME checks the + * parity of the data block and sends only blocks that pass the check. */ + public class MsgSbasRaw extends SBPMessage { public static final int TYPE = 0x7777; + /** GNSS signal identifier. */ public GnssSignal sid; - + /** GPS time-of-week at the start of the data block. */ public long tow; - + /** SBAS message type (0-63) */ public int message_type; - + /** Raw SBAS data field of 212 bits (last byte padded with zeros). */ public int[] data; + - public MsgSbasRaw(int sender) { - super(sender, TYPE); - } - - public MsgSbasRaw() { - super(TYPE); - } - - public MsgSbasRaw(SBPMessage msg) throws SBPBinaryException { + public MsgSbasRaw (int sender) { super(sender, TYPE); } + public MsgSbasRaw () { super(TYPE); } + public MsgSbasRaw (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSbasRaw, expected 30583, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSbasRaw, expected 30583, actual " + msg.type); } @Override @@ -65,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sid = new GnssSignal().parse(parser); tow = parser.getU32(); message_type = parser.getU8(); - data = parser.getArrayofU8(27); + data = parser.getArrayofU8(27); } @Override @@ -73,7 +74,7 @@ protected void build(Builder builder) { sid.build(builder); builder.putU32(tow); builder.putU8(message_type); - builder.putArrayofU8(data, 27); + builder.putArrayofU8(data, 27); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexDone.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexDone.java index 0aa756b9d4..f7f8c3ecb5 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexDone.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexDone.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,41 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_READ_BY_INDEX_DONE (0x00A6). +/** SBP class for message MSG_SETTINGS_READ_BY_INDEX_DONE (0x00A6). * - *

You can have MSG_SETTINGS_READ_BY_INDEX_DONE inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_READ_BY_INDEX_DONE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The settings message for indicating end of the settings values. - */ + * The settings message for indicating end of the settings values. */ + public class MsgSettingsReadByIndexDone extends SBPMessage { public static final int TYPE = 0x00A6; - public MsgSettingsReadByIndexDone(int sender) { - super(sender, TYPE); - } - - public MsgSettingsReadByIndexDone() { - super(TYPE); - } + - public MsgSettingsReadByIndexDone(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsReadByIndexDone (int sender) { super(sender, TYPE); } + public MsgSettingsReadByIndexDone () { super(TYPE); } + public MsgSettingsReadByIndexDone (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsReadByIndexDone, expected 166, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsReadByIndexDone, expected 166, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexReq.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexReq.java index 3f28dfa4ab..9524171fad 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexReq.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_READ_BY_INDEX_REQ (0x00A2). +/** SBP class for message MSG_SETTINGS_READ_BY_INDEX_REQ (0x00A2). * - *

You can have MSG_SETTINGS_READ_BY_INDEX_REQ inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_READ_BY_INDEX_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The settings message for iterating through the settings values. A device will respond to this - * message with a "MSG_SETTINGS_READ_BY_INDEX_RESP". - */ + * The settings message for iterating through the settings values. A device + * will respond to this message with a "MSG_SETTINGS_READ_BY_INDEX_RESP". */ + public class MsgSettingsReadByIndexReq extends SBPMessage { public static final int TYPE = 0x00A2; - /** An index into the device settings, with values ranging from 0 to length(settings). */ + + /** An index into the device settings, with values ranging from 0 to + * length(settings). */ public int index; + - public MsgSettingsReadByIndexReq(int sender) { - super(sender, TYPE); - } - - public MsgSettingsReadByIndexReq() { - super(TYPE); - } - - public MsgSettingsReadByIndexReq(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsReadByIndexReq (int sender) { super(sender, TYPE); } + public MsgSettingsReadByIndexReq () { super(TYPE); } + public MsgSettingsReadByIndexReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsReadByIndexReq, expected 162, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsReadByIndexReq, expected 162, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - index = parser.getU16(); + index = parser.getU16(); } @Override protected void build(Builder builder) { - builder.putU16(index); + builder.putU16(index); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexResp.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexResp.java index 45106144d4..e1bd502241 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexResp.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadByIndexResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,70 +9,71 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_READ_BY_INDEX_RESP (0x00A7). +/** SBP class for message MSG_SETTINGS_READ_BY_INDEX_RESP (0x00A7). * - *

You can have MSG_SETTINGS_READ_BY_INDEX_RESP inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_READ_BY_INDEX_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The settings message that reports the value of a setting at an index. + * The settings message that reports the value of a setting at an index. * - *

In the string field, it reports NULL-terminated and delimited string with contents - * "SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0". where the '\0' escape sequence denotes the NULL - * character and where quotation marks are omitted. The FORMAT_TYPE field is optional and denotes - * possible string values of the setting as a hint to the user. If included, the format type portion - * of the string has the format "enum:value1,value2,value3". An example string that could be sent - * from the device is "simulator\0enabled\0True\0enum:True,False\0". - */ + * In the string field, it reports NULL-terminated and delimited string with + * contents "SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0". where the '\0' + * escape sequence denotes the NULL character and where quotation marks are + * omitted. The FORMAT_TYPE field is optional and denotes possible string + * values of the setting as a hint to the user. If included, the format type + * portion of the string has the format "enum:value1,value2,value3". An + * example string that could be sent from the device is + * "simulator\0enabled\0True\0enum:True,False\0". */ + public class MsgSettingsReadByIndexResp extends SBPMessage { public static final int TYPE = 0x00A7; - /** An index into the device settings, with values ranging from 0 to length(settings) */ + + /** An index into the device settings, with values ranging from 0 to + * length(settings) */ public int index; - - /** - * A NULL-terminated and delimited string with contents - * "SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0" - */ + + /** A NULL-terminated and delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0FORMAT_TYPE\0" */ public String setting; + - public MsgSettingsReadByIndexResp(int sender) { - super(sender, TYPE); - } - - public MsgSettingsReadByIndexResp() { - super(TYPE); - } - - public MsgSettingsReadByIndexResp(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsReadByIndexResp (int sender) { super(sender, TYPE); } + public MsgSettingsReadByIndexResp () { super(TYPE); } + public MsgSettingsReadByIndexResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsReadByIndexResp, expected 167, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsReadByIndexResp, expected 167, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ index = parser.getU16(); - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { builder.putU16(index); - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadReq.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadReq.java index ec091171b3..2bb0e6b3e9 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadReq.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadReq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_READ_REQ (0x00A4). +/** SBP class for message MSG_SETTINGS_READ_REQ (0x00A4). * - *

You can have MSG_SETTINGS_READ_REQ inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_READ_REQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The setting message that reads the device configuration. The string field is a NULL-terminated - * and NULL-delimited string with contents "SECTION_SETTING\0SETTING\0" where the '\0' escape - * sequence denotes the NULL character and where quotation marks are omitted. An example string that - * could be sent to a device is "solution\0soln_freq\0". A device will only respond to this message - * when it is received from sender ID 0x42. A device should respond with a MSG_SETTINGS_READ_RESP - * message (msg_id 0x00A5). - */ + * The setting message that reads the device configuration. The string field + * is a NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0" where the '\0' escape sequence denotes the + * NULL character and where quotation marks are omitted. An example string + * that could be sent to a device is "solution\0soln_freq\0". A device will + * only respond to this message when it is received from sender ID 0x42. A + * device should respond with a MSG_SETTINGS_READ_RESP message (msg_id + * 0x00A5). */ + public class MsgSettingsReadReq extends SBPMessage { public static final int TYPE = 0x00A4; - /** A NULL-terminated and NULL-delimited string with contents "SECTION_SETTING\0SETTING\0" */ + + /** A NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0" */ public String setting; + - public MsgSettingsReadReq(int sender) { - super(sender, TYPE); - } - - public MsgSettingsReadReq() { - super(TYPE); - } - - public MsgSettingsReadReq(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsReadReq (int sender) { super(sender, TYPE); } + public MsgSettingsReadReq () { super(TYPE); } + public MsgSettingsReadReq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsReadReq, expected 164, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsReadReq, expected 164, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadResp.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadResp.java index 0c42481159..56a7bf69ae 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsReadResp.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsReadResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_READ_RESP (0x00A5). +/** SBP class for message MSG_SETTINGS_READ_RESP (0x00A5). * - *

You can have MSG_SETTINGS_READ_RESP inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_READ_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The setting message with which the device responds after a MSG_SETTING_READ_REQ is sent to - * device. The string field is a NULL- terminated and NULL-delimited string with contents - * "SECTION_SETTING\0SETTING\0VALUE\0" where the '\0' escape sequence denotes the NULL character and - * where quotation marks are omitted. An example string that could be sent from device is - * "solution\0soln_freq\010\0". - */ + * The setting message with which the device responds after a + * MSG_SETTING_READ_REQ is sent to device. The string field is a NULL- + * terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" where the '\0' escape sequence denotes + * the NULL character and where quotation marks are omitted. An example string + * that could be sent from device is "solution\0soln_freq\010\0". */ + public class MsgSettingsReadResp extends SBPMessage { public static final int TYPE = 0x00A5; - /** - * A NULL-terminated and NULL-delimited string with contents "SECTION_SETTING\0SETTING\0VALUE\0" - */ + + /** A NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" */ public String setting; + - public MsgSettingsReadResp(int sender) { - super(sender, TYPE); - } - - public MsgSettingsReadResp() { - super(TYPE); - } - - public MsgSettingsReadResp(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsReadResp (int sender) { super(sender, TYPE); } + public MsgSettingsReadResp () { super(TYPE); } + public MsgSettingsReadResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsReadResp, expected 165, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsReadResp, expected 165, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsRegister.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsRegister.java index 198ce892dc..0f6d5c862d 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsRegister.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsRegister.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_REGISTER (0x00AE). +/** SBP class for message MSG_SETTINGS_REGISTER (0x00AE). * - *

You can have MSG_SETTINGS_REGISTER inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_REGISTER inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message registers the presence and default value of a setting with a settings daemon. The - * host should reply with MSG_SETTINGS_WRITE for this setting to set the initial value. - */ + * This message registers the presence and default value of a setting with a + * settings daemon. The host should reply with MSG_SETTINGS_WRITE for this + * setting to set the initial value. */ + public class MsgSettingsRegister extends SBPMessage { public static final int TYPE = 0x00AE; - /** A NULL-terminated and delimited string with contents "SECTION_SETTING\0SETTING\0VALUE". */ + + /** A NULL-terminated and delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE". */ public String setting; + - public MsgSettingsRegister(int sender) { - super(sender, TYPE); - } - - public MsgSettingsRegister() { - super(TYPE); - } - - public MsgSettingsRegister(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsRegister (int sender) { super(sender, TYPE); } + public MsgSettingsRegister () { super(TYPE); } + public MsgSettingsRegister (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsRegister, expected 174, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsRegister, expected 174, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsRegisterResp.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsRegisterResp.java index 5a38d926d6..3499ef6b18 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsRegisterResp.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsRegisterResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,64 +9,65 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_REGISTER_RESP (0x01AF). +/** SBP class for message MSG_SETTINGS_REGISTER_RESP (0x01AF). * - *

You can have MSG_SETTINGS_REGISTER_RESP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_REGISTER_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message responds to setting registration with the effective value. The effective value - * shall differ from the given default value if setting was already registered or is available in - * the permanent setting storage and had a different value. - */ + * This message responds to setting registration with the effective value. The + * effective value shall differ from the given default value if setting was + * already registered or is available in the permanent setting storage and had + * a different value. */ + public class MsgSettingsRegisterResp extends SBPMessage { public static final int TYPE = 0x01AF; + /** Register status */ public int status; - - /** - * A NULL-terminated and delimited string with contents "SECTION_SETTING\0SETTING\0VALUE". The - * meaning of value is defined according to the status field. - */ + + /** A NULL-terminated and delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE". The meaning of value is defined + * according to the status field. */ public String setting; + - public MsgSettingsRegisterResp(int sender) { - super(sender, TYPE); - } - - public MsgSettingsRegisterResp() { - super(TYPE); - } - - public MsgSettingsRegisterResp(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsRegisterResp (int sender) { super(sender, TYPE); } + public MsgSettingsRegisterResp () { super(TYPE); } + public MsgSettingsRegisterResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsRegisterResp, expected 431, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsRegisterResp, expected 431, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ status = parser.getU8(); - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { builder.putU8(status); - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsSave.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsSave.java index 3bcbdb07a3..3587e5d88d 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsSave.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsSave.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_SAVE (0x00A1). +/** SBP class for message MSG_SETTINGS_SAVE (0x00A1). * - *

You can have MSG_SETTINGS_SAVE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_SAVE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The save settings message persists the device's current settings configuration to its onboard - * flash memory file system. - */ + * The save settings message persists the device's current settings + * configuration to its onboard flash memory file system. */ + public class MsgSettingsSave extends SBPMessage { public static final int TYPE = 0x00A1; - public MsgSettingsSave(int sender) { - super(sender, TYPE); - } - - public MsgSettingsSave() { - super(TYPE); - } + - public MsgSettingsSave(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsSave (int sender) { super(sender, TYPE); } + public MsgSettingsSave () { super(TYPE); } + public MsgSettingsSave (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsSave, expected 161, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsSave, expected 161, actual " + msg.type); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsWrite.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsWrite.java index a25096d998..b388a25f4a 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsWrite.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsWrite.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_WRITE (0x00A0). +/** SBP class for message MSG_SETTINGS_WRITE (0x00A0). * - *

You can have MSG_SETTINGS_WRITE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_WRITE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The setting message writes the device configuration for a particular setting via A - * NULL-terminated and NULL-delimited string with contents "SECTION_SETTING\0SETTING\0VALUE\0" where - * the '\0' escape sequence denotes the NULL character and where quotation marks are omitted. A - * device will only process to this message when it is received from sender ID 0x42. An example - * string that could be sent to a device is "solution\0soln_freq\010\0". - */ + * The setting message writes the device configuration for a particular + * setting via A NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" where the '\0' escape sequence denotes + * the NULL character and where quotation marks are omitted. A device will + * only process to this message when it is received from sender ID 0x42. An + * example string that could be sent to a device is + * "solution\0soln_freq\010\0". */ + public class MsgSettingsWrite extends SBPMessage { public static final int TYPE = 0x00A0; - /** - * A NULL-terminated and NULL-delimited string with contents "SECTION_SETTING\0SETTING\0VALUE\0" - */ + + /** A NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" */ public String setting; + - public MsgSettingsWrite(int sender) { - super(sender, TYPE); - } - - public MsgSettingsWrite() { - super(TYPE); - } - - public MsgSettingsWrite(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsWrite (int sender) { super(sender, TYPE); } + public MsgSettingsWrite () { super(TYPE); } + public MsgSettingsWrite (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsWrite, expected 160, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsWrite, expected 160, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/settings/MsgSettingsWriteResp.java b/java/src/com/swiftnav/sbp/settings/MsgSettingsWriteResp.java index 0a8ab37c28..004ac4e18e 100644 --- a/java/src/com/swiftnav/sbp/settings/MsgSettingsWriteResp.java +++ b/java/src/com/swiftnav/sbp/settings/MsgSettingsWriteResp.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,66 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.settings; // This file was auto-generated from yaml/swiftnav/sbp/settings.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SETTINGS_WRITE_RESP (0x00AF). +/** SBP class for message MSG_SETTINGS_WRITE_RESP (0x00AF). * - *

You can have MSG_SETTINGS_WRITE_RESP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SETTINGS_WRITE_RESP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Return the status of a write request with the new value of the setting. If the requested value - * is rejected, the current value will be returned. The string field is a NULL-terminated and - * NULL-delimited string with contents "SECTION_SETTING\0SETTING\0VALUE\0" where the '\0' escape - * sequence denotes the NULL character and where quotation marks are omitted. An example string that - * could be sent from device is "solution\0soln_freq\010\0". - */ + * Return the status of a write request with the new value of the setting. If + * the requested value is rejected, the current value will be returned. The + * string field is a NULL-terminated and NULL-delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" where the '\0' escape sequence denotes + * the NULL character and where quotation marks are omitted. An example string + * that could be sent from device is "solution\0soln_freq\010\0". */ + public class MsgSettingsWriteResp extends SBPMessage { public static final int TYPE = 0x00AF; + /** Write status */ public int status; - - /** A NULL-terminated and delimited string with contents "SECTION_SETTING\0SETTING\0VALUE\0" */ + + /** A NULL-terminated and delimited string with contents + * "SECTION_SETTING\0SETTING\0VALUE\0" */ public String setting; + - public MsgSettingsWriteResp(int sender) { - super(sender, TYPE); - } - - public MsgSettingsWriteResp() { - super(TYPE); - } - - public MsgSettingsWriteResp(SBPMessage msg) throws SBPBinaryException { + public MsgSettingsWriteResp (int sender) { super(sender, TYPE); } + public MsgSettingsWriteResp () { super(TYPE); } + public MsgSettingsWriteResp (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSettingsWriteResp, expected 175, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSettingsWriteResp, expected 175, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ status = parser.getU8(); - setting = parser.getString(); + setting = parser.getString(); } @Override protected void build(Builder builder) { builder.putU8(status); - builder.putString(setting); + builder.putString(setting); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/ECDSASignature.java b/java/src/com/swiftnav/sbp/signing/ECDSASignature.java index 96f7db7a94..a64bdab119 100644 --- a/java/src/com/swiftnav/sbp/signing/ECDSASignature.java +++ b/java/src/com/swiftnav/sbp/signing/ECDSASignature.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,33 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; public class ECDSASignature extends SBPStruct { - - /** - * Number of bytes to use of the signature field. The DER encoded signature has a maximum size - * of 72 bytes but can vary between 70 and 72 bytes in length. - */ + + /** Number of bytes to use of the signature field. The DER encoded signature has a + * maximum size of 72 bytes but can vary between 70 and 72 bytes in length. */ public int len; - - /** DER encoded ECDSA signature for the messages using SHA-256 as the digest algorithm. */ + + /** DER encoded ECDSA signature for the messages using SHA-256 as the digest + * algorithm. */ public int[] data; + - public ECDSASignature() {} + public ECDSASignature () {} @Override public ECDSASignature parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/signing/MsgAesCmacSignature.java b/java/src/com/swiftnav/sbp/signing/MsgAesCmacSignature.java index cff48584c5..171115c5d1 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgAesCmacSignature.java +++ b/java/src/com/swiftnav/sbp/signing/MsgAesCmacSignature.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_AES_CMAC_SIGNATURE (0x0C10). +/** SBP class for message MSG_AES_CMAC_SIGNATURE (0x0C10). * - *

You can have MSG_AES_CMAC_SIGNATURE inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_AES_CMAC_SIGNATURE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Digital signature using AES-CMAC 128 algorithm used for data integrity. - */ + * Digital signature using AES-CMAC 128 algorithm used for data integrity. */ + public class MsgAesCmacSignature extends SBPMessage { public static final int TYPE = 0x0C10; - /** - * Signature message counter. Zero indexed and incremented with each signature message. The - * counter will not increment if this message was in response to an on demand request. The - * counter will roll over after 256 messages. Upon connection, the value of the counter may not - * initially be zero. - */ + + /** Signature message counter. Zero indexed and incremented with each + * signature message. The counter will not increment if this message was + * in response to an on demand request. The counter will roll over after + * 256 messages. Upon connection, the value of the counter may not + * initially be zero. */ public int stream_counter; - - /** - * On demand message counter. Zero indexed and incremented with each signature message sent in - * response to an on demand message. The counter will roll over after 256 messages. Upon - * connection, the value of the counter may not initially be zero. - */ + + /** On demand message counter. Zero indexed and incremented with each + * signature message sent in response to an on demand message. The + * counter will roll over after 256 messages. Upon connection, the value + * of the counter may not initially be zero. */ public int on_demand_counter; - + /** The last 4 bytes of the certificate's SHA-1 fingerprint */ public int[] certificate_id; - + /** Signature (CMAC tag value) */ public int[] signature; - + /** Describes the format of the 'signed messages' field below. */ public int flags; - - /** - * CRCs of the messages covered by this signature. For Skylark, which delivers SBP messages - * wrapped in Swift's proprietary RTCM message, these are the 24-bit CRCs from the RTCM message - * framing. For SBP only streams, this will be 16-bit CRCs from the SBP framing. See the `flags` - * field to determine the type of CRCs covered. - */ + + /** CRCs of the messages covered by this signature. For Skylark, which + * delivers SBP messages wrapped in Swift's proprietary RTCM message, + * these are the 24-bit CRCs from the RTCM message framing. For SBP only + * streams, this will be 16-bit CRCs from the SBP framing. See the + * `flags` field to determine the type of CRCs covered. */ public int[] signed_messages; + - public MsgAesCmacSignature(int sender) { - super(sender, TYPE); - } - - public MsgAesCmacSignature() { - super(TYPE); - } - - public MsgAesCmacSignature(SBPMessage msg) throws SBPBinaryException { + public MsgAesCmacSignature (int sender) { super(sender, TYPE); } + public MsgAesCmacSignature () { super(TYPE); } + public MsgAesCmacSignature (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgAesCmacSignature, expected 3088, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgAesCmacSignature, expected 3088, actual " + msg.type); } @Override @@ -85,7 +83,7 @@ protected void parse(Parser parser) throws SBPBinaryException { certificate_id = parser.getArrayofU8(4); signature = parser.getArrayofU8(16); flags = parser.getU8(); - signed_messages = parser.getArrayofU8(); + signed_messages = parser.getArrayofU8(); } @Override @@ -95,7 +93,7 @@ protected void build(Builder builder) { builder.putArrayofU8(certificate_id, 4); builder.putArrayofU8(signature, 16); builder.putU8(flags); - builder.putArrayofU8(signed_messages); + builder.putArrayofU8(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgCertificateChain.java b/java/src/com/swiftnav/sbp/signing/MsgCertificateChain.java index 91dbaf13df..86cf06348d 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgCertificateChain.java +++ b/java/src/com/swiftnav/sbp/signing/MsgCertificateChain.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,58 +9,57 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgCertificateChain extends SBPMessage { public static final int TYPE = 0x0C09; + /** SHA-1 fingerprint of the root certificate */ public int[] root_certificate; - + /** SHA-1 fingerprint of the intermediate certificate */ public int[] intermediate_certificate; - + /** SHA-1 fingerprint of the corrections certificate */ public int[] corrections_certificate; - - /** - * The time after which the signature given is no longer valid. Implementors should consult a - * time source (such as GNSS) to check if the current time is later than the expiration time, if - * the condition is true, signatures in the stream should not be considered valid. - */ + + /** The time after which the signature given is no longer valid. + * Implementors should consult a time source (such as GNSS) to check if + * the current time is later than the expiration time, if the condition + * is true, signatures in the stream should not be considered valid. */ public UtcTime expiration; - - /** - * Signature (created by the root certificate) over the concatenation of the SBP payload bytes - * preceding this field. That is, the concatenation of `root_certificate`, - * `intermediate_certificate`, `corrections_certificate` and `expiration`. This certificate - * chain (allow list) can also be validated by fetching it from - * `http(s)://certs.swiftnav.com/chain`. - */ + + /** Signature (created by the root certificate) over the concatenation of + * the SBP payload bytes preceding this field. That is, the concatenation + * of `root_certificate`, `intermediate_certificate`, + * `corrections_certificate` and `expiration`. This certificate chain + * (allow list) can also be validated by fetching it from + * `http(s)://certs.swiftnav.com/chain`. */ public ECDSASignature signature; + - public MsgCertificateChain(int sender) { - super(sender, TYPE); - } - - public MsgCertificateChain() { - super(TYPE); - } - - public MsgCertificateChain(SBPMessage msg) throws SBPBinaryException { + public MsgCertificateChain (int sender) { super(sender, TYPE); } + public MsgCertificateChain () { super(TYPE); } + public MsgCertificateChain (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCertificateChain, expected 3081, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCertificateChain, expected 3081, actual " + msg.type); } @Override @@ -69,7 +69,7 @@ protected void parse(Parser parser) throws SBPBinaryException { intermediate_certificate = parser.getArrayofU8(20); corrections_certificate = parser.getArrayofU8(20); expiration = new UtcTime().parse(parser); - signature = new ECDSASignature().parse(parser); + signature = new ECDSASignature().parse(parser); } @Override @@ -78,7 +78,7 @@ protected void build(Builder builder) { builder.putArrayofU8(intermediate_certificate, 20); builder.putArrayofU8(corrections_certificate, 20); expiration.build(builder); - signature.build(builder); + signature.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgCertificateChainDep.java b/java/src/com/swiftnav/sbp/signing/MsgCertificateChainDep.java index 026ba073b4..2ff43ed6cb 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgCertificateChainDep.java +++ b/java/src/com/swiftnav/sbp/signing/MsgCertificateChainDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,62 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_CERTIFICATE_CHAIN_DEP (0x0C05). +/** SBP class for message MSG_CERTIFICATE_CHAIN_DEP (0x0C05). * - *

You can have MSG_CERTIFICATE_CHAIN_DEP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_CERTIFICATE_CHAIN_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgCertificateChainDep extends SBPMessage { public static final int TYPE = 0x0C05; + /** SHA-1 fingerprint of the root certificate */ public int[] root_certificate; - + /** SHA-1 fingerprint of the intermediate certificate */ public int[] intermediate_certificate; - + /** SHA-1 fingerprint of the corrections certificate */ public int[] corrections_certificate; - - /** - * The certificate chain comprised of three fingerprints: root certificate, intermediate - * certificate and corrections certificate. - */ + + /** The certificate chain comprised of three fingerprints: root + * certificate, intermediate certificate and corrections certificate. */ public UtcTime expiration; - - /** - * An ECDSA signature (created by the root certificate) over the concatenation of the SBP - * payload bytes preceding this field. That is, the concatenation of `root_certificate`, - * `intermediate_certificate`, `corrections_certificate` and `expiration`. This certificate - * chain (allow list) can also be validated by fetching it from - * `http(s)://certs.swiftnav.com/chain`. - */ + + /** An ECDSA signature (created by the root certificate) over the + * concatenation of the SBP payload bytes preceding this field. That is, + * the concatenation of `root_certificate`, `intermediate_certificate`, + * `corrections_certificate` and `expiration`. This certificate chain + * (allow list) can also be validated by fetching it from + * `http(s)://certs.swiftnav.com/chain`. */ public int[] signature; + - public MsgCertificateChainDep(int sender) { - super(sender, TYPE); - } - - public MsgCertificateChainDep() { - super(TYPE); - } - - public MsgCertificateChainDep(SBPMessage msg) throws SBPBinaryException { + public MsgCertificateChainDep (int sender) { super(sender, TYPE); } + public MsgCertificateChainDep () { super(TYPE); } + public MsgCertificateChainDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCertificateChainDep, expected 3077, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCertificateChainDep, expected 3077, actual " + msg.type); } @Override @@ -76,7 +74,7 @@ protected void parse(Parser parser) throws SBPBinaryException { intermediate_certificate = parser.getArrayofU8(20); corrections_certificate = parser.getArrayofU8(20); expiration = new UtcTime().parse(parser); - signature = parser.getArrayofU8(64); + signature = parser.getArrayofU8(64); } @Override @@ -85,7 +83,7 @@ protected void build(Builder builder) { builder.putArrayofU8(intermediate_certificate, 20); builder.putArrayofU8(corrections_certificate, 20); expiration.build(builder); - builder.putArrayofU8(signature, 64); + builder.putArrayofU8(signature, 64); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEcdsaCertificate.java b/java/src/com/swiftnav/sbp/signing/MsgEcdsaCertificate.java index ce8c700b4f..f3f0480817 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEcdsaCertificate.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEcdsaCertificate.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ECDSA_CERTIFICATE (0x0C04). + +/** SBP class for message MSG_ECDSA_CERTIFICATE (0x0C04). * - *

You can have MSG_ECDSA_CERTIFICATE inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_ECDSA_CERTIFICATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

A DER encoded x.509 ECDSA-256 certificate (using curve secp256r1). - */ + * A DER encoded x.509 ECDSA-256 certificate (using curve secp256r1). */ + public class MsgEcdsaCertificate extends SBPMessage { public static final int TYPE = 0x0C04; - /** - * Total number messages that make up the certificate. The first nibble (mask 0xF0 or left - * shifted by 4 bits) is the size of the sequence (n), second nibble (mask 0x0F) is the - * zero-indexed counter (ith packet of n). - */ + + /** Total number messages that make up the certificate. The first nibble + * (mask 0xF0 or left shifted by 4 bits) is the size of the sequence (n), + * second nibble (mask 0x0F) is the zero-indexed counter (ith packet of + * n). */ public int n_msg; - + /** The last 4 bytes of the certificate's SHA-1 fingerprint */ public int[] certificate_id; - + public int flags; - + /** DER encoded x.509 ECDSA certificate bytes */ public int[] certificate_bytes; + - public MsgEcdsaCertificate(int sender) { - super(sender, TYPE); - } - - public MsgEcdsaCertificate() { - super(TYPE); - } - - public MsgEcdsaCertificate(SBPMessage msg) throws SBPBinaryException { + public MsgEcdsaCertificate (int sender) { super(sender, TYPE); } + public MsgEcdsaCertificate () { super(TYPE); } + public MsgEcdsaCertificate (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEcdsaCertificate, expected 3076, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEcdsaCertificate, expected 3076, actual " + msg.type); } @Override @@ -66,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { n_msg = parser.getU8(); certificate_id = parser.getArrayofU8(4); flags = parser.getU8(); - certificate_bytes = parser.getArrayofU8(); + certificate_bytes = parser.getArrayofU8(); } @Override @@ -74,7 +74,7 @@ protected void build(Builder builder) { builder.putU8(n_msg); builder.putArrayofU8(certificate_id, 4); builder.putU8(flags); - builder.putArrayofU8(certificate_bytes); + builder.putArrayofU8(certificate_bytes); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignature.java b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignature.java index 73dba93441..76a87dae6e 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignature.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignature.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,70 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ECDSA_SIGNATURE (0x0C08). +/** SBP class for message MSG_ECDSA_SIGNATURE (0x0C08). * - *

You can have MSG_ECDSA_SIGNATURE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ECDSA_SIGNATURE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

An ECDSA-256 signature using SHA-256 as the message digest algorithm. - */ + * An ECDSA-256 signature using SHA-256 as the message digest algorithm. */ + public class MsgEcdsaSignature extends SBPMessage { public static final int TYPE = 0x0C08; + /** Describes the format of the `signed\_messages` field below. */ public int flags; - - /** - * Signature message counter. Zero indexed and incremented with each signature message. The - * counter will not increment if this message was in response to an on demand request. The - * counter will roll over after 256 messages. Upon connection, the value of the counter may not - * initially be zero. - */ + + /** Signature message counter. Zero indexed and incremented with each + * signature message. The counter will not increment if this message was + * in response to an on demand request. The counter will roll over after + * 256 messages. Upon connection, the value of the counter may not + * initially be zero. */ public int stream_counter; - - /** - * On demand message counter. Zero indexed and incremented with each signature message sent in - * response to an on demand message. The counter will roll over after 256 messages. Upon - * connection, the value of the counter may not initially be zero. - */ + + /** On demand message counter. Zero indexed and incremented with each + * signature message sent in response to an on demand message. The + * counter will roll over after 256 messages. Upon connection, the value + * of the counter may not initially be zero. */ public int on_demand_counter; - + /** The last 4 bytes of the certificate's SHA-1 fingerprint */ public int[] certificate_id; - + /** Signature over the frames of this message group. */ public ECDSASignature signature; - - /** - * CRCs of the messages covered by this signature. For Skylark, which delivers SBP messages - * wrapped in Swift's proprietary RTCM message, these are the 24-bit CRCs from the RTCM message - * framing. For SBP only streams, this will be 16-bit CRCs from the SBP framing. See the `flags` - * field to determine the type of CRCs covered. - */ + + /** CRCs of the messages covered by this signature. For Skylark, which + * delivers SBP messages wrapped in Swift's proprietary RTCM message, + * these are the 24-bit CRCs from the RTCM message framing. For SBP only + * streams, this will be 16-bit CRCs from the SBP framing. See the + * `flags` field to determine the type of CRCs covered. */ public int[] signed_messages; + - public MsgEcdsaSignature(int sender) { - super(sender, TYPE); - } - - public MsgEcdsaSignature() { - super(TYPE); - } - - public MsgEcdsaSignature(SBPMessage msg) throws SBPBinaryException { + public MsgEcdsaSignature (int sender) { super(sender, TYPE); } + public MsgEcdsaSignature () { super(TYPE); } + public MsgEcdsaSignature (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEcdsaSignature, expected 3080, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEcdsaSignature, expected 3080, actual " + msg.type); } @Override @@ -85,7 +83,7 @@ protected void parse(Parser parser) throws SBPBinaryException { on_demand_counter = parser.getU8(); certificate_id = parser.getArrayofU8(4); signature = new ECDSASignature().parse(parser); - signed_messages = parser.getArrayofU8(); + signed_messages = parser.getArrayofU8(); } @Override @@ -95,7 +93,7 @@ protected void build(Builder builder) { builder.putU8(on_demand_counter); builder.putArrayofU8(certificate_id, 4); signature.build(builder); - builder.putArrayofU8(signed_messages); + builder.putArrayofU8(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepA.java b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepA.java index ea41f0f545..52601b7c7a 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepA.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,73 +9,71 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ECDSA_SIGNATURE_DEP_A (0x0C06). +/** SBP class for message MSG_ECDSA_SIGNATURE_DEP_A (0x0C06). * - *

You can have MSG_ECDSA_SIGNATURE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_ECDSA_SIGNATURE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEcdsaSignatureDepA extends SBPMessage { public static final int TYPE = 0x0C06; + /** Describes the format of the `signed\_messages` field below. */ public int flags; - - /** - * Signature message counter. Zero indexed and incremented with each signature message. The - * counter will not increment if this message was in response to an on demand request. The - * counter will roll over after 256 messages. Upon connection, the value of the counter may not - * initially be zero. - */ + + /** Signature message counter. Zero indexed and incremented with each + * signature message. The counter will not increment if this message was + * in response to an on demand request. The counter will roll over after + * 256 messages. Upon connection, the value of the counter may not + * initially be zero. */ public int stream_counter; - - /** - * On demand message counter. Zero indexed and incremented with each signature message sent in - * response to an on demand message. The counter will roll over after 256 messages. Upon - * connection, the value of the counter may not initially be zero. - */ + + /** On demand message counter. Zero indexed and incremented with each + * signature message sent in response to an on demand message. The + * counter will roll over after 256 messages. Upon connection, the value + * of the counter may not initially be zero. */ public int on_demand_counter; - + /** The last 4 bytes of the certificate's SHA-1 fingerprint */ public int[] certificate_id; - - /** ECDSA signature for the messages using SHA-256 as the digest algorithm. */ + + /** ECDSA signature for the messages using SHA-256 as the digest + * algorithm. */ public int[] signature; - - /** - * CRCs of the messages covered by this signature. For Skylark, which delivers SBP messages - * wrapped in Swift's proprietary RTCM message, these are the 24-bit CRCs from the RTCM message - * framing. For SBP only streams, this will be 16-bit CRCs from the SBP framing. See the `flags` - * field to determine the type of CRCs covered. - */ + + /** CRCs of the messages covered by this signature. For Skylark, which + * delivers SBP messages wrapped in Swift's proprietary RTCM message, + * these are the 24-bit CRCs from the RTCM message framing. For SBP only + * streams, this will be 16-bit CRCs from the SBP framing. See the + * `flags` field to determine the type of CRCs covered. */ public int[] signed_messages; + - public MsgEcdsaSignatureDepA(int sender) { - super(sender, TYPE); - } - - public MsgEcdsaSignatureDepA() { - super(TYPE); - } - - public MsgEcdsaSignatureDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEcdsaSignatureDepA (int sender) { super(sender, TYPE); } + public MsgEcdsaSignatureDepA () { super(TYPE); } + public MsgEcdsaSignatureDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEcdsaSignatureDepA, expected 3078, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEcdsaSignatureDepA, expected 3078, actual " + msg.type); } @Override @@ -85,7 +84,7 @@ protected void parse(Parser parser) throws SBPBinaryException { on_demand_counter = parser.getU8(); certificate_id = parser.getArrayofU8(4); signature = parser.getArrayofU8(64); - signed_messages = parser.getArrayofU8(); + signed_messages = parser.getArrayofU8(); } @Override @@ -95,7 +94,7 @@ protected void build(Builder builder) { builder.putU8(on_demand_counter); builder.putArrayofU8(certificate_id, 4); builder.putArrayofU8(signature, 64); - builder.putArrayofU8(signed_messages); + builder.putArrayofU8(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepB.java b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepB.java index d671fd4737..45e838127c 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepB.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEcdsaSignatureDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,79 +9,76 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ECDSA_SIGNATURE_DEP_B (0x0C07). +/** SBP class for message MSG_ECDSA_SIGNATURE_DEP_B (0x0C07). * - *

You can have MSG_ECDSA_SIGNATURE_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_ECDSA_SIGNATURE_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEcdsaSignatureDepB extends SBPMessage { public static final int TYPE = 0x0C07; + /** Describes the format of the `signed\_messages` field below. */ public int flags; - - /** - * Signature message counter. Zero indexed and incremented with each signature message. The - * counter will not increment if this message was in response to an on demand request. The - * counter will roll over after 256 messages. Upon connection, the value of the counter may not - * initially be zero. - */ + + /** Signature message counter. Zero indexed and incremented with each + * signature message. The counter will not increment if this message was + * in response to an on demand request. The counter will roll over after + * 256 messages. Upon connection, the value of the counter may not + * initially be zero. */ public int stream_counter; - - /** - * On demand message counter. Zero indexed and incremented with each signature message sent in - * response to an on demand message. The counter will roll over after 256 messages. Upon - * connection, the value of the counter may not initially be zero. - */ + + /** On demand message counter. Zero indexed and incremented with each + * signature message sent in response to an on demand message. The + * counter will roll over after 256 messages. Upon connection, the value + * of the counter may not initially be zero. */ public int on_demand_counter; - + /** The last 4 bytes of the certificate's SHA-1 fingerprint */ public int[] certificate_id; - - /** - * Number of bytes to use of the signature field. The DER encoded signature has a maximum size - * of 72 bytes but can vary between 70 and 72 bytes in length. - */ + + /** Number of bytes to use of the signature field. The DER encoded + * signature has a maximum size of 72 bytes but can vary between 70 and + * 72 bytes in length. */ public int n_signature_bytes; - - /** DER encoded ECDSA signature for the messages using SHA-256 as the digest algorithm. */ + + /** DER encoded ECDSA signature for the messages using SHA-256 as the + * digest algorithm. */ public int[] signature; - - /** - * CRCs of the messages covered by this signature. For Skylark, which delivers SBP messages - * wrapped in Swift's proprietary RTCM message, these are the 24-bit CRCs from the RTCM message - * framing. For SBP only streams, this will be 16-bit CRCs from the SBP framing. See the `flags` - * field to determine the type of CRCs covered. - */ + + /** CRCs of the messages covered by this signature. For Skylark, which + * delivers SBP messages wrapped in Swift's proprietary RTCM message, + * these are the 24-bit CRCs from the RTCM message framing. For SBP only + * streams, this will be 16-bit CRCs from the SBP framing. See the + * `flags` field to determine the type of CRCs covered. */ public int[] signed_messages; + - public MsgEcdsaSignatureDepB(int sender) { - super(sender, TYPE); - } - - public MsgEcdsaSignatureDepB() { - super(TYPE); - } - - public MsgEcdsaSignatureDepB(SBPMessage msg) throws SBPBinaryException { + public MsgEcdsaSignatureDepB (int sender) { super(sender, TYPE); } + public MsgEcdsaSignatureDepB () { super(TYPE); } + public MsgEcdsaSignatureDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEcdsaSignatureDepB, expected 3079, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEcdsaSignatureDepB, expected 3079, actual " + msg.type); } @Override @@ -92,7 +90,7 @@ protected void parse(Parser parser) throws SBPBinaryException { certificate_id = parser.getArrayofU8(4); n_signature_bytes = parser.getU8(); signature = parser.getArrayofU8(72); - signed_messages = parser.getArrayofU8(); + signed_messages = parser.getArrayofU8(); } @Override @@ -103,7 +101,7 @@ protected void build(Builder builder) { builder.putArrayofU8(certificate_id, 4); builder.putU8(n_signature_bytes); builder.putArrayofU8(signature, 72); - builder.putArrayofU8(signed_messages); + builder.putArrayofU8(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEd25519CertificateDep.java b/java/src/com/swiftnav/sbp/signing/MsgEd25519CertificateDep.java index 0e87aa946f..f4d968fe11 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEd25519CertificateDep.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEd25519CertificateDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ED25519_CERTIFICATE_DEP (0x0C02). + +/** SBP class for message MSG_ED25519_CERTIFICATE_DEP (0x0C02). * - *

You can have MSG_ED25519_CERTIFICATE_DEP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_ED25519_CERTIFICATE_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEd25519CertificateDep extends SBPMessage { public static final int TYPE = 0x0C02; - /** - * Total number messages that make up the certificate. First nibble is the size of the sequence - * (n), second nibble is the zero-indexed counter (ith packet of n) - */ + + /** Total number messages that make up the certificate. First nibble is + * the size of the sequence (n), second nibble is the zero-indexed + * counter (ith packet of n) */ public int n_msg; - + /** SHA-1 fingerprint of the associated certificate. */ public int[] fingerprint; - + /** ED25519 certificate bytes. */ public int[] certificate_bytes; + - public MsgEd25519CertificateDep(int sender) { - super(sender, TYPE); - } - - public MsgEd25519CertificateDep() { - super(TYPE); - } - - public MsgEd25519CertificateDep(SBPMessage msg) throws SBPBinaryException { + public MsgEd25519CertificateDep (int sender) { super(sender, TYPE); } + public MsgEd25519CertificateDep () { super(TYPE); } + public MsgEd25519CertificateDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEd25519CertificateDep, expected 3074, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEd25519CertificateDep, expected 3074, actual " + msg.type); } @Override @@ -63,14 +62,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ n_msg = parser.getU8(); fingerprint = parser.getArrayofU8(20); - certificate_bytes = parser.getArrayofU8(); + certificate_bytes = parser.getArrayofU8(); } @Override protected void build(Builder builder) { builder.putU8(n_msg); builder.putArrayofU8(fingerprint, 20); - builder.putArrayofU8(certificate_bytes); + builder.putArrayofU8(certificate_bytes); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepA.java b/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepA.java index 165bfdf560..b25954a724 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepA.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,50 +9,50 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ED25519_SIGNATURE_DEP_A (0x0C01). + +/** SBP class for message MSG_ED25519_SIGNATURE_DEP_A (0x0C01). * - *

You can have MSG_ED25519_SIGNATURE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_ED25519_SIGNATURE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEd25519SignatureDepA extends SBPMessage { public static final int TYPE = 0x0C01; + /** ED25519 signature for messages. */ public int[] signature; - + /** SHA-1 fingerprint of the associated certificate. */ public int[] fingerprint; - + /** CRCs of signed messages. */ public long[] signed_messages; + - public MsgEd25519SignatureDepA(int sender) { - super(sender, TYPE); - } - - public MsgEd25519SignatureDepA() { - super(TYPE); - } - - public MsgEd25519SignatureDepA(SBPMessage msg) throws SBPBinaryException { + public MsgEd25519SignatureDepA (int sender) { super(sender, TYPE); } + public MsgEd25519SignatureDepA () { super(TYPE); } + public MsgEd25519SignatureDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEd25519SignatureDepA, expected 3073, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEd25519SignatureDepA, expected 3073, actual " + msg.type); } @Override @@ -59,14 +60,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ signature = parser.getArrayofU8(64); fingerprint = parser.getArrayofU8(20); - signed_messages = parser.getArrayofU32(); + signed_messages = parser.getArrayofU32(); } @Override protected void build(Builder builder) { builder.putArrayofU8(signature, 64); builder.putArrayofU8(fingerprint, 20); - builder.putArrayofU32(signed_messages); + builder.putArrayofU32(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepB.java b/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepB.java index a9450da00f..0e2c2284bd 100644 --- a/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepB.java +++ b/java/src/com/swiftnav/sbp/signing/MsgEd25519SignatureDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,65 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_ED25519_SIGNATURE_DEP_B (0x0C03). +/** SBP class for message MSG_ED25519_SIGNATURE_DEP_B (0x0C03). * - *

You can have MSG_ED25519_SIGNATURE_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_ED25519_SIGNATURE_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgEd25519SignatureDepB extends SBPMessage { public static final int TYPE = 0x0C03; - /** - * Signature message counter. Zero indexed and incremented with each signature message. The - * counter will not increment if this message was in response to an on demand request. The - * counter will roll over after 256 messages. Upon connection, the value of the counter may not - * initially be zero. - */ + + /** Signature message counter. Zero indexed and incremented with each + * signature message. The counter will not increment if this message was + * in response to an on demand request. The counter will roll over after + * 256 messages. Upon connection, the value of the counter may not + * initially be zero. */ public int stream_counter; - - /** - * On demand message counter. Zero indexed and incremented with each signature message sent in - * response to an on demand message. The counter will roll over after 256 messages. Upon - * connection, the value of the counter may not initially be zero. - */ + + /** On demand message counter. Zero indexed and incremented with each + * signature message sent in response to an on demand message. The + * counter will roll over after 256 messages. Upon connection, the value + * of the counter may not initially be zero. */ public int on_demand_counter; - + /** ED25519 signature for messages. */ public int[] signature; - + /** SHA-1 fingerprint of the associated certificate. */ public int[] fingerprint; - + /** CRCs of signed messages. */ public long[] signed_messages; + - public MsgEd25519SignatureDepB(int sender) { - super(sender, TYPE); - } - - public MsgEd25519SignatureDepB() { - super(TYPE); - } - - public MsgEd25519SignatureDepB(SBPMessage msg) throws SBPBinaryException { + public MsgEd25519SignatureDepB (int sender) { super(sender, TYPE); } + public MsgEd25519SignatureDepB () { super(TYPE); } + public MsgEd25519SignatureDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgEd25519SignatureDepB, expected 3075, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgEd25519SignatureDepB, expected 3075, actual " + msg.type); } @Override @@ -76,7 +75,7 @@ protected void parse(Parser parser) throws SBPBinaryException { on_demand_counter = parser.getU8(); signature = parser.getArrayofU8(64); fingerprint = parser.getArrayofU8(20); - signed_messages = parser.getArrayofU32(); + signed_messages = parser.getArrayofU32(); } @Override @@ -85,7 +84,7 @@ protected void build(Builder builder) { builder.putU8(on_demand_counter); builder.putArrayofU8(signature, 64); builder.putArrayofU8(fingerprint, 20); - builder.putArrayofU32(signed_messages); + builder.putArrayofU32(signed_messages); } @Override diff --git a/java/src/com/swiftnav/sbp/signing/UtcTime.java b/java/src/com/swiftnav/sbp/signing/UtcTime.java index d0d7f35193..4b688d35ed 100644 --- a/java/src/com/swiftnav/sbp/signing/UtcTime.java +++ b/java/src/com/swiftnav/sbp/signing/UtcTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,41 +9,46 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.signing; // This file was auto-generated from yaml/swiftnav/sbp/signing.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class UtcTime extends SBPStruct { - + /** Year */ public int year; - + /** Month (range 1 .. 12) */ public int month; - + /** days in the month (range 1-31) */ public int day; - + /** hours of day (range 0-23) */ public int hours; - + /** minutes of hour (range 0-59) */ public int minutes; - + /** seconds of minute (range 0-60) rounded down */ public int seconds; - + /** nanoseconds of second (range 0-999999999) */ public long ns; + - public UtcTime() {} + public UtcTime () {} @Override public UtcTime parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/solution_meta/GNSSInputType.java b/java/src/com/swiftnav/sbp/solution_meta/GNSSInputType.java index 74c8a96271..5e006f230b 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/GNSSInputType.java +++ b/java/src/com/swiftnav/sbp/solution_meta/GNSSInputType.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,23 +9,28 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class GNSSInputType extends SBPStruct { - + /** flags that store all relevant info specific to this sensor type. */ public int flags; + - public GNSSInputType() {} + public GNSSInputType () {} @Override public GNSSInputType parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/solution_meta/IMUInputType.java b/java/src/com/swiftnav/sbp/solution_meta/IMUInputType.java index 4fffbb1700..40fba11b9e 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/IMUInputType.java +++ b/java/src/com/swiftnav/sbp/solution_meta/IMUInputType.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,23 +9,28 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class IMUInputType extends SBPStruct { - + /** Instrument time, grade, and architecture for a sensor. */ public int flags; + - public IMUInputType() {} + public IMUInputType () {} @Override public IMUInputType parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMeta.java b/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMeta.java index 37febc4fc0..14851a0892 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMeta.java +++ b/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMeta.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,85 +9,78 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SOLN_META (0xFF0E). +/** SBP class for message MSG_SOLN_META (0xFF0E). * - *

You can have MSG_SOLN_META inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SOLN_META inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message contains all metadata about the sensors received and/or used in computing the - * sensorfusion solution. It focuses primarily, but not only, on GNSS metadata. Regarding the age of - * the last received valid GNSS solution, the highest two bits are time status, indicating whether - * age gnss can or can not be used to retrieve time of measurement (noted TOM, also known as time of - * validity) If it can, subtract 'age gnss' from 'tow' in navigation messages to get TOM. Can be - * used before alignment is complete in the Fusion Engine, when output solution is the last received - * valid GNSS solution and its tow is not a TOM. - */ + * This message contains all metadata about the sensors received and/or used + * in computing the sensorfusion solution. It focuses primarily, but not only, + * on GNSS metadata. Regarding the age of the last received valid GNSS + * solution, the highest two bits are time status, indicating whether age gnss + * can or can not be used to retrieve time of measurement (noted TOM, also + * known as time of validity) If it can, subtract 'age gnss' from 'tow' in + * navigation messages to get TOM. Can be used before alignment is complete in + * the Fusion Engine, when output solution is the last received valid GNSS + * solution and its tow is not a TOM. */ + public class MsgSolnMeta extends SBPMessage { public static final int TYPE = 0xFF0E; + /** GPS time of week rounded to the nearest millisecond */ public long tow; - - /** - * Position Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Position Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int pdop; - - /** - * Horizontal Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Horizontal Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int hdop; - - /** - * Vertical Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Vertical Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int vdop; - - /** - * Age of corrections as per last available AGE_CORRECTIONS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Age of corrections as per last available AGE_CORRECTIONS from PVT + * engine (0xFFFF indicates invalid) */ public int age_corrections; - + /** Age and Time Status of the last received valid GNSS solution. */ public long age_gnss; - - /** - * Array of Metadata describing the sensors potentially involved in the solution. Each element - * in the array represents a single sensor type and consists of flags containing (meta)data - * pertaining to that specific single sensor. Refer to each (XX)InputType descriptor in the - * present doc. - */ + + /** Array of Metadata describing the sensors potentially involved in the + * solution. Each element in the array represents a single sensor type + * and consists of flags containing (meta)data pertaining to that + * specific single sensor. Refer to each (XX)InputType descriptor in the + * present doc. */ public SolutionInputType[] sol_in; + - public MsgSolnMeta(int sender) { - super(sender, TYPE); - } - - public MsgSolnMeta() { - super(TYPE); - } - - public MsgSolnMeta(SBPMessage msg) throws SBPBinaryException { + public MsgSolnMeta (int sender) { super(sender, TYPE); } + public MsgSolnMeta () { super(TYPE); } + public MsgSolnMeta (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSolnMeta, expected 65294, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSolnMeta, expected 65294, actual " + msg.type); } @Override @@ -98,7 +92,7 @@ protected void parse(Parser parser) throws SBPBinaryException { vdop = parser.getU16(); age_corrections = parser.getU16(); age_gnss = parser.getU32(); - sol_in = parser.getArray(SolutionInputType.class); + sol_in = parser.getArray(SolutionInputType.class); } @Override @@ -109,7 +103,7 @@ protected void build(Builder builder) { builder.putU16(vdop); builder.putU16(age_corrections); builder.putU32(age_gnss); - builder.putArray(sol_in); + builder.putArray(sol_in); } @Override diff --git a/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMetaDepA.java b/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMetaDepA.java index 7ed0f889b7..5f7e45acdd 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMetaDepA.java +++ b/java/src/com/swiftnav/sbp/solution_meta/MsgSolnMetaDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,85 +9,76 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SOLN_META_DEP_A (0xFF0F). +/** SBP class for message MSG_SOLN_META_DEP_A (0xFF0F). * - *

You can have MSG_SOLN_META_DEP_A inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SOLN_META_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSolnMetaDepA extends SBPMessage { public static final int TYPE = 0xFF0F; - /** - * Position Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Position Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int pdop; - - /** - * Horizontal Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Horizontal Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int hdop; - - /** - * Vertical Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Vertical Dilution of Precision as per last available DOPS from PVT + * engine (0xFFFF indicates invalid) */ public int vdop; - + /** Number of satellites as per last available solution from PVT engine */ public int n_sats; - - /** - * Age of corrections as per last available AGE_CORRECTIONS from PVT engine (0xFFFF indicates - * invalid) - */ + + /** Age of corrections as per last available AGE_CORRECTIONS from PVT + * engine (0xFFFF indicates invalid) */ public int age_corrections; - + /** State of alignment and the status and receipt of the alignment inputs */ public int alignment_status; - + /** Tow of last-used GNSS position measurement */ public long last_used_gnss_pos_tow; - + /** Tow of last-used GNSS velocity measurement */ public long last_used_gnss_vel_tow; - - /** - * Array of Metadata describing the sensors potentially involved in the solution. Each element - * in the array represents a single sensor type and consists of flags containing (meta)data - * pertaining to that specific single sensor. Refer to each (XX)InputType descriptor in the - * present doc. - */ + + /** Array of Metadata describing the sensors potentially involved in the + * solution. Each element in the array represents a single sensor type + * and consists of flags containing (meta)data pertaining to that + * specific single sensor. Refer to each (XX)InputType descriptor in the + * present doc. */ public SolutionInputType[] sol_in; + - public MsgSolnMetaDepA(int sender) { - super(sender, TYPE); - } - - public MsgSolnMetaDepA() { - super(TYPE); - } - - public MsgSolnMetaDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSolnMetaDepA (int sender) { super(sender, TYPE); } + public MsgSolnMetaDepA () { super(TYPE); } + public MsgSolnMetaDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSolnMetaDepA, expected 65295, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSolnMetaDepA, expected 65295, actual " + msg.type); } @Override @@ -100,7 +92,7 @@ protected void parse(Parser parser) throws SBPBinaryException { alignment_status = parser.getU8(); last_used_gnss_pos_tow = parser.getU32(); last_used_gnss_vel_tow = parser.getU32(); - sol_in = parser.getArray(SolutionInputType.class); + sol_in = parser.getArray(SolutionInputType.class); } @Override @@ -113,7 +105,7 @@ protected void build(Builder builder) { builder.putU8(alignment_status); builder.putU32(last_used_gnss_pos_tow); builder.putU32(last_used_gnss_vel_tow); - builder.putArray(sol_in); + builder.putArray(sol_in); } @Override diff --git a/java/src/com/swiftnav/sbp/solution_meta/OdoInputType.java b/java/src/com/swiftnav/sbp/solution_meta/OdoInputType.java index 0764162427..e479977843 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/OdoInputType.java +++ b/java/src/com/swiftnav/sbp/solution_meta/OdoInputType.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,23 +9,28 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class OdoInputType extends SBPStruct { - + /** Instrument ODO rate, grade, and quality. */ public int flags; + - public OdoInputType() {} + public OdoInputType () {} @Override public OdoInputType parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/solution_meta/SolutionInputType.java b/java/src/com/swiftnav/sbp/solution_meta/SolutionInputType.java index 7a15a9cd62..a16360a7f9 100644 --- a/java/src/com/swiftnav/sbp/solution_meta/SolutionInputType.java +++ b/java/src/com/swiftnav/sbp/solution_meta/SolutionInputType.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,26 +9,31 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.solution_meta; // This file was auto-generated from yaml/swiftnav/sbp/solution_meta.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class SolutionInputType extends SBPStruct { - + /** The type of sensor */ public int sensor_type; - + /** Refer to each InputType description */ public int flags; + - public SolutionInputType() {} + public SolutionInputType () {} @Override public SolutionInputType parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/BoundsHeader.java b/java/src/com/swiftnav/sbp/ssr/BoundsHeader.java index 4472f99a13..5486941565 100644 --- a/java/src/com/swiftnav/sbp/ssr/BoundsHeader.java +++ b/java/src/com/swiftnav/sbp/ssr/BoundsHeader.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,36 +9,41 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class BoundsHeader extends SBPStruct { - + /** GNSS reference time of the bound */ public GPSTimeSec time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - + /** Update interval between consecutive bounds. Similar to RTCM DF391. */ public int update_interval; - + /** SSR Solution ID. */ public int sol_id; + - public BoundsHeader() {} + public BoundsHeader () {} @Override public BoundsHeader parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/CodeBiasesContent.java b/java/src/com/swiftnav/sbp/ssr/CodeBiasesContent.java index 704bfc02ae..681cfc8960 100644 --- a/java/src/com/swiftnav/sbp/ssr/CodeBiasesContent.java +++ b/java/src/com/swiftnav/sbp/ssr/CodeBiasesContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class CodeBiasesContent extends SBPStruct { - + /** Signal encoded following RTCM specifications (DF380, DF381, DF382 and DF467). */ public int code; - + /** Code bias value */ public int value; + - public CodeBiasesContent() {} + public CodeBiasesContent () {} @Override public CodeBiasesContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/CodePhaseBiasesSatSig.java b/java/src/com/swiftnav/sbp/ssr/CodePhaseBiasesSatSig.java index 370247f7c3..170d2fe9f8 100644 --- a/java/src/com/swiftnav/sbp/ssr/CodePhaseBiasesSatSig.java +++ b/java/src/com/swiftnav/sbp/ssr/CodePhaseBiasesSatSig.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,45 +9,46 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class CodePhaseBiasesSatSig extends SBPStruct { - - /** - * Satellite ID. Similar to either RTCM DF068 (GPS), DF252 (Galileo), or DF488 (BDS) depending - * on the constellation. - */ + + /** Satellite ID. Similar to either RTCM DF068 (GPS), DF252 (Galileo), or DF488 + * (BDS) depending on the constellation. */ public int sat_id; - - /** - * Signal and Tracking Mode Identifier. Similar to either RTCM DF380 (GPS), DF382 (Galileo) or - * DF467 (BDS) depending on the constellation. - */ + + /** Signal and Tracking Mode Identifier. Similar to either RTCM DF380 (GPS), DF382 + * (Galileo) or DF467 (BDS) depending on the constellation. */ public int signal_id; - + /** Code Bias Mean. Range: 0-1.275 m */ public int code_bias_bound_mu; - + /** Code Bias Standard Deviation. Range: 0-1.275 m */ public int code_bias_bound_sig; - + /** Phase Bias Mean. Range: 0-1.275 m */ public int phase_bias_bound_mu; - + /** Phase Bias Standard Deviation. Range: 0-1.275 m */ public int phase_bias_bound_sig; + - public CodePhaseBiasesSatSig() {} + public CodePhaseBiasesSatSig () {} @Override public CodePhaseBiasesSatSig parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/GridDefinitionHeaderDepA.java b/java/src/com/swiftnav/sbp/ssr/GridDefinitionHeaderDepA.java index 82d7a32eec..cd42480782 100644 --- a/java/src/com/swiftnav/sbp/ssr/GridDefinitionHeaderDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/GridDefinitionHeaderDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,39 +9,45 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class GridDefinitionHeaderDepA extends SBPStruct { - + /** region_size (deg) = 10 / region_size_inverse 0 is an invalid value. */ public int region_size_inverse; - - /** grid height (deg) = grid width (deg) = area_width / region_size 0 is an invalid value. */ + + /** grid height (deg) = grid width (deg) = area_width / region_size 0 is an invalid + * value. */ public int area_width; - + /** North-West corner latitude (deg) = region_size * lat_nw_corner_enc - 90 */ public int lat_nw_corner_enc; - + /** North-West corner longitude (deg) = region_size * lon_nw_corner_enc - 180 */ public int lon_nw_corner_enc; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; + - public GridDefinitionHeaderDepA() {} + public GridDefinitionHeaderDepA () {} @Override public GridDefinitionHeaderDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeader.java b/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeader.java index 342e1f64ee..ef1b89f6c0 100644 --- a/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeader.java +++ b/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeader.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,49 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class GriddedCorrectionHeader extends SBPStruct { - + /** Unique identifier of the tile set this tile belongs to. */ public int tile_set_id; - + /** Unique identifier of this tile in the tile set. */ public int tile_id; - + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following RTCM DF391 + * specification. */ public int update_interval; - + /** IOD of the SSR atmospheric correction */ public int iod_atmo; - - /** - * Quality of the troposphere data. Encoded following RTCM DF389 specification in units of m. - */ + + /** Quality of the troposphere data. Encoded following RTCM DF389 specification in + * units of m. */ public int tropo_quality_indicator; + - public GriddedCorrectionHeader() {} + public GriddedCorrectionHeader () {} @Override public GriddedCorrectionHeader parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeaderDepA.java b/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeaderDepA.java index 12f095f65f..87e645f8d2 100644 --- a/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeaderDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/GriddedCorrectionHeaderDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,43 +9,46 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class GriddedCorrectionHeaderDepA extends SBPStruct { - + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following RTCM DF391 + * specification. */ public int update_interval; - + /** IOD of the SSR atmospheric correction */ public int iod_atmo; - - /** - * Quality of the troposphere data. Encoded following RTCM DF389 specification in units of m. - */ + + /** Quality of the troposphere data. Encoded following RTCM DF389 specification in + * units of m. */ public int tropo_quality_indicator; + - public GriddedCorrectionHeaderDepA() {} + public GriddedCorrectionHeaderDepA () {} @Override public GriddedCorrectionHeaderDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrCodeBiases.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrCodeBiases.java index b907d2ddaa..814c2fde5a 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrCodeBiases.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrCodeBiases.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_CODE_BIASES (0x05E1). + +/** SBP class for message MSG_SSR_CODE_BIASES (0x05E1). * - *

You can have MSG_SSR_CODE_BIASES inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SSR_CODE_BIASES inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The precise code biases message is to be added to the pseudorange of the corresponding signal - * to get corrected pseudorange. It is an equivalent to the 1059 / 1065 RTCM message types. - */ + * The precise code biases message is to be added to the pseudorange of the + * corresponding signal to get corrected pseudorange. It is an equivalent to + * the 1059 / 1065 RTCM message types. */ + public class MsgSsrCodeBiases extends SBPMessage { public static final int TYPE = 0x05E1; + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - - /** - * IOD of the SSR correction. A change of Issue Of Data SSR is used to indicate a change in the - * SSR generating configuration - */ + + /** IOD of the SSR correction. A change of Issue Of Data SSR is used to + * indicate a change in the SSR generating configuration */ public int iod_ssr; - + /** Code biases for the different satellite signals */ public CodeBiasesContent[] biases; + - public MsgSsrCodeBiases(int sender) { - super(sender, TYPE); - } - - public MsgSsrCodeBiases() { - super(TYPE); - } - - public MsgSsrCodeBiases(SBPMessage msg) throws SBPBinaryException { + public MsgSsrCodeBiases (int sender) { super(sender, TYPE); } + public MsgSsrCodeBiases () { super(TYPE); } + public MsgSsrCodeBiases (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrCodeBiases, expected 1505, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrCodeBiases, expected 1505, actual " + msg.type); } @Override @@ -74,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sid = new GnssSignal().parse(parser); update_interval = parser.getU8(); iod_ssr = parser.getU8(); - biases = parser.getArray(CodeBiasesContent.class); + biases = parser.getArray(CodeBiasesContent.class); } @Override @@ -83,7 +82,7 @@ protected void build(Builder builder) { sid.build(builder); builder.putU8(update_interval); builder.putU8(iod_ssr); - builder.putArray(biases); + builder.putArray(biases); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrCodePhaseBiasesBounds.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrCodePhaseBiasesBounds.java index e5c53f394d..445802bbf4 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrCodePhaseBiasesBounds.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrCodePhaseBiasesBounds.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,50 +9,50 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrCodePhaseBiasesBounds extends SBPMessage { public static final int TYPE = 0x05EC; + /** Header of a bounds message. */ public BoundsHeader header; - + /** IOD of the SSR bound. */ public int ssr_iod; - + /** Constellation ID to which the SVs belong. */ public int const_id; - + /** Number of satellite-signal couples. */ public int n_sats_signals; - + /** Code and Phase Biases Bounds per Satellite-Signal couple. */ public CodePhaseBiasesSatSig[] satellites_signals; + - public MsgSsrCodePhaseBiasesBounds(int sender) { - super(sender, TYPE); - } - - public MsgSsrCodePhaseBiasesBounds() { - super(TYPE); - } - - public MsgSsrCodePhaseBiasesBounds(SBPMessage msg) throws SBPBinaryException { + public MsgSsrCodePhaseBiasesBounds (int sender) { super(sender, TYPE); } + public MsgSsrCodePhaseBiasesBounds () { super(TYPE); } + public MsgSsrCodePhaseBiasesBounds (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrCodePhaseBiasesBounds, expected 1516, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrCodePhaseBiasesBounds, expected 1516, actual " + msg.type); } @Override @@ -61,7 +62,7 @@ protected void parse(Parser parser) throws SBPBinaryException { ssr_iod = parser.getU8(); const_id = parser.getU8(); n_sats_signals = parser.getU8(); - satellites_signals = parser.getArray(CodePhaseBiasesSatSig.class); + satellites_signals = parser.getArray(CodePhaseBiasesSatSig.class); } @Override @@ -70,7 +71,7 @@ protected void build(Builder builder) { builder.putU8(ssr_iod); builder.putU8(const_id); builder.putU8(n_sats_signals); - builder.putArray(satellites_signals); + builder.putArray(satellites_signals); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrGridDefinitionDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrGridDefinitionDepA.java index b6fab0cb16..3b71854062 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrGridDefinitionDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrGridDefinitionDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,66 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_GRID_DEFINITION_DEP_A (0x05F5). +/** SBP class for message MSG_SSR_GRID_DEFINITION_DEP_A (0x05F5). * - *

You can have MSG_SSR_GRID_DEFINITION_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_GRID_DEFINITION_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrGridDefinitionDepA extends SBPMessage { public static final int TYPE = 0x05F5; + /** Header of a Gridded Correction message */ public GridDefinitionHeaderDepA header; - - /** - * Run Length Encode list of quadrants that contain valid data. The spec describes the encoding - * scheme in detail, but essentially the index of the quadrants that contain transitions between - * valid and invalid (and vice versa) are encoded as u8 integers. - */ + + /** Run Length Encode list of quadrants that contain valid data. The spec + * describes the encoding scheme in detail, but essentially the index of + * the quadrants that contain transitions between valid and invalid (and + * vice versa) are encoded as u8 integers. */ public int[] rle_list; + - public MsgSsrGridDefinitionDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrGridDefinitionDepA() { - super(TYPE); - } - - public MsgSsrGridDefinitionDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrGridDefinitionDepA (int sender) { super(sender, TYPE); } + public MsgSsrGridDefinitionDepA () { super(TYPE); } + public MsgSsrGridDefinitionDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrGridDefinitionDepA, expected 1525, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrGridDefinitionDepA, expected 1525, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new GridDefinitionHeaderDepA().parse(parser); - rle_list = parser.getArrayofU8(); + rle_list = parser.getArrayofU8(); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArrayofU8(rle_list); + builder.putArrayofU8(rle_list); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrection.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrection.java index 3e94a68a48..889b026335 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrection.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrection.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_GRIDDED_CORRECTION (0x05FC). + +/** SBP class for message MSG_SSR_GRIDDED_CORRECTION (0x05FC). * - *

You can have MSG_SSR_GRIDDED_CORRECTION inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_GRIDDED_CORRECTION inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

STEC residuals are per space vehicle, troposphere is not. + * STEC residuals are per space vehicle, troposphere is not. * - *

It is typically equivalent to the QZSS CLAS Sub Type 9 messages. - */ + * It is typically equivalent to the QZSS CLAS Sub Type 9 messages. */ + public class MsgSsrGriddedCorrection extends SBPMessage { public static final int TYPE = 0x05FC; + /** Header of a gridded correction message */ public GriddedCorrectionHeader header; - + /** Index of the grid point. */ public int index; - + /** Wet and hydrostatic vertical delays (mean, stddev). */ public TroposphericDelayCorrection tropo_delay_correction; - + /** STEC residuals for each satellite (mean, stddev). */ public STECResidual[] stec_residuals; + - public MsgSsrGriddedCorrection(int sender) { - super(sender, TYPE); - } - - public MsgSsrGriddedCorrection() { - super(TYPE); - } - - public MsgSsrGriddedCorrection(SBPMessage msg) throws SBPBinaryException { + public MsgSsrGriddedCorrection (int sender) { super(sender, TYPE); } + public MsgSsrGriddedCorrection () { super(TYPE); } + public MsgSsrGriddedCorrection (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrGriddedCorrection, expected 1532, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrGriddedCorrection, expected 1532, actual " + msg.type); } @Override @@ -66,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { header = new GriddedCorrectionHeader().parse(parser); index = parser.getU16(); tropo_delay_correction = new TroposphericDelayCorrection().parse(parser); - stec_residuals = parser.getArray(STECResidual.class); + stec_residuals = parser.getArray(STECResidual.class); } @Override @@ -74,7 +75,7 @@ protected void build(Builder builder) { header.build(builder); builder.putU16(index); tropo_delay_correction.build(builder); - builder.putArray(stec_residuals); + builder.putArray(stec_residuals); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionBounds.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionBounds.java index e00b8c3752..3a5a493a70 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionBounds.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionBounds.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,83 +9,83 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_GRIDDED_CORRECTION_BOUNDS (0x05FE). +/** SBP class for message MSG_SSR_GRIDDED_CORRECTION_BOUNDS (0x05FE). * - *

You can have MSG_SSR_GRIDDED_CORRECTION_BOUNDS inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_GRIDDED_CORRECTION_BOUNDS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Note 1: Range: 0-17.5 m. i{@literal <}= 200, mean = 0.01i; 200{@literal <}i{@literal <}=230, - * mean=2+0.1(i-200); i{@literal >}230, mean=5+0.5(i-230). - */ + * Note 1: Range: 0-17.5 m. i{@literal <}= 200, mean = 0.01i; 200{@literal <}i{@literal <}=230, + * mean=2+0.1(i-200); i{@literal >}230, mean=5+0.5(i-230). */ + public class MsgSsrGriddedCorrectionBounds extends SBPMessage { public static final int TYPE = 0x05FE; + /** Header of a bounds message. */ public BoundsHeader header; - + /** IOD of the correction. */ public int ssr_iod_atmo; - + /** Set this tile belongs to. */ public int tile_set_id; - + /** Unique identifier of this tile in the tile set. */ public int tile_id; - + /** Tropo Quality Indicator. Similar to RTCM DF389. */ public int tropo_qi; - + /** Index of the Grid Point. */ public int grid_point_id; - + /** Tropospheric delay at grid point. */ public TroposphericDelayCorrection tropo_delay_correction; - + /** Vertical Hydrostatic Error Bound Mean. */ public int tropo_v_hydro_bound_mu; - + /** Vertical Hydrostatic Error Bound StDev. */ public int tropo_v_hydro_bound_sig; - + /** Vertical Wet Error Bound Mean. */ public int tropo_v_wet_bound_mu; - + /** Vertical Wet Error Bound StDev. */ public int tropo_v_wet_bound_sig; - + /** Number of satellites. */ public int n_sats; - - /** Array of STEC polynomial coefficients and its bounds for each space vehicle. */ + + /** Array of STEC polynomial coefficients and its bounds for each space + * vehicle. */ public STECSatElementIntegrity[] stec_sat_list; + - public MsgSsrGriddedCorrectionBounds(int sender) { - super(sender, TYPE); - } - - public MsgSsrGriddedCorrectionBounds() { - super(TYPE); - } - - public MsgSsrGriddedCorrectionBounds(SBPMessage msg) throws SBPBinaryException { + public MsgSsrGriddedCorrectionBounds (int sender) { super(sender, TYPE); } + public MsgSsrGriddedCorrectionBounds () { super(TYPE); } + public MsgSsrGriddedCorrectionBounds (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrGriddedCorrectionBounds, expected 1534, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrGriddedCorrectionBounds, expected 1534, actual " + msg.type); } @Override @@ -102,7 +103,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tropo_v_wet_bound_mu = parser.getU8(); tropo_v_wet_bound_sig = parser.getU8(); n_sats = parser.getU8(); - stec_sat_list = parser.getArray(STECSatElementIntegrity.class); + stec_sat_list = parser.getArray(STECSatElementIntegrity.class); } @Override @@ -119,7 +120,7 @@ protected void build(Builder builder) { builder.putU8(tropo_v_wet_bound_mu); builder.putU8(tropo_v_wet_bound_sig); builder.putU8(n_sats); - builder.putArray(stec_sat_list); + builder.putArray(stec_sat_list); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionDepA.java index 72526f5527..965900e92f 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_GRIDDED_CORRECTION_DEP_A (0x05FA). + +/** SBP class for message MSG_SSR_GRIDDED_CORRECTION_DEP_A (0x05FA). * - *

You can have MSG_SSR_GRIDDED_CORRECTION_DEP_A inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_GRIDDED_CORRECTION_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrGriddedCorrectionDepA extends SBPMessage { public static final int TYPE = 0x05FA; + /** Header of a Gridded Correction message */ public GriddedCorrectionHeaderDepA header; - + /** Index of the grid point */ public int index; - + /** Wet and hydrostatic vertical delays (mean, stddev) */ public TroposphericDelayCorrection tropo_delay_correction; - + /** STEC residuals for each satellite (mean, stddev) */ public STECResidual[] stec_residuals; + - public MsgSsrGriddedCorrectionDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrGriddedCorrectionDepA() { - super(TYPE); - } - - public MsgSsrGriddedCorrectionDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrGriddedCorrectionDepA (int sender) { super(sender, TYPE); } + public MsgSsrGriddedCorrectionDepA () { super(TYPE); } + public MsgSsrGriddedCorrectionDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrGriddedCorrectionDepA, expected 1530, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrGriddedCorrectionDepA, expected 1530, actual " + msg.type); } @Override @@ -65,7 +65,7 @@ protected void parse(Parser parser) throws SBPBinaryException { header = new GriddedCorrectionHeaderDepA().parse(parser); index = parser.getU16(); tropo_delay_correction = new TroposphericDelayCorrection().parse(parser); - stec_residuals = parser.getArray(STECResidual.class); + stec_residuals = parser.getArray(STECResidual.class); } @Override @@ -73,7 +73,7 @@ protected void build(Builder builder) { header.build(builder); builder.putU16(index); tropo_delay_correction.build(builder); - builder.putArray(stec_residuals); + builder.putArray(stec_residuals); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionNoStdDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionNoStdDepA.java index 59d8d40b12..ab43a52c80 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionNoStdDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrGriddedCorrectionNoStdDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A (0x05F0). + +/** SBP class for message MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A (0x05F0). * - *

You can have MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A inherent its fields directly from an - * inherited SBP object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_GRIDDED_CORRECTION_NO_STD_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrGriddedCorrectionNoStdDepA extends SBPMessage { public static final int TYPE = 0x05F0; + /** Header of a Gridded Correction message */ public GriddedCorrectionHeaderDepA header; - + /** Index of the grid point */ public int index; - + /** Wet and hydrostatic vertical delays */ public TroposphericDelayCorrectionNoStd tropo_delay_correction; - + /** STEC residuals for each satellite */ public STECResidualNoStd[] stec_residuals; + - public MsgSsrGriddedCorrectionNoStdDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrGriddedCorrectionNoStdDepA() { - super(TYPE); - } - - public MsgSsrGriddedCorrectionNoStdDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrGriddedCorrectionNoStdDepA (int sender) { super(sender, TYPE); } + public MsgSsrGriddedCorrectionNoStdDepA () { super(TYPE); } + public MsgSsrGriddedCorrectionNoStdDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrGriddedCorrectionNoStdDepA, expected 1520, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrGriddedCorrectionNoStdDepA, expected 1520, actual " + msg.type); } @Override @@ -65,7 +65,7 @@ protected void parse(Parser parser) throws SBPBinaryException { header = new GriddedCorrectionHeaderDepA().parse(parser); index = parser.getU16(); tropo_delay_correction = new TroposphericDelayCorrectionNoStd().parse(parser); - stec_residuals = parser.getArray(STECResidualNoStd.class); + stec_residuals = parser.getArray(STECResidualNoStd.class); } @Override @@ -73,7 +73,7 @@ protected void build(Builder builder) { header.build(builder); builder.putU16(index); tropo_delay_correction.build(builder); - builder.putArray(stec_residuals); + builder.putArray(stec_residuals); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClock.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClock.java index 53fc0b71b8..0214b521f9 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClock.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClock.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,89 +9,88 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_ORBIT_CLOCK (0x05DD). +/** SBP class for message MSG_SSR_ORBIT_CLOCK (0x05DD). * - *

You can have MSG_SSR_ORBIT_CLOCK inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_SSR_ORBIT_CLOCK inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The precise orbit and clock correction message is to be applied as a delta correction to - * broadcast ephemeris and is an equivalent to the 1060 /1066 RTCM message types. - */ + * The precise orbit and clock correction message is to be applied as a delta + * correction to broadcast ephemeris and is an equivalent to the 1060 /1066 + * RTCM message types. */ + public class MsgSsrOrbitClock extends SBPMessage { public static final int TYPE = 0x05DD; + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - - /** - * IOD of the SSR correction. A change of Issue Of Data SSR is used to indicate a change in the - * SSR generating configuration - */ + + /** IOD of the SSR correction. A change of Issue Of Data SSR is used to + * indicate a change in the SSR generating configuration */ public int iod_ssr; - + /** Issue of broadcast ephemeris data or IODCRC (Beidou) */ public long iod; - + /** Orbit radial delta correction */ public int radial; - + /** Orbit along delta correction */ public int along; - + /** Orbit along delta correction */ public int cross; - + /** Velocity of orbit radial delta correction */ public int dot_radial; - + /** Velocity of orbit along delta correction */ public int dot_along; - + /** Velocity of orbit cross delta correction */ public int dot_cross; - + /** C0 polynomial coefficient for correction of broadcast satellite clock */ public int c0; - + /** C1 polynomial coefficient for correction of broadcast satellite clock */ public int c1; - + /** C2 polynomial coefficient for correction of broadcast satellite clock */ public int c2; + - public MsgSsrOrbitClock(int sender) { - super(sender, TYPE); - } - - public MsgSsrOrbitClock() { - super(TYPE); - } - - public MsgSsrOrbitClock(SBPMessage msg) throws SBPBinaryException { + public MsgSsrOrbitClock (int sender) { super(sender, TYPE); } + public MsgSsrOrbitClock () { super(TYPE); } + public MsgSsrOrbitClock (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrOrbitClock, expected 1501, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrOrbitClock, expected 1501, actual " + msg.type); } @Override @@ -109,7 +109,7 @@ protected void parse(Parser parser) throws SBPBinaryException { dot_cross = parser.getS32(); c0 = parser.getS32(); c1 = parser.getS32(); - c2 = parser.getS32(); + c2 = parser.getS32(); } @Override @@ -127,7 +127,7 @@ protected void build(Builder builder) { builder.putS32(dot_cross); builder.putS32(c0); builder.putS32(c1); - builder.putS32(c2); + builder.putS32(c2); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBounds.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBounds.java index a6404815ef..0f3df0d4fc 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBounds.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBounds.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_ORBIT_CLOCK_BOUNDS (0x05DE). + +/** SBP class for message MSG_SSR_ORBIT_CLOCK_BOUNDS (0x05DE). * - *

You can have MSG_SSR_ORBIT_CLOCK_BOUNDS inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_ORBIT_CLOCK_BOUNDS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Note 1: Range: 0-17.5 m. i{@literal <}=200, mean=0.01i; 200{@literal <}i{@literal <}=230, - * mean=2+0.1(i-200); i{@literal >}230, mean=5+0.5(i-230). + * Note 1: Range: 0-17.5 m. i{@literal <}=200, mean=0.01i; 200{@literal <}i{@literal <}=230, mean=2+0.1(i-200); + * i{@literal >}230, mean=5+0.5(i-230). * - *

Note 2: Range: 0-17.5 m. i{@literal <}=200, std=0.01i; 200{@literal <}i{@literal <}=230, - * std=2+0.1(i-200) i{@literal >}230, std=5+0.5(i-230). - */ + * Note 2: Range: 0-17.5 m. i{@literal <}=200, std=0.01i; 200{@literal <}i{@literal <}=230, std=2+0.1(i-200) + * i{@literal >}230, std=5+0.5(i-230). */ + public class MsgSsrOrbitClockBounds extends SBPMessage { public static final int TYPE = 0x05DE; + /** Header of a bounds message. */ public BoundsHeader header; - + /** IOD of the SSR bound. */ public int ssr_iod; - + /** Constellation ID to which the SVs belong. */ public int const_id; - + /** Number of satellites. */ public int n_sats; - + /** Orbit and Clock Bounds per Satellite */ public OrbitClockBound[] orbit_clock_bounds; + - public MsgSsrOrbitClockBounds(int sender) { - super(sender, TYPE); - } - - public MsgSsrOrbitClockBounds() { - super(TYPE); - } - - public MsgSsrOrbitClockBounds(SBPMessage msg) throws SBPBinaryException { + public MsgSsrOrbitClockBounds (int sender) { super(sender, TYPE); } + public MsgSsrOrbitClockBounds () { super(TYPE); } + public MsgSsrOrbitClockBounds (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrOrbitClockBounds, expected 1502, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrOrbitClockBounds, expected 1502, actual " + msg.type); } @Override @@ -72,7 +73,7 @@ protected void parse(Parser parser) throws SBPBinaryException { ssr_iod = parser.getU8(); const_id = parser.getU8(); n_sats = parser.getU8(); - orbit_clock_bounds = parser.getArray(OrbitClockBound.class); + orbit_clock_bounds = parser.getArray(OrbitClockBound.class); } @Override @@ -81,7 +82,7 @@ protected void build(Builder builder) { builder.putU8(ssr_iod); builder.putU8(const_id); builder.putU8(n_sats); - builder.putArray(orbit_clock_bounds); + builder.putArray(orbit_clock_bounds); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBoundsDegradation.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBoundsDegradation.java index 6537e5576d..6c5453c3c9 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBoundsDegradation.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockBoundsDegradation.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrOrbitClockBoundsDegradation extends SBPMessage { public static final int TYPE = 0x05DF; + /** Header of a bounds message. */ public BoundsHeader header; - + /** IOD of the SSR bound degradation parameter. */ public int ssr_iod; - + /** Constellation ID to which the SVs belong. */ public int const_id; - - /** - * Satellite Bit Mask. Put 1 for each satellite where the following degradation parameters are - * applicable, 0 otherwise. Encoded following RTCM DF394 specification. - */ + + /** Satellite Bit Mask. Put 1 for each satellite where the following + * degradation parameters are applicable, 0 otherwise. Encoded following + * RTCM DF394 specification. */ public BigInteger sat_bitmask; - + /** Orbit and Clock Bounds Degradation Parameters */ public OrbitClockBoundDegradation orbit_clock_bounds_degradation; + - public MsgSsrOrbitClockBoundsDegradation(int sender) { - super(sender, TYPE); - } - - public MsgSsrOrbitClockBoundsDegradation() { - super(TYPE); - } - - public MsgSsrOrbitClockBoundsDegradation(SBPMessage msg) throws SBPBinaryException { + public MsgSsrOrbitClockBoundsDegradation (int sender) { super(sender, TYPE); } + public MsgSsrOrbitClockBoundsDegradation () { super(TYPE); } + public MsgSsrOrbitClockBoundsDegradation (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrOrbitClockBoundsDegradation, expected 1503, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrOrbitClockBoundsDegradation, expected 1503, actual " + msg.type); } @Override @@ -64,7 +64,7 @@ protected void parse(Parser parser) throws SBPBinaryException { ssr_iod = parser.getU8(); const_id = parser.getU8(); sat_bitmask = parser.getU64(); - orbit_clock_bounds_degradation = new OrbitClockBoundDegradation().parse(parser); + orbit_clock_bounds_degradation = new OrbitClockBoundDegradation().parse(parser); } @Override @@ -73,7 +73,7 @@ protected void build(Builder builder) { builder.putU8(ssr_iod); builder.putU8(const_id); builder.putU64(sat_bitmask); - orbit_clock_bounds_degradation.build(builder); + orbit_clock_bounds_degradation.build(builder); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockDepA.java index 6d5aa68371..432348be19 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrOrbitClockDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,88 +9,86 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_ORBIT_CLOCK_DEP_A (0x05DC). +/** SBP class for message MSG_SSR_ORBIT_CLOCK_DEP_A (0x05DC). * - *

You can have MSG_SSR_ORBIT_CLOCK_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_ORBIT_CLOCK_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrOrbitClockDepA extends SBPMessage { public static final int TYPE = 0x05DC; + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - - /** - * IOD of the SSR correction. A change of Issue Of Data SSR is used to indicate a change in the - * SSR generating configuration - */ + + /** IOD of the SSR correction. A change of Issue Of Data SSR is used to + * indicate a change in the SSR generating configuration */ public int iod_ssr; - + /** Issue of broadcast ephemeris data */ public int iod; - + /** Orbit radial delta correction */ public int radial; - + /** Orbit along delta correction */ public int along; - + /** Orbit along delta correction */ public int cross; - + /** Velocity of orbit radial delta correction */ public int dot_radial; - + /** Velocity of orbit along delta correction */ public int dot_along; - + /** Velocity of orbit cross delta correction */ public int dot_cross; - + /** C0 polynomial coefficient for correction of broadcast satellite clock */ public int c0; - + /** C1 polynomial coefficient for correction of broadcast satellite clock */ public int c1; - + /** C2 polynomial coefficient for correction of broadcast satellite clock */ public int c2; + - public MsgSsrOrbitClockDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrOrbitClockDepA() { - super(TYPE); - } - - public MsgSsrOrbitClockDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrOrbitClockDepA (int sender) { super(sender, TYPE); } + public MsgSsrOrbitClockDepA () { super(TYPE); } + public MsgSsrOrbitClockDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrOrbitClockDepA, expected 1500, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrOrbitClockDepA, expected 1500, actual " + msg.type); } @Override @@ -108,7 +107,7 @@ protected void parse(Parser parser) throws SBPBinaryException { dot_cross = parser.getS32(); c0 = parser.getS32(); c1 = parser.getS32(); - c2 = parser.getS32(); + c2 = parser.getS32(); } @Override @@ -126,7 +125,7 @@ protected void build(Builder builder) { builder.putS32(dot_cross); builder.putS32(c0); builder.putS32(c1); - builder.putS32(c2); + builder.putS32(c2); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrPhaseBiases.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrPhaseBiases.java index 918fe0cdad..c54472d34b 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrPhaseBiases.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrPhaseBiases.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,77 +9,75 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_PHASE_BIASES (0x05E6). +/** SBP class for message MSG_SSR_PHASE_BIASES (0x05E6). * - *

You can have MSG_SSR_PHASE_BIASES inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_SSR_PHASE_BIASES inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The precise phase biases message contains the biases to be added to the carrier phase of the - * corresponding signal to get corrected carrier phase measurement, as well as the satellite yaw - * angle to be applied to compute the phase wind-up correction. It is typically an equivalent to the - * 1265 RTCM message types. - */ + * The precise phase biases message contains the biases to be added to the + * carrier phase of the corresponding signal to get corrected carrier phase + * measurement, as well as the satellite yaw angle to be applied to compute + * the phase wind-up correction. It is typically an equivalent to the 1265 + * RTCM message types. */ + public class MsgSsrPhaseBiases extends SBPMessage { public static final int TYPE = 0x05E6; + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - - /** - * IOD of the SSR correction. A change of Issue Of Data SSR is used to indicate a change in the - * SSR generating configuration - */ + + /** IOD of the SSR correction. A change of Issue Of Data SSR is used to + * indicate a change in the SSR generating configuration */ public int iod_ssr; - + /** Indicator for the dispersive phase biases property. */ public int dispersive_bias; - + /** Consistency indicator for Melbourne-Wubbena linear combinations */ public int mw_consistency; - + /** Satellite yaw angle */ public int yaw; - + /** Satellite yaw angle rate */ public int yaw_rate; - + /** Phase biases corrections for a satellite being tracked. */ public PhaseBiasesContent[] biases; + - public MsgSsrPhaseBiases(int sender) { - super(sender, TYPE); - } - - public MsgSsrPhaseBiases() { - super(TYPE); - } - - public MsgSsrPhaseBiases(SBPMessage msg) throws SBPBinaryException { + public MsgSsrPhaseBiases (int sender) { super(sender, TYPE); } + public MsgSsrPhaseBiases () { super(TYPE); } + public MsgSsrPhaseBiases (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrPhaseBiases, expected 1510, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrPhaseBiases, expected 1510, actual " + msg.type); } @Override @@ -92,7 +91,7 @@ protected void parse(Parser parser) throws SBPBinaryException { mw_consistency = parser.getU8(); yaw = parser.getU16(); yaw_rate = parser.getS8(); - biases = parser.getArray(PhaseBiasesContent.class); + biases = parser.getArray(PhaseBiasesContent.class); } @Override @@ -105,7 +104,7 @@ protected void build(Builder builder) { builder.putU8(mw_consistency); builder.putU16(yaw); builder.putS8(yaw_rate); - builder.putArray(biases); + builder.putArray(biases); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApc.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApc.java index 1ba8fa943e..22672dfa15 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApc.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApc.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrSatelliteApc extends SBPMessage { public static final int TYPE = 0x0605; + /** GNSS reference time of the correction */ public GPSTimeSec time; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - + /** SSR Solution ID. Similar to RTCM DF415. */ public int sol_id; - - /** - * IOD of the SSR correction. A change of Issue Of Data SSR is used to indicate a change in the - * SSR generating configuration - */ + + /** IOD of the SSR correction. A change of Issue Of Data SSR is used to + * indicate a change in the SSR generating configuration */ public int iod_ssr; - + /** Satellite antenna phase center corrections */ public SatelliteAPC[] apc; + - public MsgSsrSatelliteApc(int sender) { - super(sender, TYPE); - } - - public MsgSsrSatelliteApc() { - super(TYPE); - } - - public MsgSsrSatelliteApc(SBPMessage msg) throws SBPBinaryException { + public MsgSsrSatelliteApc (int sender) { super(sender, TYPE); } + public MsgSsrSatelliteApc () { super(TYPE); } + public MsgSsrSatelliteApc (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrSatelliteApc, expected 1541, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrSatelliteApc, expected 1541, actual " + msg.type); } @Override @@ -65,7 +64,7 @@ protected void parse(Parser parser) throws SBPBinaryException { update_interval = parser.getU8(); sol_id = parser.getU8(); iod_ssr = parser.getU8(); - apc = parser.getArray(SatelliteAPC.class); + apc = parser.getArray(SatelliteAPC.class); } @Override @@ -74,7 +73,7 @@ protected void build(Builder builder) { builder.putU8(update_interval); builder.putU8(sol_id); builder.putU8(iod_ssr); - builder.putArray(apc); + builder.putArray(apc); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApcDep.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApcDep.java index 2a4a5cbdac..cbc2397eed 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApcDep.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrSatelliteApcDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_SATELLITE_APC_DEP (0x0604). +/** SBP class for message MSG_SSR_SATELLITE_APC_DEP (0x0604). * - *

You can have MSG_SSR_SATELLITE_APC_DEP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_SATELLITE_APC_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrSatelliteApcDep extends SBPMessage { public static final int TYPE = 0x0604; + /** Satellite antenna phase center corrections */ public SatelliteAPC[] apc; + - public MsgSsrSatelliteApcDep(int sender) { - super(sender, TYPE); - } - - public MsgSsrSatelliteApcDep() { - super(TYPE); - } - - public MsgSsrSatelliteApcDep(SBPMessage msg) throws SBPBinaryException { + public MsgSsrSatelliteApcDep (int sender) { super(sender, TYPE); } + public MsgSsrSatelliteApcDep () { super(TYPE); } + public MsgSsrSatelliteApcDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrSatelliteApcDep, expected 1540, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrSatelliteApcDep, expected 1540, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - apc = parser.getArray(SatelliteAPC.class); + apc = parser.getArray(SatelliteAPC.class); } @Override protected void build(Builder builder) { - builder.putArray(apc); + builder.putArray(apc); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrection.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrection.java index f82cf3e79b..0bcebd06d7 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrection.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrection.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,52 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + + public class MsgSsrStecCorrection extends SBPMessage { public static final int TYPE = 0x05FD; + /** Header of a STEC correction with bounds message. */ public BoundsHeader header; - + /** IOD of the SSR atmospheric correction */ public int ssr_iod_atmo; - + /** Tile set ID */ public int tile_set_id; - + /** Tile ID */ public int tile_id; - + /** Number of satellites. */ public int n_sats; - + /** Array of STEC polynomial coefficients for each space vehicle. */ public STECSatElement[] stec_sat_list; + - public MsgSsrStecCorrection(int sender) { - super(sender, TYPE); - } - - public MsgSsrStecCorrection() { - super(TYPE); - } - - public MsgSsrStecCorrection(SBPMessage msg) throws SBPBinaryException { + public MsgSsrStecCorrection (int sender) { super(sender, TYPE); } + public MsgSsrStecCorrection () { super(TYPE); } + public MsgSsrStecCorrection (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrStecCorrection, expected 1533, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrStecCorrection, expected 1533, actual " + msg.type); } @Override @@ -64,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tile_set_id = parser.getU16(); tile_id = parser.getU16(); n_sats = parser.getU8(); - stec_sat_list = parser.getArray(STECSatElement.class); + stec_sat_list = parser.getArray(STECSatElement.class); } @Override @@ -74,7 +76,7 @@ protected void build(Builder builder) { builder.putU16(tile_set_id); builder.putU16(tile_id); builder.putU8(n_sats); - builder.putArray(stec_sat_list); + builder.putArray(stec_sat_list); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDep.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDep.java index 438510495b..722c0e35e3 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDep.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_STEC_CORRECTION_DEP (0x05FB). +/** SBP class for message MSG_SSR_STEC_CORRECTION_DEP (0x05FB). * - *

You can have MSG_SSR_STEC_CORRECTION_DEP inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_STEC_CORRECTION_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrStecCorrectionDep extends SBPMessage { public static final int TYPE = 0x05FB; + /** Header of a STEC polynomial coefficient message. */ public STECHeader header; - + /** Array of STEC polynomial coefficients for each space vehicle. */ public STECSatElement[] stec_sat_list; + - public MsgSsrStecCorrectionDep(int sender) { - super(sender, TYPE); - } - - public MsgSsrStecCorrectionDep() { - super(TYPE); - } - - public MsgSsrStecCorrectionDep(SBPMessage msg) throws SBPBinaryException { + public MsgSsrStecCorrectionDep (int sender) { super(sender, TYPE); } + public MsgSsrStecCorrectionDep () { super(TYPE); } + public MsgSsrStecCorrectionDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrStecCorrectionDep, expected 1531, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrStecCorrectionDep, expected 1531, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new STECHeader().parse(parser); - stec_sat_list = parser.getArray(STECSatElement.class); + stec_sat_list = parser.getArray(STECSatElement.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(stec_sat_list); + builder.putArray(stec_sat_list); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDepA.java index ebd11765bf..d7a333167e 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrStecCorrectionDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,62 +9,61 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_STEC_CORRECTION_DEP_A (0x05EB). +/** SBP class for message MSG_SSR_STEC_CORRECTION_DEP_A (0x05EB). * - *

You can have MSG_SSR_STEC_CORRECTION_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_STEC_CORRECTION_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrStecCorrectionDepA extends SBPMessage { public static final int TYPE = 0x05EB; + /** Header of a STEC message */ public STECHeaderDepA header; - + /** Array of STEC information for each space vehicle */ public STECSatElement[] stec_sat_list; + - public MsgSsrStecCorrectionDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrStecCorrectionDepA() { - super(TYPE); - } - - public MsgSsrStecCorrectionDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrStecCorrectionDepA (int sender) { super(sender, TYPE); } + public MsgSsrStecCorrectionDepA () { super(TYPE); } + public MsgSsrStecCorrectionDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrStecCorrectionDepA, expected 1515, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrStecCorrectionDepA, expected 1515, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ header = new STECHeaderDepA().parse(parser); - stec_sat_list = parser.getArray(STECSatElement.class); + stec_sat_list = parser.getArray(STECSatElement.class); } @Override protected void build(Builder builder) { header.build(builder); - builder.putArray(stec_sat_list); + builder.putArray(stec_sat_list); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinition.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinition.java index 146dab7662..4500ac7fd3 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinition.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinition.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,134 +9,120 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SSR_TILE_DEFINITION (0x05F8). +/** SBP class for message MSG_SSR_TILE_DEFINITION (0x05F8). * - *

You can have MSG_SSR_TILE_DEFINITION inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_TILE_DEFINITION inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Provides the correction point coordinates for the atmospheric correction values in the - * MSG_SSR_STEC_CORRECTION and MSG_SSR_GRIDDED_CORRECTION messages. + * Provides the correction point coordinates for the atmospheric correction + * values in the MSG_SSR_STEC_CORRECTION and MSG_SSR_GRIDDED_CORRECTION + * messages. * - *

Based on ETSI TS 137 355 V16.1.0 (LTE Positioning Protocol) information element - * GNSS-SSR-CorrectionPoints. SBP only supports gridded arrays of correction points, not lists of - * points. - */ + * Based on ETSI TS 137 355 V16.1.0 (LTE Positioning Protocol) information + * element GNSS-SSR-CorrectionPoints. SBP only supports gridded arrays of + * correction points, not lists of points. */ + public class MsgSsrTileDefinition extends SBPMessage { public static final int TYPE = 0x05F8; + /** GNSS reference time of the correction */ public GPSTimeSec time; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following + * RTCM DF391 specification. */ public int update_interval; - + /** SSR Solution ID. Similar to RTCM DF415. */ public int sol_id; - + /** IOD of the SSR atmospheric correction. */ public int iod_atmo; - + /** Unique identifier of the tile set this tile belongs to. */ public int tile_set_id; - - /** - * Unique identifier of this tile in the tile set. See GNSS-SSR-ArrayOfCorrectionPoints field - * correctionPointSetID. - */ + + /** Unique identifier of this tile in the tile set. + * See GNSS-SSR-ArrayOfCorrectionPoints field correctionPointSetID. */ public int tile_id; - - /** - * North-West corner correction point latitude. - * - *

The relation between the latitude X in the range [-90, 90] and the coded number N is: N = - * floor((X / 90) * 2^14) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. - */ + + /** North-West corner correction point latitude. + * + * The relation between the latitude X in the range [-90, 90] and the + * coded number N is: N = floor((X / 90) * 2^14) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. */ public int corner_nw_lat; - - /** - * North-West corner correction point longitude. - * - *

The relation between the longitude X in the range [-180, 180] and the coded number N is: N - * = floor((X / 180) * 2^15) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. - */ + + /** North-West corner correction point longitude. + * + * The relation between the longitude X in the range [-180, 180] and the + * coded number N is: N = floor((X / 180) * 2^15) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. */ public int corner_nw_lon; - - /** - * Spacing of the correction points in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. - */ + + /** Spacing of the correction points in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. */ public int spacing_lat; - - /** - * Spacing of the correction points in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. - */ + + /** Spacing of the correction points in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. */ public int spacing_lon; - - /** - * Number of steps in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. - */ + + /** Number of steps in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. */ public int rows; - - /** - * Number of steps in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. - */ + + /** Number of steps in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. */ public int cols; - - /** - * Specifies the absence of correction data at the correction points in the array (grid). - * - *

Only the first rows * cols bits are used, and if a specific bit is enabled (set to 1), the - * correction is not available. If there are more than 64 correction points the remaining - * corrections are always available. - * - *

The correction points are packed by rows, starting with the northwest corner of the array - * (top-left on a north oriented map), with each row spanning west to east, ending with the - * southeast corner of the array. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the definition of the - * bits is inverted. - */ + + /** Specifies the absence of correction data at the correction points in + * the array (grid). + * + * Only the first rows * cols bits are used, and if a specific bit is + * enabled (set to 1), the correction is not available. If there are more + * than 64 correction points the remaining corrections are always + * available. + * + * The correction points are packed by rows, starting with the northwest + * corner of the array (top-left on a north oriented map), with each row + * spanning west to east, ending with the southeast corner of the array. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the + * definition of the bits is inverted. */ public BigInteger bitmask; + - public MsgSsrTileDefinition(int sender) { - super(sender, TYPE); - } - - public MsgSsrTileDefinition() { - super(TYPE); - } - - public MsgSsrTileDefinition(SBPMessage msg) throws SBPBinaryException { + public MsgSsrTileDefinition (int sender) { super(sender, TYPE); } + public MsgSsrTileDefinition () { super(TYPE); } + public MsgSsrTileDefinition (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrTileDefinition, expected 1528, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrTileDefinition, expected 1528, actual " + msg.type); } @Override @@ -153,7 +140,7 @@ protected void parse(Parser parser) throws SBPBinaryException { spacing_lon = parser.getU16(); rows = parser.getU16(); cols = parser.getU16(); - bitmask = parser.getU64(); + bitmask = parser.getU64(); } @Override @@ -170,7 +157,7 @@ protected void build(Builder builder) { builder.putU16(spacing_lon); builder.putU16(rows); builder.putU16(cols); - builder.putU64(bitmask); + builder.putU64(bitmask); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepA.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepA.java index b8233a3bae..d0bb31a254 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,118 +9,106 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_TILE_DEFINITION_DEP_A (0x05F6). + +/** SBP class for message MSG_SSR_TILE_DEFINITION_DEP_A (0x05F6). * - *

You can have MSG_SSR_TILE_DEFINITION_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_TILE_DEFINITION_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrTileDefinitionDepA extends SBPMessage { public static final int TYPE = 0x05F6; + /** Unique identifier of the tile set this tile belongs to. */ public int tile_set_id; - - /** - * Unique identifier of this tile in the tile set. See GNSS-SSR-ArrayOfCorrectionPoints field - * correctionPointSetID. - */ + + /** Unique identifier of this tile in the tile set. + * See GNSS-SSR-ArrayOfCorrectionPoints field correctionPointSetID. */ public int tile_id; - - /** - * North-West corner correction point latitude. - * - *

The relation between the latitude X in the range [-90, 90] and the coded number N is: - * - *

N = floor((X / 90) * 2^14) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. - */ + + /** North-West corner correction point latitude. + * + * The relation between the latitude X in the range [-90, 90] and the + * coded number N is: + * + * N = floor((X / 90) * 2^14) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. */ public int corner_nw_lat; - - /** - * North-West corner correction point longitude. - * - *

The relation between the longitude X in the range [-180, 180] and the coded number N is: - * - *

N = floor((X / 180) * 2^15) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. - */ + + /** North-West corner correction point longitude. + * + * The relation between the longitude X in the range [-180, 180] and the + * coded number N is: + * + * N = floor((X / 180) * 2^15) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. */ public int corner_nw_lon; - - /** - * Spacing of the correction points in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. - */ + + /** Spacing of the correction points in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. */ public int spacing_lat; - - /** - * Spacing of the correction points in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. - */ + + /** Spacing of the correction points in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. */ public int spacing_lon; - - /** - * Number of steps in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. - */ + + /** Number of steps in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. */ public int rows; - - /** - * Number of steps in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. - */ + + /** Number of steps in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. */ public int cols; - - /** - * Specifies the availability of correction data at the correction points in the array. - * - *

If a specific bit is enabled (set to 1), the correction is not available. Only the first - * rows * cols bits are used, the remainder are set to 0. If there are more then 64 correction - * points the remaining corrections are always available. - * - *

Starting with the northwest corner of the array (top left on a north oriented map) the - * correction points are enumerated with row precedence - first row west to east, second row - * west to east, until last row west to east - ending with the southeast corner of the array. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the definition of the - * bits is inverted. - */ + + /** Specifies the availability of correction data at the correction points + * in the array. + * + * If a specific bit is enabled (set to 1), the correction is not + * available. Only the first rows * cols bits are used, the remainder are + * set to 0. If there are more then 64 correction points the remaining + * corrections are always available. + * + * Starting with the northwest corner of the array (top left on a north + * oriented map) the correction points are enumerated with row precedence + * - first row west to east, second row west to east, until last row west + * to east - ending with the southeast corner of the array. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the + * definition of the bits is inverted. */ public BigInteger bitmask; + - public MsgSsrTileDefinitionDepA(int sender) { - super(sender, TYPE); - } - - public MsgSsrTileDefinitionDepA() { - super(TYPE); - } - - public MsgSsrTileDefinitionDepA(SBPMessage msg) throws SBPBinaryException { + public MsgSsrTileDefinitionDepA (int sender) { super(sender, TYPE); } + public MsgSsrTileDefinitionDepA () { super(TYPE); } + public MsgSsrTileDefinitionDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrTileDefinitionDepA, expected 1526, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrTileDefinitionDepA, expected 1526, actual " + msg.type); } @Override @@ -133,7 +122,7 @@ protected void parse(Parser parser) throws SBPBinaryException { spacing_lon = parser.getU16(); rows = parser.getU16(); cols = parser.getU16(); - bitmask = parser.getU64(); + bitmask = parser.getU64(); } @Override @@ -146,7 +135,7 @@ protected void build(Builder builder) { builder.putU16(spacing_lon); builder.putU16(rows); builder.putU16(cols); - builder.putU64(bitmask); + builder.putU64(bitmask); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepB.java b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepB.java index 28770d9996..9ce0d93ca2 100644 --- a/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepB.java +++ b/java/src/com/swiftnav/sbp/ssr/MsgSsrTileDefinitionDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,121 +9,109 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_SSR_TILE_DEFINITION_DEP_B (0x05F7). + +/** SBP class for message MSG_SSR_TILE_DEFINITION_DEP_B (0x05F7). * - *

You can have MSG_SSR_TILE_DEFINITION_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_SSR_TILE_DEFINITION_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgSsrTileDefinitionDepB extends SBPMessage { public static final int TYPE = 0x05F7; + /** SSR Solution ID. */ public int ssr_sol_id; - + /** Unique identifier of the tile set this tile belongs to. */ public int tile_set_id; - - /** - * Unique identifier of this tile in the tile set. See GNSS-SSR-ArrayOfCorrectionPoints field - * correctionPointSetID. - */ + + /** Unique identifier of this tile in the tile set. + * See GNSS-SSR-ArrayOfCorrectionPoints field correctionPointSetID. */ public int tile_id; - - /** - * North-West corner correction point latitude. - * - *

The relation between the latitude X in the range [-90, 90] and the coded number N is: - * - *

N = floor((X / 90) * 2^14) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. - */ + + /** North-West corner correction point latitude. + * + * The relation between the latitude X in the range [-90, 90] and the + * coded number N is: + * + * N = floor((X / 90) * 2^14) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLatitude. */ public int corner_nw_lat; - - /** - * North-West corner correction point longitude. - * - *

The relation between the longitude X in the range [-180, 180] and the coded number N is: - * - *

N = floor((X / 180) * 2^15) - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. - */ + + /** North-West corner correction point longitude. + * + * The relation between the longitude X in the range [-180, 180] and the + * coded number N is: + * + * N = floor((X / 180) * 2^15) + * + * See GNSS-SSR-ArrayOfCorrectionPoints field referencePointLongitude. */ public int corner_nw_lon; - - /** - * Spacing of the correction points in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. - */ + + /** Spacing of the correction points in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLatitude. */ public int spacing_lat; - - /** - * Spacing of the correction points in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. - */ + + /** Spacing of the correction points in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field stepOfLongitude. */ public int spacing_lon; - - /** - * Number of steps in the latitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. - */ + + /** Number of steps in the latitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLatitude. */ public int rows; - - /** - * Number of steps in the longitude direction. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. - */ + + /** Number of steps in the longitude direction. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field numberOfStepsLongitude. */ public int cols; - - /** - * Specifies the availability of correction data at the correction points in the array. - * - *

If a specific bit is enabled (set to 1), the correction is not available. Only the first - * rows * cols bits are used, the remainder are set to 0. If there are more then 64 correction - * points the remaining corrections are always available. - * - *

Starting with the northwest corner of the array (top left on a north oriented map) the - * correction points are enumerated with row precedence - first row west to east, second row - * west to east, until last row west to east - ending with the southeast corner of the array. - * - *

See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the definition of the - * bits is inverted. - */ + + /** Specifies the availability of correction data at the correction points + * in the array. + * + * If a specific bit is enabled (set to 1), the correction is not + * available. Only the first rows * cols bits are used, the remainder are + * set to 0. If there are more then 64 correction points the remaining + * corrections are always available. + * + * Starting with the northwest corner of the array (top left on a north + * oriented map) the correction points are enumerated with row precedence + * - first row west to east, second row west to east, until last row west + * to east - ending with the southeast corner of the array. + * + * See GNSS-SSR-ArrayOfCorrectionPoints field bitmaskOfGrids but note the + * definition of the bits is inverted. */ public BigInteger bitmask; + - public MsgSsrTileDefinitionDepB(int sender) { - super(sender, TYPE); - } - - public MsgSsrTileDefinitionDepB() { - super(TYPE); - } - - public MsgSsrTileDefinitionDepB(SBPMessage msg) throws SBPBinaryException { + public MsgSsrTileDefinitionDepB (int sender) { super(sender, TYPE); } + public MsgSsrTileDefinitionDepB () { super(TYPE); } + public MsgSsrTileDefinitionDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSsrTileDefinitionDepB, expected 1527, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSsrTileDefinitionDepB, expected 1527, actual " + msg.type); } @Override @@ -137,7 +126,7 @@ protected void parse(Parser parser) throws SBPBinaryException { spacing_lon = parser.getU16(); rows = parser.getU16(); cols = parser.getU16(); - bitmask = parser.getU64(); + bitmask = parser.getU64(); } @Override @@ -151,7 +140,7 @@ protected void build(Builder builder) { builder.putU16(spacing_lon); builder.putU16(rows); builder.putU16(cols); - builder.putU64(bitmask); + builder.putU64(bitmask); } @Override diff --git a/java/src/com/swiftnav/sbp/ssr/OrbitClockBound.java b/java/src/com/swiftnav/sbp/ssr/OrbitClockBound.java index 6bc15cd51d..55d8ea9ace 100644 --- a/java/src/com/swiftnav/sbp/ssr/OrbitClockBound.java +++ b/java/src/com/swiftnav/sbp/ssr/OrbitClockBound.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,51 +9,54 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class OrbitClockBound extends SBPStruct { - - /** - * Satellite ID. Similar to either RTCM DF068 (GPS), DF252 (Galileo), or DF488 (BDS) depending - * on the constellation. - */ + + /** Satellite ID. Similar to either RTCM DF068 (GPS), DF252 (Galileo), or DF488 + * (BDS) depending on the constellation. */ public int sat_id; - + /** Mean Radial. See Note 1. */ public int orb_radial_bound_mu; - + /** Mean Along-Track. See Note 1. */ public int orb_along_bound_mu; - + /** Mean Cross-Track. See Note 1. */ public int orb_cross_bound_mu; - + /** Standard Deviation Radial. See Note 2. */ public int orb_radial_bound_sig; - + /** Standard Deviation Along-Track. See Note 2. */ public int orb_along_bound_sig; - + /** Standard Deviation Cross-Track. See Note 2. */ public int orb_cross_bound_sig; - + /** Clock Bound Mean. See Note 1. */ public int clock_bound_mu; - + /** Clock Bound Standard Deviation. See Note 2. */ public int clock_bound_sig; + - public OrbitClockBound() {} + public OrbitClockBound () {} @Override public OrbitClockBound parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/OrbitClockBoundDegradation.java b/java/src/com/swiftnav/sbp/ssr/OrbitClockBoundDegradation.java index 563e3c21c7..8cd1299ac8 100644 --- a/java/src/com/swiftnav/sbp/ssr/OrbitClockBoundDegradation.java +++ b/java/src/com/swiftnav/sbp/ssr/OrbitClockBoundDegradation.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,45 +9,50 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class OrbitClockBoundDegradation extends SBPStruct { - + /** Orbit Bound Mean Radial First derivative. Range: 0-0.255 m/s */ public int orb_radial_bound_mu_dot; - + /** Orbit Bound Mean Along-Track First derivative. Range: 0-0.255 m/s */ public int orb_along_bound_mu_dot; - + /** Orbit Bound Mean Cross-Track First derivative. Range: 0-0.255 m/s */ public int orb_cross_bound_mu_dot; - + /** Orbit Bound Standard Deviation Radial First derivative. Range: 0-0.255 m/s */ public int orb_radial_bound_sig_dot; - + /** Orbit Bound Standard Deviation Along-Track First derivative. Range: 0-0.255 m/s */ public int orb_along_bound_sig_dot; - + /** Orbit Bound Standard Deviation Cross-Track First derivative. Range: 0-0.255 m/s */ public int orb_cross_bound_sig_dot; - + /** Clock Bound Mean First derivative. Range: 0-0.255 m/s */ public int clock_bound_mu_dot; - + /** Clock Bound Standard Deviation First derivative. Range: 0-0.255 m/s */ public int clock_bound_sig_dot; + - public OrbitClockBoundDegradation() {} + public OrbitClockBoundDegradation () {} @Override public OrbitClockBoundDegradation parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/PhaseBiasesContent.java b/java/src/com/swiftnav/sbp/ssr/PhaseBiasesContent.java index ecf34cb829..161214784d 100644 --- a/java/src/com/swiftnav/sbp/ssr/PhaseBiasesContent.java +++ b/java/src/com/swiftnav/sbp/ssr/PhaseBiasesContent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,36 +9,41 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class PhaseBiasesContent extends SBPStruct { - + /** Signal encoded following RTCM specifications (DF380, DF381, DF382 and DF467) */ public int code; - + /** Indicator for integer property */ public int integer_indicator; - + /** Indicator for two groups of Wide-Lane(s) integer property */ public int widelane_integer_indicator; - + /** Signal phase discontinuity counter. Increased for every discontinuity in phase. */ public int discontinuity_counter; - + /** Phase bias for specified signal */ public int bias; + - public PhaseBiasesContent() {} + public PhaseBiasesContent () {} @Override public PhaseBiasesContent parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECHeader.java b/java/src/com/swiftnav/sbp/ssr/STECHeader.java index 8113cf680f..56e0eda9bf 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECHeader.java +++ b/java/src/com/swiftnav/sbp/ssr/STECHeader.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,44 +9,48 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class STECHeader extends SBPStruct { - + /** Unique identifier of the tile set this tile belongs to. */ public int tile_set_id; - + /** Unique identifier of this tile in the tile set. */ public int tile_id; - + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following RTCM DF391 + * specification. */ public int update_interval; - + /** IOD of the SSR atmospheric correction */ public int iod_atmo; + - public STECHeader() {} + public STECHeader () {} @Override public STECHeader parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECHeaderDepA.java b/java/src/com/swiftnav/sbp/ssr/STECHeaderDepA.java index 9edcc0f288..95ffb38fef 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECHeaderDepA.java +++ b/java/src/com/swiftnav/sbp/ssr/STECHeaderDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,38 +9,42 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class STECHeaderDepA extends SBPStruct { - + /** GNSS reference time of the correction */ public GPSTimeSec time; - + /** Number of messages in the dataset */ public int num_msgs; - + /** Position of this message in the dataset */ public int seq_num; - - /** - * Update interval between consecutive corrections. Encoded following RTCM DF391 specification. - */ + + /** Update interval between consecutive corrections. Encoded following RTCM DF391 + * specification. */ public int update_interval; - + /** IOD of the SSR atmospheric correction */ public int iod_atmo; + - public STECHeaderDepA() {} + public STECHeaderDepA () {} @Override public STECHeaderDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECResidual.java b/java/src/com/swiftnav/sbp/ssr/STECResidual.java index 364f701015..fa2a9df11e 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECResidual.java +++ b/java/src/com/swiftnav/sbp/ssr/STECResidual.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,34 +9,37 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class STECResidual extends SBPStruct { - + /** space vehicle identifier */ public SvId sv_id; - + /** STEC residual */ public int residual; - - /** - * Standard deviation encoded using a similar method as RTCM DF389. The upper 3 bit are the - * class, the lower 5 bits are the value. Standard deviation [TECU] = (3^class * (1 + value/16) - * - 1) * 0.1 - */ + + /** Standard deviation encoded using a similar method as RTCM DF389. The upper 3 + * bit are the class, the lower 5 bits are the value. Standard deviation [TECU] = + * (3^class * (1 + value/16) - 1) * 0.1 */ public int stddev; + - public STECResidual() {} + public STECResidual () {} @Override public STECResidual parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECResidualNoStd.java b/java/src/com/swiftnav/sbp/ssr/STECResidualNoStd.java index 58d388569e..c3a9c00798 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECResidualNoStd.java +++ b/java/src/com/swiftnav/sbp/ssr/STECResidualNoStd.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class STECResidualNoStd extends SBPStruct { - + /** space vehicle identifier */ public SvId sv_id; - + /** STEC residual */ public int residual; + - public STECResidualNoStd() {} + public STECResidualNoStd () {} @Override public STECResidualNoStd parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECSatElement.java b/java/src/com/swiftnav/sbp/ssr/STECSatElement.java index bd7709e1d4..8ea133b55f 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECSatElement.java +++ b/java/src/com/swiftnav/sbp/ssr/STECSatElement.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,37 +9,37 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; public class STECSatElement extends SBPStruct { - + /** Unique space vehicle identifier */ public SvId sv_id; - - /** - * Quality of the STEC data. Encoded following RTCM DF389 specification but in units of TECU - * instead of m. - */ + + /** Quality of the STEC data. Encoded following RTCM DF389 specification but in + * units of TECU instead of m. */ public int stec_quality_indicator; - - /** - * Coefficients of the STEC polynomial in the order of C00, C01, C10, C11. C00 = 0.05 TECU, - * C01/C10 = 0.02 TECU/deg, C11 0.02 TECU/deg^2 - */ + + /** Coefficients of the STEC polynomial in the order of C00, C01, C10, C11. C00 = + * 0.05 TECU, C01/C10 = 0.02 TECU/deg, C11 0.02 TECU/deg^2 */ public int[] stec_coeff; + - public STECSatElement() {} + public STECSatElement () {} @Override public STECSatElement parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/STECSatElementIntegrity.java b/java/src/com/swiftnav/sbp/ssr/STECSatElementIntegrity.java index 0e81b25420..2f6b03bcc2 100644 --- a/java/src/com/swiftnav/sbp/ssr/STECSatElementIntegrity.java +++ b/java/src/com/swiftnav/sbp/ssr/STECSatElementIntegrity.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,36 +9,41 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class STECSatElementIntegrity extends SBPStruct { - + /** STEC residuals (mean, stddev) */ public STECResidual stec_residual; - + /** Error Bound Mean. See Note 1. */ public int stec_bound_mu; - + /** Error Bound StDev. See Note 1. */ public int stec_bound_sig; - + /** Error Bound Mean First derivative. */ public int stec_bound_mu_dot; - + /** Error Bound StDev First derivative. */ public int stec_bound_sig_dot; + - public STECSatElementIntegrity() {} + public STECSatElementIntegrity () {} @Override public STECSatElementIntegrity parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/SatelliteAPC.java b/java/src/com/swiftnav/sbp/ssr/SatelliteAPC.java index fc66bb6add..9d561f7b86 100644 --- a/java/src/com/swiftnav/sbp/ssr/SatelliteAPC.java +++ b/java/src/com/swiftnav/sbp/ssr/SatelliteAPC.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,43 +9,44 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import org.json.JSONArray; + import org.json.JSONObject; +import org.json.JSONArray; public class SatelliteAPC extends SBPStruct { - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; - + /** Additional satellite information */ public int sat_info; - + /** Satellite Code, as defined by IGS. Typically the space vehicle number. */ public int svn; - - /** - * Mean phase center offset, X Y and Z axes. See IGS ANTEX file format description for - * coordinate system definition. - */ + + /** Mean phase center offset, X Y and Z axes. See IGS ANTEX file format description + * for coordinate system definition. */ public int[] pco; - - /** - * Elevation dependent phase center variations. First element is 0 degrees separation from the Z - * axis, subsequent elements represent elevation variations in 1 degree increments. - */ + + /** Elevation dependent phase center variations. First element is 0 degrees + * separation from the Z axis, subsequent elements represent elevation variations + * in 1 degree increments. */ public int[] pcv; + - public SatelliteAPC() {} + public SatelliteAPC () {} @Override public SatelliteAPC parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrection.java b/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrection.java index 0e6bd94305..32a06eee89 100644 --- a/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrection.java +++ b/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrection.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,34 +9,37 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TroposphericDelayCorrection extends SBPStruct { - + /** Hydrostatic vertical delay. Add 2.3 m to get actual value. */ public int hydro; - + /** Wet vertical delay. Add 0.252 m to get actual value. */ public int wet; - - /** - * Standard deviation encoded using a similar method as RTCM DF389. The upper 3 bit are the - * class, the lower 5 bits are the value. Standard deviation [mm] = (3^class * (1 + value/16) - - * 1) - */ + + /** Standard deviation encoded using a similar method as RTCM DF389. The upper 3 + * bit are the class, the lower 5 bits are the value. Standard deviation [mm] = + * (3^class * (1 + value/16) - 1) */ public int stddev; + - public TroposphericDelayCorrection() {} + public TroposphericDelayCorrection () {} @Override public TroposphericDelayCorrection parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrectionNoStd.java b/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrectionNoStd.java index 4bf6dfa50f..c28aac8e56 100644 --- a/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrectionNoStd.java +++ b/java/src/com/swiftnav/sbp/ssr/TroposphericDelayCorrectionNoStd.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,31 +9,35 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.ssr; // This file was auto-generated from yaml/swiftnav/sbp/ssr.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TroposphericDelayCorrectionNoStd extends SBPStruct { - + /** Hydrostatic vertical delay */ public int hydro; - + /** Wet vertical delay */ public int wet; + - public TroposphericDelayCorrectionNoStd() {} + public TroposphericDelayCorrectionNoStd () {} @Override - public TroposphericDelayCorrectionNoStd parse(SBPMessage.Parser parser) - throws SBPBinaryException { + public TroposphericDelayCorrectionNoStd parse(SBPMessage.Parser parser) throws SBPBinaryException { /* Parse fields from binary */ hydro = parser.getS16(); wet = parser.getS8(); diff --git a/java/src/com/swiftnav/sbp/system/MsgCsacTelemetry.java b/java/src/com/swiftnav/sbp/system/MsgCsacTelemetry.java index d2b0b98043..7ad2a37399 100644 --- a/java/src/com/swiftnav/sbp/system/MsgCsacTelemetry.java +++ b/java/src/com/swiftnav/sbp/system/MsgCsacTelemetry.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_CSAC_TELEMETRY (0xFF04). +/** SBP class for message MSG_CSAC_TELEMETRY (0xFF04). * - *

You can have MSG_CSAC_TELEMETRY inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_CSAC_TELEMETRY inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The CSAC telemetry message has an implementation defined telemetry string from a device. It is - * not produced or available on general Swift Products. It is intended to be a low rate message for - * status purposes. - */ + * The CSAC telemetry message has an implementation defined telemetry string + * from a device. It is not produced or available on general Swift Products. + * It is intended to be a low rate message for status purposes. */ + public class MsgCsacTelemetry extends SBPMessage { public static final int TYPE = 0xFF04; - /** Index representing the type of telemetry in use. It is implementation defined. */ + + /** Index representing the type of telemetry in use. It is implementation + * defined. */ public int id; - + /** Comma separated list of values as defined by the index */ public String telemetry; + - public MsgCsacTelemetry(int sender) { - super(sender, TYPE); - } - - public MsgCsacTelemetry() { - super(TYPE); - } - - public MsgCsacTelemetry(SBPMessage msg) throws SBPBinaryException { + public MsgCsacTelemetry (int sender) { super(sender, TYPE); } + public MsgCsacTelemetry () { super(TYPE); } + public MsgCsacTelemetry (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCsacTelemetry, expected 65284, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCsacTelemetry, expected 65284, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ id = parser.getU8(); - telemetry = parser.getString(); + telemetry = parser.getString(); } @Override protected void build(Builder builder) { builder.putU8(id); - builder.putString(telemetry); + builder.putString(telemetry); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgCsacTelemetryLabels.java b/java/src/com/swiftnav/sbp/system/MsgCsacTelemetryLabels.java index 980d243d06..7dce26b222 100644 --- a/java/src/com/swiftnav/sbp/system/MsgCsacTelemetryLabels.java +++ b/java/src/com/swiftnav/sbp/system/MsgCsacTelemetryLabels.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_CSAC_TELEMETRY_LABELS (0xFF05). +/** SBP class for message MSG_CSAC_TELEMETRY_LABELS (0xFF05). * - *

You can have MSG_CSAC_TELEMETRY_LABELS inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_CSAC_TELEMETRY_LABELS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The CSAC telemetry message provides labels for each member of the string produced by - * MSG_CSAC_TELEMETRY. It should be provided by a device at a lower rate than the - * MSG_CSAC_TELEMETRY. - */ + * The CSAC telemetry message provides labels for each member of the string + * produced by MSG_CSAC_TELEMETRY. It should be provided by a device at a + * lower rate than the MSG_CSAC_TELEMETRY. */ + public class MsgCsacTelemetryLabels extends SBPMessage { public static final int TYPE = 0xFF05; - /** Index representing the type of telemetry in use. It is implementation defined. */ + + /** Index representing the type of telemetry in use. It is implementation + * defined. */ public int id; - + /** Comma separated list of telemetry field values */ public String telemetry_labels; + - public MsgCsacTelemetryLabels(int sender) { - super(sender, TYPE); - } - - public MsgCsacTelemetryLabels() { - super(TYPE); - } - - public MsgCsacTelemetryLabels(SBPMessage msg) throws SBPBinaryException { + public MsgCsacTelemetryLabels (int sender) { super(sender, TYPE); } + public MsgCsacTelemetryLabels () { super(TYPE); } + public MsgCsacTelemetryLabels (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgCsacTelemetryLabels, expected 65285, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgCsacTelemetryLabels, expected 65285, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ id = parser.getU8(); - telemetry_labels = parser.getString(); + telemetry_labels = parser.getString(); } @Override protected void build(Builder builder) { builder.putU8(id); - builder.putString(telemetry_labels); + builder.putString(telemetry_labels); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgDgnssStatus.java b/java/src/com/swiftnav/sbp/system/MsgDgnssStatus.java index f3ab307495..24b2170e9f 100644 --- a/java/src/com/swiftnav/sbp/system/MsgDgnssStatus.java +++ b/java/src/com/swiftnav/sbp/system/MsgDgnssStatus.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,53 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_DGNSS_STATUS (0xFF02). + +/** SBP class for message MSG_DGNSS_STATUS (0xFF02). * - *

You can have MSG_DGNSS_STATUS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_DGNSS_STATUS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message provides information about the receipt of Differential corrections. It is - * expected to be sent with each receipt of a complete corrections packet. - */ + * This message provides information about the receipt of Differential + * corrections. It is expected to be sent with each receipt of a complete + * corrections packet. */ + public class MsgDgnssStatus extends SBPMessage { public static final int TYPE = 0xFF02; + /** Status flags */ public int flags; - + /** Latency of observation receipt */ public int latency; - + /** Number of signals from base station */ public int num_signals; - + /** Corrections source string */ public String source; + - public MsgDgnssStatus(int sender) { - super(sender, TYPE); - } - - public MsgDgnssStatus() { - super(TYPE); - } - - public MsgDgnssStatus(SBPMessage msg) throws SBPBinaryException { + public MsgDgnssStatus (int sender) { super(sender, TYPE); } + public MsgDgnssStatus () { super(TYPE); } + public MsgDgnssStatus (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgDgnssStatus, expected 65282, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgDgnssStatus, expected 65282, actual " + msg.type); } @Override @@ -63,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { flags = parser.getU8(); latency = parser.getU16(); num_signals = parser.getU8(); - source = parser.getString(); + source = parser.getString(); } @Override @@ -71,7 +74,7 @@ protected void build(Builder builder) { builder.putU8(flags); builder.putU16(latency); builder.putU8(num_signals); - builder.putString(source); + builder.putString(source); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgGnssTimeOffset.java b/java/src/com/swiftnav/sbp/system/MsgGnssTimeOffset.java index af306f751a..5efb8084cf 100644 --- a/java/src/com/swiftnav/sbp/system/MsgGnssTimeOffset.java +++ b/java/src/com/swiftnav/sbp/system/MsgGnssTimeOffset.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,54 +9,55 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GNSS_TIME_OFFSET (0xFF07). + +/** SBP class for message MSG_GNSS_TIME_OFFSET (0xFF07). * - *

You can have MSG_GNSS_TIME_OFFSET inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_GNSS_TIME_OFFSET inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The GNSS time offset message contains the information that is needed to translate messages - * tagged with a local timestamp (e.g. IMU or wheeltick messages) to GNSS time for the sender - * producing this message. - */ + * The GNSS time offset message contains the information that is needed to + * translate messages tagged with a local timestamp (e.g. IMU or wheeltick + * messages) to GNSS time for the sender producing this message. */ + public class MsgGnssTimeOffset extends SBPMessage { public static final int TYPE = 0xFF07; + /** Weeks portion of the time offset */ public int weeks; - + /** Milliseconds portion of the time offset */ public int milliseconds; - + /** Microseconds portion of the time offset */ public int microseconds; - + /** Status flags */ public int flags; + - public MsgGnssTimeOffset(int sender) { - super(sender, TYPE); - } - - public MsgGnssTimeOffset() { - super(TYPE); - } - - public MsgGnssTimeOffset(SBPMessage msg) throws SBPBinaryException { + public MsgGnssTimeOffset (int sender) { super(sender, TYPE); } + public MsgGnssTimeOffset () { super(TYPE); } + public MsgGnssTimeOffset (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGnssTimeOffset, expected 65287, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGnssTimeOffset, expected 65287, actual " + msg.type); } @Override @@ -64,7 +66,7 @@ protected void parse(Parser parser) throws SBPBinaryException { weeks = parser.getS16(); milliseconds = parser.getS32(); microseconds = parser.getS16(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override @@ -72,7 +74,7 @@ protected void build(Builder builder) { builder.putS16(weeks); builder.putS32(milliseconds); builder.putS16(microseconds); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgGroupMeta.java b/java/src/com/swiftnav/sbp/system/MsgGroupMeta.java index 0c835113b5..c00739c035 100644 --- a/java/src/com/swiftnav/sbp/system/MsgGroupMeta.java +++ b/java/src/com/swiftnav/sbp/system/MsgGroupMeta.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_GROUP_META (0xFF0A). + +/** SBP class for message MSG_GROUP_META (0xFF0A). * - *

You can have MSG_GROUP_META inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_GROUP_META inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This leading message lists the time metadata of the Solution Group. It also lists the atomic - * contents (i.e. types of messages included) of the Solution Group. - */ + * This leading message lists the time metadata of the Solution Group. It also + * lists the atomic contents (i.e. types of messages included) of the Solution + * Group. */ + public class MsgGroupMeta extends SBPMessage { public static final int TYPE = 0xFF0A; + /** Id of the Msgs Group, 0 is Unknown, 1 is Bestpos, 2 is Gnss */ public int group_id; - + /** Status flags (reserved) */ public int flags; - + /** Size of list group_msgs */ public int n_group_msgs; - - /** - * An in-order list of message types included in the Solution Group, including GROUP_META itself - */ + + /** An in-order list of message types included in the Solution Group, + * including GROUP_META itself */ public int[] group_msgs; + - public MsgGroupMeta(int sender) { - super(sender, TYPE); - } - - public MsgGroupMeta() { - super(TYPE); - } - - public MsgGroupMeta(SBPMessage msg) throws SBPBinaryException { + public MsgGroupMeta (int sender) { super(sender, TYPE); } + public MsgGroupMeta () { super(TYPE); } + public MsgGroupMeta (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgGroupMeta, expected 65290, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgGroupMeta, expected 65290, actual " + msg.type); } @Override @@ -66,7 +67,7 @@ protected void parse(Parser parser) throws SBPBinaryException { group_id = parser.getU8(); flags = parser.getU8(); n_group_msgs = parser.getU8(); - group_msgs = parser.getArrayofU16(); + group_msgs = parser.getArrayofU16(); } @Override @@ -74,7 +75,7 @@ protected void build(Builder builder) { builder.putU8(group_id); builder.putU8(flags); builder.putU8(n_group_msgs); - builder.putArrayofU16(group_msgs); + builder.putArrayofU16(group_msgs); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgHeartbeat.java b/java/src/com/swiftnav/sbp/system/MsgHeartbeat.java index fc079f10d5..52869fa074 100644 --- a/java/src/com/swiftnav/sbp/system/MsgHeartbeat.java +++ b/java/src/com/swiftnav/sbp/system/MsgHeartbeat.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_HEARTBEAT (0xFFFF). +/** SBP class for message MSG_HEARTBEAT (0xFFFF). * - *

You can have MSG_HEARTBEAT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_HEARTBEAT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The heartbeat message is sent periodically to inform the host or other attached devices that - * the system is running. It is used to monitor system malfunctions. It also contains status flags - * that indicate to the host the status of the system and whether it is operating correctly. - * Currently, the expected heartbeat interval is 1 sec. + * The heartbeat message is sent periodically to inform the host or other + * attached devices that the system is running. It is used to monitor system + * malfunctions. It also contains status flags that indicate to the host the + * status of the system and whether it is operating correctly. Currently, the + * expected heartbeat interval is 1 sec. * - *

The system error flag is used to indicate that an error has occurred in the system. To - * determine the source of the error, the remaining error flags should be inspected. - */ + * The system error flag is used to indicate that an error has occurred in the + * system. To determine the source of the error, the remaining error flags + * should be inspected. */ + public class MsgHeartbeat extends SBPMessage { public static final int TYPE = 0xFFFF; + /** Status flags */ public long flags; + - public MsgHeartbeat(int sender) { - super(sender, TYPE); - } - - public MsgHeartbeat() { - super(TYPE); - } - - public MsgHeartbeat(SBPMessage msg) throws SBPBinaryException { + public MsgHeartbeat (int sender) { super(sender, TYPE); } + public MsgHeartbeat () { super(TYPE); } + public MsgHeartbeat (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgHeartbeat, expected 65535, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgHeartbeat, expected 65535, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - flags = parser.getU32(); + flags = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgInsStatus.java b/java/src/com/swiftnav/sbp/system/MsgInsStatus.java index 053c9346af..c4246924dd 100644 --- a/java/src/com/swiftnav/sbp/system/MsgInsStatus.java +++ b/java/src/com/swiftnav/sbp/system/MsgInsStatus.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,55 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_INS_STATUS (0xFF03). +/** SBP class for message MSG_INS_STATUS (0xFF03). * - *

You can have MSG_INS_STATUS inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_INS_STATUS inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The INS status message describes the state of the operation and initialization of the inertial - * navigation system. - */ + * The INS status message describes the state of the operation and + * initialization of the inertial navigation system. */ + public class MsgInsStatus extends SBPMessage { public static final int TYPE = 0xFF03; + /** Status flags */ public long flags; + - public MsgInsStatus(int sender) { - super(sender, TYPE); - } - - public MsgInsStatus() { - super(TYPE); - } - - public MsgInsStatus(SBPMessage msg) throws SBPBinaryException { + public MsgInsStatus (int sender) { super(sender, TYPE); } + public MsgInsStatus () { super(TYPE); } + public MsgInsStatus (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgInsStatus, expected 65283, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgInsStatus, expected 65283, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - flags = parser.getU32(); + flags = parser.getU32(); } @Override protected void build(Builder builder) { - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgInsUpdates.java b/java/src/com/swiftnav/sbp/system/MsgInsUpdates.java index 982d7056ce..0f9eb78f3b 100644 --- a/java/src/com/swiftnav/sbp/system/MsgInsUpdates.java +++ b/java/src/com/swiftnav/sbp/system/MsgInsUpdates.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,63 +9,64 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_INS_UPDATES (0xFF06). +/** SBP class for message MSG_INS_UPDATES (0xFF06). * - *

You can have MSG_INS_UPDATES inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_INS_UPDATES inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The INS update status message contains information about executed and rejected INS updates. - * This message is expected to be extended in the future as new types of measurements are being - * added. - */ + * The INS update status message contains information about executed and + * rejected INS updates. This message is expected to be extended in the future + * as new types of measurements are being added. */ + public class MsgInsUpdates extends SBPMessage { public static final int TYPE = 0xFF06; + /** GPS Time of Week */ public long tow; - + /** GNSS position update status flags */ public int gnsspos; - + /** GNSS velocity update status flags */ public int gnssvel; - + /** Wheelticks update status flags */ public int wheelticks; - + /** Wheelticks update status flags */ public int speed; - + /** NHC update status flags */ public int nhc; - + /** Zero velocity update status flags */ public int zerovel; + - public MsgInsUpdates(int sender) { - super(sender, TYPE); - } - - public MsgInsUpdates() { - super(TYPE); - } - - public MsgInsUpdates(SBPMessage msg) throws SBPBinaryException { + public MsgInsUpdates (int sender) { super(sender, TYPE); } + public MsgInsUpdates () { super(TYPE); } + public MsgInsUpdates (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgInsUpdates, expected 65286, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgInsUpdates, expected 65286, actual " + msg.type); } @Override @@ -76,7 +78,7 @@ protected void parse(Parser parser) throws SBPBinaryException { wheelticks = parser.getU8(); speed = parser.getU8(); nhc = parser.getU8(); - zerovel = parser.getU8(); + zerovel = parser.getU8(); } @Override @@ -87,7 +89,7 @@ protected void build(Builder builder) { builder.putU8(wheelticks); builder.putU8(speed); builder.putU8(nhc); - builder.putU8(zerovel); + builder.putU8(zerovel); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgPpsTime.java b/java/src/com/swiftnav/sbp/system/MsgPpsTime.java index 06e88df129..d09fab3814 100644 --- a/java/src/com/swiftnav/sbp/system/MsgPpsTime.java +++ b/java/src/com/swiftnav/sbp/system/MsgPpsTime.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,71 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_PPS_TIME (0xFF08). +/** SBP class for message MSG_PPS_TIME (0xFF08). * - *

You can have MSG_PPS_TIME inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_PPS_TIME inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The PPS time message contains the value of the sender's local time in microseconds at the - * moment a pulse is detected on the PPS input. This is to be used for synchronisation of sensor - * data sampled with a local timestamp (e.g. IMU or wheeltick messages) where GNSS time is unknown - * to the sender. + * The PPS time message contains the value of the sender's local time in + * microseconds at the moment a pulse is detected on the PPS input. This is to + * be used for synchronisation of sensor data sampled with a local timestamp + * (e.g. IMU or wheeltick messages) where GNSS time is unknown to the sender. * - *

The local time used to timestamp the PPS pulse must be generated by the same clock which is - * used to timestamp the IMU/wheel sensor data and should follow the same roll-over rules (i.e. it - * should roll over to zero after 604800 seconds). A separate MSG_PPS_TIME message should be sent - * for each source of sensor data which uses local timestamping. The sender ID for each of these - * MSG_PPS_TIME messages should match the sender ID of the respective sensor data. - */ + * The local time used to timestamp the PPS pulse must be generated by the + * same clock which is used to timestamp the IMU/wheel sensor data and should + * follow the same roll-over rules (i.e. it should roll over to zero after + * 604800 seconds). A separate MSG_PPS_TIME message should be sent for each + * source of sensor data which uses local timestamping. The sender ID for + * each of these MSG_PPS_TIME messages should match the sender ID of the + * respective sensor data. */ + public class MsgPpsTime extends SBPMessage { public static final int TYPE = 0xFF08; + /** Local time in microseconds */ public BigInteger time; - + /** Status flags */ public int flags; + - public MsgPpsTime(int sender) { - super(sender, TYPE); - } - - public MsgPpsTime() { - super(TYPE); - } - - public MsgPpsTime(SBPMessage msg) throws SBPBinaryException { + public MsgPpsTime (int sender) { super(sender, TYPE); } + public MsgPpsTime () { super(TYPE); } + public MsgPpsTime (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgPpsTime, expected 65288, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgPpsTime, expected 65288, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ time = parser.getU64(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override protected void build(Builder builder) { builder.putU64(time); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgSensorAidEvent.java b/java/src/com/swiftnav/sbp/system/MsgSensorAidEvent.java index 1e76528231..e9de41c3b7 100644 --- a/java/src/com/swiftnav/sbp/system/MsgSensorAidEvent.java +++ b/java/src/com/swiftnav/sbp/system/MsgSensorAidEvent.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,66 +9,68 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_SENSOR_AID_EVENT (0xFF09). +/** SBP class for message MSG_SENSOR_AID_EVENT (0xFF09). * - *

You can have MSG_SENSOR_AID_EVENT inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_SENSOR_AID_EVENT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This diagnostic message contains state and update status information for all sensors that are - * being used by the fusion engine. This message will be generated asynchronously to the solution - * messages and will be emitted anytime a sensor update is being processed. - */ + * This diagnostic message contains state and update status information for + * all sensors that are being used by the fusion engine. This message will be + * generated asynchronously to the solution messages and will be emitted + * anytime a sensor update is being processed. */ + public class MsgSensorAidEvent extends SBPMessage { public static final int TYPE = 0xFF09; + /** Update timestamp in milliseconds. */ public long time; - + /** Sensor type */ public int sensor_type; - + /** Sensor identifier */ public int sensor_id; - + /** Reserved for future use */ public int sensor_state; - + /** Number of available measurements in this epoch */ public int n_available_meas; - + /** Number of attempted measurements in this epoch */ public int n_attempted_meas; - + /** Number of accepted measurements in this epoch */ public int n_accepted_meas; - + /** Reserved for future use */ public long flags; + - public MsgSensorAidEvent(int sender) { - super(sender, TYPE); - } - - public MsgSensorAidEvent() { - super(TYPE); - } - - public MsgSensorAidEvent(SBPMessage msg) throws SBPBinaryException { + public MsgSensorAidEvent (int sender) { super(sender, TYPE); } + public MsgSensorAidEvent () { super(TYPE); } + public MsgSensorAidEvent (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgSensorAidEvent, expected 65289, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgSensorAidEvent, expected 65289, actual " + msg.type); } @Override @@ -80,7 +83,7 @@ protected void parse(Parser parser) throws SBPBinaryException { n_available_meas = parser.getU8(); n_attempted_meas = parser.getU8(); n_accepted_meas = parser.getU8(); - flags = parser.getU32(); + flags = parser.getU32(); } @Override @@ -92,7 +95,7 @@ protected void build(Builder builder) { builder.putU8(n_available_meas); builder.putU8(n_attempted_meas); builder.putU8(n_accepted_meas); - builder.putU32(flags); + builder.putU32(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgStartup.java b/java/src/com/swiftnav/sbp/system/MsgStartup.java index a4ff827ab7..0571fb7dd3 100644 --- a/java/src/com/swiftnav/sbp/system/MsgStartup.java +++ b/java/src/com/swiftnav/sbp/system/MsgStartup.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,51 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_STARTUP (0xFF00). + +/** SBP class for message MSG_STARTUP (0xFF00). * - *

You can have MSG_STARTUP inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_STARTUP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The system start-up message is sent once on system start-up. It notifies the host or other - * attached devices that the system has started and is now ready to respond to commands or - * configuration requests. - */ + * The system start-up message is sent once on system start-up. It notifies + * the host or other attached devices that the system has started and is now + * ready to respond to commands or configuration requests. */ + public class MsgStartup extends SBPMessage { public static final int TYPE = 0xFF00; + /** Cause of startup */ public int cause; - + /** Startup type */ public int startup_type; - + /** Reserved */ public int reserved; + - public MsgStartup(int sender) { - super(sender, TYPE); - } - - public MsgStartup() { - super(TYPE); - } - - public MsgStartup(SBPMessage msg) throws SBPBinaryException { + public MsgStartup (int sender) { super(sender, TYPE); } + public MsgStartup () { super(TYPE); } + public MsgStartup (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStartup, expected 65280, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStartup, expected 65280, actual " + msg.type); } @Override @@ -60,14 +62,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ cause = parser.getU8(); startup_type = parser.getU8(); - reserved = parser.getU16(); + reserved = parser.getU16(); } @Override protected void build(Builder builder) { builder.putU8(cause); builder.putU8(startup_type); - builder.putU16(reserved); + builder.putU16(reserved); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgStatusJournal.java b/java/src/com/swiftnav/sbp/system/MsgStatusJournal.java index bd0ce53279..d7c354122b 100644 --- a/java/src/com/swiftnav/sbp/system/MsgStatusJournal.java +++ b/java/src/com/swiftnav/sbp/system/MsgStatusJournal.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_STATUS_JOURNAL (0xFFFD). + +/** SBP class for message MSG_STATUS_JOURNAL (0xFFFD). * - *

You can have MSG_STATUS_JOURNAL inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_STATUS_JOURNAL inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The status journal message contains past status reports (see MSG_STATUS_REPORT) and functions - * as a error/event storage for telemetry purposes. - */ + * The status journal message contains past status reports (see + * MSG_STATUS_REPORT) and functions as a error/event storage for telemetry + * purposes. */ + public class MsgStatusJournal extends SBPMessage { public static final int TYPE = 0xFFFD; + /** Identity of reporting system */ public int reporting_system; - + /** SBP protocol version */ public int sbp_version; - + /** Total number of status reports sent since system startup */ public long total_status_reports; - - /** - * Index and number of messages in this sequence. First nibble is the size of the sequence (n), - * second nibble is the zero-indexed counter (ith packet of n) - */ + + /** Index and number of messages in this sequence. First nibble is the + * size of the sequence (n), second nibble is the zero-indexed counter + * (ith packet of n) */ public int sequence_descriptor; - + /** Status journal */ public StatusJournalItem[] journal; + - public MsgStatusJournal(int sender) { - super(sender, TYPE); - } - - public MsgStatusJournal() { - super(TYPE); - } - - public MsgStatusJournal(SBPMessage msg) throws SBPBinaryException { + public MsgStatusJournal (int sender) { super(sender, TYPE); } + public MsgStatusJournal () { super(TYPE); } + public MsgStatusJournal (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStatusJournal, expected 65533, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStatusJournal, expected 65533, actual " + msg.type); } @Override @@ -71,7 +72,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sbp_version = parser.getU16(); total_status_reports = parser.getU32(); sequence_descriptor = parser.getU8(); - journal = parser.getArray(StatusJournalItem.class); + journal = parser.getArray(StatusJournalItem.class); } @Override @@ -80,7 +81,7 @@ protected void build(Builder builder) { builder.putU16(sbp_version); builder.putU32(total_status_reports); builder.putU8(sequence_descriptor); - builder.putArray(journal); + builder.putArray(journal); } @Override diff --git a/java/src/com/swiftnav/sbp/system/MsgStatusReport.java b/java/src/com/swiftnav/sbp/system/MsgStatusReport.java index f49ee180c3..a16d1e75d1 100644 --- a/java/src/com/swiftnav/sbp/system/MsgStatusReport.java +++ b/java/src/com/swiftnav/sbp/system/MsgStatusReport.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,61 +9,63 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_STATUS_REPORT (0xFFFE). + +/** SBP class for message MSG_STATUS_REPORT (0xFFFE). * - *

You can have MSG_STATUS_REPORT inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_STATUS_REPORT inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The status report is sent periodically to inform the host or other attached devices that the - * system is running. It is used to monitor system malfunctions. It contains status reports that - * indicate to the host the status of each subsystem and whether it is operating correctly. + * The status report is sent periodically to inform the host or other attached + * devices that the system is running. It is used to monitor system + * malfunctions. It contains status reports that indicate to the host the + * status of each subsystem and whether it is operating correctly. * - *

Interpretation of the subsystem specific status code is product dependent, but if the generic - * status code is initializing, it should be ignored. Refer to product documentation for details. - */ + * Interpretation of the subsystem specific status code is product dependent, + * but if the generic status code is initializing, it should be ignored. + * Refer to product documentation for details. */ + public class MsgStatusReport extends SBPMessage { public static final int TYPE = 0xFFFE; + /** Identity of reporting system */ public int reporting_system; - + /** SBP protocol version */ public int sbp_version; - + /** Increments on each status report sent */ public long sequence; - + /** Number of seconds since system start-up */ public long uptime; - + /** Reported status of individual subsystems */ public SubSystemReport[] status; + - public MsgStatusReport(int sender) { - super(sender, TYPE); - } - - public MsgStatusReport() { - super(TYPE); - } - - public MsgStatusReport(SBPMessage msg) throws SBPBinaryException { + public MsgStatusReport (int sender) { super(sender, TYPE); } + public MsgStatusReport () { super(TYPE); } + public MsgStatusReport (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgStatusReport, expected 65534, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgStatusReport, expected 65534, actual " + msg.type); } @Override @@ -72,7 +75,7 @@ protected void parse(Parser parser) throws SBPBinaryException { sbp_version = parser.getU16(); sequence = parser.getU32(); uptime = parser.getU32(); - status = parser.getArray(SubSystemReport.class); + status = parser.getArray(SubSystemReport.class); } @Override @@ -81,7 +84,7 @@ protected void build(Builder builder) { builder.putU16(sbp_version); builder.putU32(sequence); builder.putU32(uptime); - builder.putArray(status); + builder.putArray(status); } @Override diff --git a/java/src/com/swiftnav/sbp/system/StatusJournalItem.java b/java/src/com/swiftnav/sbp/system/StatusJournalItem.java index 0b47557999..a2780b2df5 100644 --- a/java/src/com/swiftnav/sbp/system/StatusJournalItem.java +++ b/java/src/com/swiftnav/sbp/system/StatusJournalItem.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,25 +9,30 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class StatusJournalItem extends SBPStruct { - + /** Milliseconds since system startup */ public long uptime; - + public SubSystemReport report; + - public StatusJournalItem() {} + public StatusJournalItem () {} @Override public StatusJournalItem parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/system/SubSystemReport.java b/java/src/com/swiftnav/sbp/system/SubSystemReport.java index 77b0a8e50b..84de625cdf 100644 --- a/java/src/com/swiftnav/sbp/system/SubSystemReport.java +++ b/java/src/com/swiftnav/sbp/system/SubSystemReport.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,29 +9,34 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.system; // This file was auto-generated from yaml/swiftnav/sbp/system.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; public class SubSystemReport extends SBPStruct { - + /** Identity of reporting subsystem */ public int component; - + /** Generic form status report */ public int generic; - + /** Subsystem specific status code */ public int specific; + - public SubSystemReport() {} + public SubSystemReport () {} @Override public SubSystemReport parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/telemetry/MsgTelSv.java b/java/src/com/swiftnav/sbp/telemetry/MsgTelSv.java index 966bf6925e..3bbae52a77 100644 --- a/java/src/com/swiftnav/sbp/telemetry/MsgTelSv.java +++ b/java/src/com/swiftnav/sbp/telemetry/MsgTelSv.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,60 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.telemetry; // This file was auto-generated from yaml/swiftnav/sbp/telemetry.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_TEL_SV (0x0120). + +/** SBP class for message MSG_TEL_SV (0x0120). * - *

You can have MSG_TEL_SV inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_TEL_SV inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message includes telemetry pertinent to satellite signals available to Starling. - */ + * This message includes telemetry pertinent to satellite signals available to + * Starling. */ + public class MsgTelSv extends SBPMessage { public static final int TYPE = 0x0120; + /** GPS week number */ public int wn; - + /** GPS Time of Week */ public long tow; - - /** - * Total number of observations. First nibble is the size of the sequence (n), second nibble is - * the zero-indexed counter (ith packet of n) - */ + + /** Total number of observations. First nibble is the size of the sequence + * (n), second nibble is the zero-indexed counter (ith packet of n) */ public int n_obs; - - /** Flags to identify the filter type from which the telemetry is reported from */ + + /** Flags to identify the filter type from which the telemetry is reported + * from */ public int origin_flags; - + /** Array of per-signal telemetry entries */ public TelemetrySV[] sv_tel; + - public MsgTelSv(int sender) { - super(sender, TYPE); - } - - public MsgTelSv() { - super(TYPE); - } - - public MsgTelSv(SBPMessage msg) throws SBPBinaryException { + public MsgTelSv (int sender) { super(sender, TYPE); } + public MsgTelSv () { super(TYPE); } + public MsgTelSv (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTelSv, expected 288, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTelSv, expected 288, actual " + msg.type); } @Override @@ -71,7 +72,7 @@ protected void parse(Parser parser) throws SBPBinaryException { tow = parser.getU32(); n_obs = parser.getU8(); origin_flags = parser.getU8(); - sv_tel = parser.getArray(TelemetrySV.class); + sv_tel = parser.getArray(TelemetrySV.class); } @Override @@ -80,7 +81,7 @@ protected void build(Builder builder) { builder.putU32(tow); builder.putU8(n_obs); builder.putU8(origin_flags); - builder.putArray(sv_tel); + builder.putArray(sv_tel); } @Override diff --git a/java/src/com/swiftnav/sbp/telemetry/TelemetrySV.java b/java/src/com/swiftnav/sbp/telemetry/TelemetrySV.java index e381d81f2a..1676f228bd 100644 --- a/java/src/com/swiftnav/sbp/telemetry/TelemetrySV.java +++ b/java/src/com/swiftnav/sbp/telemetry/TelemetrySV.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,48 +9,53 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.telemetry; // This file was auto-generated from yaml/swiftnav/sbp/telemetry.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TelemetrySV extends SBPStruct { - + /** Azimuth angle (range 0..179) */ public int az; - + /** Elevation angle (range -90..90) */ public int el; - + /** Observation availability at filter update */ public int availability_flags; - + /** Pseudorange observation residual */ public int pseudorange_residual; - + /** Carrier-phase or carrier-phase-derived observation residual */ public int phase_residual; - + /** Reports if observation is marked as an outlier and is excluded from the update */ public int outlier_flags; - + /** Ephemeris metadata */ public int ephemeris_flags; - + /** Reserved */ public int correction_flags; - + /** GNSS signal identifier (16 bit) */ public GnssSignal sid; + - public TelemetrySV() {} + public TelemetrySV () {} @Override public TelemetrySV parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/MeasurementState.java b/java/src/com/swiftnav/sbp/tracking/MeasurementState.java index 04be5658bd..329225c889 100644 --- a/java/src/com/swiftnav/sbp/tracking/MeasurementState.java +++ b/java/src/com/swiftnav/sbp/tracking/MeasurementState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,33 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class MeasurementState extends SBPStruct { - - /** Measurement Engine GNSS signal being tracked (carries either Glonass FCN or SLOT) */ + + /** Measurement Engine GNSS signal being tracked (carries either Glonass FCN or + * SLOT) */ public GnssSignal mesid; - - /** Carrier-to-Noise density. Zero implies invalid cn0. */ + + /** Carrier-to-Noise density. Zero implies invalid cn0. */ public int cn0; + - public MeasurementState() {} + public MeasurementState () {} @Override public MeasurementState parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/MsgMeasurementState.java b/java/src/com/swiftnav/sbp/tracking/MsgMeasurementState.java index 0f6ee43038..dbef14c195 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgMeasurementState.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgMeasurementState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_MEASUREMENT_STATE (0x0061). +/** SBP class for message MSG_MEASUREMENT_STATE (0x0061). * - *

You can have MSG_MEASUREMENT_STATE inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_MEASUREMENT_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The tracking message returns a variable-length array of tracking channel states. It reports - * status and carrier-to-noise density measurements for all tracked satellites. - */ + * The tracking message returns a variable-length array of tracking channel + * states. It reports status and carrier-to-noise density measurements for all + * tracked satellites. */ + public class MsgMeasurementState extends SBPMessage { public static final int TYPE = 0x0061; + /** ME signal tracking channel state */ public MeasurementState[] states; + - public MsgMeasurementState(int sender) { - super(sender, TYPE); - } - - public MsgMeasurementState() { - super(TYPE); - } - - public MsgMeasurementState(SBPMessage msg) throws SBPBinaryException { + public MsgMeasurementState (int sender) { super(sender, TYPE); } + public MsgMeasurementState () { super(TYPE); } + public MsgMeasurementState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgMeasurementState, expected 97, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgMeasurementState, expected 97, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - states = parser.getArray(MeasurementState.class); + states = parser.getArray(MeasurementState.class); } @Override protected void build(Builder builder) { - builder.putArray(states); + builder.putArray(states); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIq.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIq.java index 0e67f177cc..ca796701ec 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIq.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIq.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,51 +9,52 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_TRACKING_IQ (0x002D). + +/** SBP class for message MSG_TRACKING_IQ (0x002D). * - *

You can have MSG_TRACKING_IQ inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_TRACKING_IQ inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

When enabled, a tracking channel can output the correlations at each update interval. - */ + * When enabled, a tracking channel can output the correlations at each update + * interval. */ + public class MsgTrackingIq extends SBPMessage { public static final int TYPE = 0x002D; + /** Tracking channel of origin */ public int channel; - + /** GNSS signal identifier */ public GnssSignal sid; - + /** Early, Prompt and Late correlations */ public TrackingChannelCorrelation[] corrs; + - public MsgTrackingIq(int sender) { - super(sender, TYPE); - } - - public MsgTrackingIq() { - super(TYPE); - } - - public MsgTrackingIq(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingIq (int sender) { super(sender, TYPE); } + public MsgTrackingIq () { super(TYPE); } + public MsgTrackingIq (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingIq, expected 45, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingIq, expected 45, actual " + msg.type); } @Override @@ -60,14 +62,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ channel = parser.getU8(); sid = new GnssSignal().parse(parser); - corrs = parser.getArray(TrackingChannelCorrelation.class, 3); + corrs = parser.getArray(TrackingChannelCorrelation.class, 3); } @Override protected void build(Builder builder) { builder.putU8(channel); sid.build(builder); - builder.putArray(corrs, 3); + builder.putArray(corrs, 3); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepA.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepA.java index c46f7e3f54..c588064d3a 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepA.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,51 +9,51 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_TRACKING_IQ_DEP_A (0x001C). + +/** SBP class for message MSG_TRACKING_IQ_DEP_A (0x001C). * - *

You can have MSG_TRACKING_IQ_DEP_A inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_IQ_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgTrackingIqDepA extends SBPMessage { public static final int TYPE = 0x001C; + /** Tracking channel of origin */ public int channel; - + /** GNSS signal identifier */ public GnssSignalDep sid; - + /** Early, Prompt and Late correlations */ public TrackingChannelCorrelationDep[] corrs; + - public MsgTrackingIqDepA(int sender) { - super(sender, TYPE); - } - - public MsgTrackingIqDepA() { - super(TYPE); - } - - public MsgTrackingIqDepA(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingIqDepA (int sender) { super(sender, TYPE); } + public MsgTrackingIqDepA () { super(TYPE); } + public MsgTrackingIqDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingIqDepA, expected 28, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingIqDepA, expected 28, actual " + msg.type); } @Override @@ -60,14 +61,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ channel = parser.getU8(); sid = new GnssSignalDep().parse(parser); - corrs = parser.getArray(TrackingChannelCorrelationDep.class, 3); + corrs = parser.getArray(TrackingChannelCorrelationDep.class, 3); } @Override protected void build(Builder builder) { builder.putU8(channel); sid.build(builder); - builder.putArray(corrs, 3); + builder.putArray(corrs, 3); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepB.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepB.java index c8ba55babe..e1f3e95357 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepB.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingIqDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,51 +9,51 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_TRACKING_IQ_DEP_B (0x002C). + +/** SBP class for message MSG_TRACKING_IQ_DEP_B (0x002C). * - *

You can have MSG_TRACKING_IQ_DEP_B inherent its fields directly from an inherited SBP object, - * or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_IQ_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgTrackingIqDepB extends SBPMessage { public static final int TYPE = 0x002C; + /** Tracking channel of origin */ public int channel; - + /** GNSS signal identifier */ public GnssSignal sid; - + /** Early, Prompt and Late correlations */ public TrackingChannelCorrelationDep[] corrs; + - public MsgTrackingIqDepB(int sender) { - super(sender, TYPE); - } - - public MsgTrackingIqDepB() { - super(TYPE); - } - - public MsgTrackingIqDepB(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingIqDepB (int sender) { super(sender, TYPE); } + public MsgTrackingIqDepB () { super(TYPE); } + public MsgTrackingIqDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingIqDepB, expected 44, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingIqDepB, expected 44, actual " + msg.type); } @Override @@ -60,14 +61,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ channel = parser.getU8(); sid = new GnssSignal().parse(parser); - corrs = parser.getArray(TrackingChannelCorrelationDep.class, 3); + corrs = parser.getArray(TrackingChannelCorrelationDep.class, 3); } @Override protected void build(Builder builder) { builder.putU8(channel); sid.build(builder); - builder.putArray(corrs, 3); + builder.putArray(corrs, 3); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingState.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingState.java index b491addbf7..242b0b42ae 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingState.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,57 +9,58 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_TRACKING_STATE (0x0041). +/** SBP class for message MSG_TRACKING_STATE (0x0041). * - *

You can have MSG_TRACKING_STATE inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_TRACKING_STATE inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The tracking message returns a variable-length array of tracking channel states. It reports - * status and carrier-to-noise density measurements for all tracked satellites. - */ + * The tracking message returns a variable-length array of tracking channel + * states. It reports status and carrier-to-noise density measurements for all + * tracked satellites. */ + public class MsgTrackingState extends SBPMessage { public static final int TYPE = 0x0041; + /** Signal tracking channel state */ public TrackingChannelState[] states; + - public MsgTrackingState(int sender) { - super(sender, TYPE); - } - - public MsgTrackingState() { - super(TYPE); - } - - public MsgTrackingState(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingState (int sender) { super(sender, TYPE); } + public MsgTrackingState () { super(TYPE); } + public MsgTrackingState (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingState, expected 65, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingState, expected 65, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - states = parser.getArray(TrackingChannelState.class); + states = parser.getArray(TrackingChannelState.class); } @Override protected void build(Builder builder) { - builder.putArray(states); + builder.putArray(states); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepA.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepA.java index 6309d79dc1..36e2919ee0 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepA.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_TRACKING_STATE_DEP_A (0x0016). +/** SBP class for message MSG_TRACKING_STATE_DEP_A (0x0016). * - *

You can have MSG_TRACKING_STATE_DEP_A inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_STATE_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgTrackingStateDepA extends SBPMessage { public static final int TYPE = 0x0016; + /** Satellite tracking channel state */ public TrackingChannelStateDepA[] states; + - public MsgTrackingStateDepA(int sender) { - super(sender, TYPE); - } - - public MsgTrackingStateDepA() { - super(TYPE); - } - - public MsgTrackingStateDepA(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingStateDepA (int sender) { super(sender, TYPE); } + public MsgTrackingStateDepA () { super(TYPE); } + public MsgTrackingStateDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingStateDepA, expected 22, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingStateDepA, expected 22, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - states = parser.getArray(TrackingChannelStateDepA.class); + states = parser.getArray(TrackingChannelStateDepA.class); } @Override protected void build(Builder builder) { - builder.putArray(states); + builder.putArray(states); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepB.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepB.java index 67624fb982..72a7ff070b 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepB.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_TRACKING_STATE_DEP_B (0x0013). +/** SBP class for message MSG_TRACKING_STATE_DEP_B (0x0013). * - *

You can have MSG_TRACKING_STATE_DEP_B inherent its fields directly from an inherited SBP - * object, or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_STATE_DEP_B inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgTrackingStateDepB extends SBPMessage { public static final int TYPE = 0x0013; + /** Signal tracking channel state */ public TrackingChannelStateDepB[] states; + - public MsgTrackingStateDepB(int sender) { - super(sender, TYPE); - } - - public MsgTrackingStateDepB() { - super(TYPE); - } - - public MsgTrackingStateDepB(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingStateDepB (int sender) { super(sender, TYPE); } + public MsgTrackingStateDepB () { super(TYPE); } + public MsgTrackingStateDepB (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingStateDepB, expected 19, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingStateDepB, expected 19, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - states = parser.getArray(TrackingChannelStateDepB.class); + states = parser.getArray(TrackingChannelStateDepB.class); } @Override protected void build(Builder builder) { - builder.putArray(states); + builder.putArray(states); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDep.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDep.java index de94216f87..041ad143c4 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDep.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,120 +9,112 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_TRACKING_STATE_DETAILED_DEP (0x0011). +/** SBP class for message MSG_TRACKING_STATE_DETAILED_DEP (0x0011). * - *

You can have MSG_TRACKING_STATE_DETAILED_DEP inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_STATE_DETAILED_DEP inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Deprecated. - */ + * Deprecated. */ + public class MsgTrackingStateDetailedDep extends SBPMessage { public static final int TYPE = 0x0011; + /** Receiver clock time. */ public BigInteger recv_time; - - /** - * Time of transmission of signal from satellite. TOW only valid when TOW status is decoded or - * propagated. WN only valid when week number valid flag is set. - */ + + /** Time of transmission of signal from satellite. TOW only valid when TOW + * status is decoded or propagated. WN only valid when week number valid + * flag is set. */ public GPSTimeDep tot; - - /** Pseudorange observation. Valid only when pseudorange valid flag is set. */ + + /** Pseudorange observation. Valid only when pseudorange valid flag is + * set. */ public long P; - - /** - * Pseudorange observation standard deviation. Valid only when pseudorange valid flag is set. - */ + + /** Pseudorange observation standard deviation. Valid only when + * pseudorange valid flag is set. */ public int P_std; - - /** - * Carrier phase observation with typical sign convention. Valid only when PLL pessimistic lock - * is achieved. - */ + + /** Carrier phase observation with typical sign convention. Valid only + * when PLL pessimistic lock is achieved. */ public CarrierPhase L; - + /** Carrier-to-Noise density */ public int cn0; - - /** - * Lock time. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. - * Valid values range from 0 to 15. - */ + + /** Lock time. It is encoded according to DF402 from the RTCM 10403.2 + * Amendment 2 specification. Valid values range from 0 to 15. */ public int lock; - + /** GNSS signal identifier. */ public GnssSignalDep sid; - + /** Carrier Doppler frequency. */ public int doppler; - + /** Carrier Doppler frequency standard deviation. */ public int doppler_std; - - /** - * Number of seconds of continuous tracking. Specifies how much time signal is in continuous - * track. - */ + + /** Number of seconds of continuous tracking. Specifies how much time + * signal is in continuous track. */ public long uptime; - + /** TCXO clock offset. Valid only when valid clock valid flag is set. */ public int clock_offset; - + /** TCXO clock drift. Valid only when valid clock valid flag is set. */ public int clock_drift; - + /** Early-Prompt (EP) and Prompt-Late (PL) correlators spacing. */ public int corr_spacing; - + /** Acceleration. Valid only when acceleration valid flag is set. */ public int acceleration; - + /** Synchronization status flags. */ public int sync_flags; - + /** TOW status flags. */ public int tow_flags; - + /** Tracking loop status flags. */ public int track_flags; - + /** Navigation data status flags. */ public int nav_flags; - + /** Parameters sets flags. */ public int pset_flags; - + /** Miscellaneous flags. */ public int misc_flags; + - public MsgTrackingStateDetailedDep(int sender) { - super(sender, TYPE); - } - - public MsgTrackingStateDetailedDep() { - super(TYPE); - } - - public MsgTrackingStateDetailedDep(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingStateDetailedDep (int sender) { super(sender, TYPE); } + public MsgTrackingStateDetailedDep () { super(TYPE); } + public MsgTrackingStateDetailedDep (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingStateDetailedDep, expected 17, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingStateDetailedDep, expected 17, actual " + msg.type); } @Override @@ -147,7 +140,7 @@ protected void parse(Parser parser) throws SBPBinaryException { track_flags = parser.getU8(); nav_flags = parser.getU8(); pset_flags = parser.getU8(); - misc_flags = parser.getU8(); + misc_flags = parser.getU8(); } @Override @@ -172,7 +165,7 @@ protected void build(Builder builder) { builder.putU8(track_flags); builder.putU8(nav_flags); builder.putU8(pset_flags); - builder.putU8(misc_flags); + builder.putU8(misc_flags); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDepA.java b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDepA.java index d6b2cf3dcd..67ec2b33d9 100644 --- a/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDepA.java +++ b/java/src/com/swiftnav/sbp/tracking/MsgTrackingStateDetailedDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,121 +9,113 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; -import java.math.BigInteger; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_TRACKING_STATE_DETAILED_DEP_A (0x0021). +/** SBP class for message MSG_TRACKING_STATE_DETAILED_DEP_A (0x0021). * - *

You can have MSG_TRACKING_STATE_DETAILED_DEP_A inherent its fields directly from an inherited - * SBP object, or construct it inline using a dict of its fields. + * You can have MSG_TRACKING_STATE_DETAILED_DEP_A inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

The tracking message returns a set tracking channel parameters for a single tracking channel - * useful for debugging issues. - */ + * The tracking message returns a set tracking channel parameters for a single + * tracking channel useful for debugging issues. */ + public class MsgTrackingStateDetailedDepA extends SBPMessage { public static final int TYPE = 0x0021; + /** Receiver clock time. */ public BigInteger recv_time; - - /** - * Time of transmission of signal from satellite. TOW only valid when TOW status is decoded or - * propagated. WN only valid when week number valid flag is set. - */ + + /** Time of transmission of signal from satellite. TOW only valid when TOW + * status is decoded or propagated. WN only valid when week number valid + * flag is set. */ public GPSTime tot; - - /** Pseudorange observation. Valid only when pseudorange valid flag is set. */ + + /** Pseudorange observation. Valid only when pseudorange valid flag is + * set. */ public long P; - - /** - * Pseudorange observation standard deviation. Valid only when pseudorange valid flag is set. - */ + + /** Pseudorange observation standard deviation. Valid only when + * pseudorange valid flag is set. */ public int P_std; - - /** - * Carrier phase observation with typical sign convention. Valid only when PLL pessimistic lock - * is achieved. - */ + + /** Carrier phase observation with typical sign convention. Valid only + * when PLL pessimistic lock is achieved. */ public CarrierPhase L; - + /** Carrier-to-Noise density */ public int cn0; - - /** - * Lock time. It is encoded according to DF402 from the RTCM 10403.2 Amendment 2 specification. - * Valid values range from 0 to 15. - */ + + /** Lock time. It is encoded according to DF402 from the RTCM 10403.2 + * Amendment 2 specification. Valid values range from 0 to 15. */ public int lock; - + /** GNSS signal identifier. */ public GnssSignal sid; - + /** Carrier Doppler frequency. */ public int doppler; - + /** Carrier Doppler frequency standard deviation. */ public int doppler_std; - - /** - * Number of seconds of continuous tracking. Specifies how much time signal is in continuous - * track. - */ + + /** Number of seconds of continuous tracking. Specifies how much time + * signal is in continuous track. */ public long uptime; - + /** TCXO clock offset. Valid only when valid clock valid flag is set. */ public int clock_offset; - + /** TCXO clock drift. Valid only when valid clock valid flag is set. */ public int clock_drift; - + /** Early-Prompt (EP) and Prompt-Late (PL) correlators spacing. */ public int corr_spacing; - + /** Acceleration. Valid only when acceleration valid flag is set. */ public int acceleration; - + /** Synchronization status flags. */ public int sync_flags; - + /** TOW status flags. */ public int tow_flags; - + /** Tracking loop status flags. */ public int track_flags; - + /** Navigation data status flags. */ public int nav_flags; - + /** Parameters sets flags. */ public int pset_flags; - + /** Miscellaneous flags. */ public int misc_flags; + - public MsgTrackingStateDetailedDepA(int sender) { - super(sender, TYPE); - } - - public MsgTrackingStateDetailedDepA() { - super(TYPE); - } - - public MsgTrackingStateDetailedDepA(SBPMessage msg) throws SBPBinaryException { + public MsgTrackingStateDetailedDepA (int sender) { super(sender, TYPE); } + public MsgTrackingStateDetailedDepA () { super(TYPE); } + public MsgTrackingStateDetailedDepA (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgTrackingStateDetailedDepA, expected 33, actual " - + msg.type); + throw new SBPBinaryException("Type mismatch for MsgTrackingStateDetailedDepA, expected 33, actual " + msg.type); } @Override @@ -148,7 +141,7 @@ protected void parse(Parser parser) throws SBPBinaryException { track_flags = parser.getU8(); nav_flags = parser.getU8(); pset_flags = parser.getU8(); - misc_flags = parser.getU8(); + misc_flags = parser.getU8(); } @Override @@ -173,7 +166,7 @@ protected void build(Builder builder) { builder.putU8(track_flags); builder.putU8(nav_flags); builder.putU8(pset_flags); - builder.putU8(misc_flags); + builder.putU8(misc_flags); } @Override diff --git a/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelation.java b/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelation.java index 25c5ba29d9..2c06aa522a 100644 --- a/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelation.java +++ b/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelation.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TrackingChannelCorrelation extends SBPStruct { - + /** In-phase correlation */ public int I; - + /** Quadrature correlation */ public int Q; + - public TrackingChannelCorrelation() {} + public TrackingChannelCorrelation () {} @Override public TrackingChannelCorrelation parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelationDep.java b/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelationDep.java index 3e5231b894..dffcc647df 100644 --- a/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelationDep.java +++ b/java/src/com/swiftnav/sbp/tracking/TrackingChannelCorrelationDep.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,27 +9,32 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TrackingChannelCorrelationDep extends SBPStruct { - + /** In-phase correlation */ public int I; - + /** Quadrature correlation */ public int Q; + - public TrackingChannelCorrelationDep() {} + public TrackingChannelCorrelationDep () {} @Override public TrackingChannelCorrelationDep parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/TrackingChannelState.java b/java/src/com/swiftnav/sbp/tracking/TrackingChannelState.java index 48c06df941..59a7a8cf8a 100644 --- a/java/src/com/swiftnav/sbp/tracking/TrackingChannelState.java +++ b/java/src/com/swiftnav/sbp/tracking/TrackingChannelState.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,35 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TrackingChannelState extends SBPStruct { - + /** GNSS signal being tracked */ public GnssSignal sid; - + /** Frequency channel number (GLONASS only) */ public int fcn; - - /** Carrier-to-Noise density. Zero implies invalid cn0. */ + + /** Carrier-to-Noise density. Zero implies invalid cn0. */ public int cn0; + - public TrackingChannelState() {} + public TrackingChannelState () {} @Override public TrackingChannelState parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepA.java b/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepA.java index 84e88895cc..9422bb0a81 100644 --- a/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepA.java +++ b/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepA.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,35 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TrackingChannelStateDepA extends SBPStruct { - + /** Status of tracking channel */ public int state; - + /** PRN-1 being tracked */ public int prn; - + /** Carrier-to-noise density */ public float cn0; + - public TrackingChannelStateDepA() {} + public TrackingChannelStateDepA () {} @Override public TrackingChannelStateDepA parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepB.java b/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepB.java index b7ad06ff10..0196a1d888 100644 --- a/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepB.java +++ b/java/src/com/swiftnav/sbp/tracking/TrackingChannelStateDepB.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,30 +9,35 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.tracking; // This file was auto-generated from yaml/swiftnav/sbp/tracking.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPStruct; import com.swiftnav.sbp.gnss.*; + import org.json.JSONObject; +import org.json.JSONArray; public class TrackingChannelStateDepB extends SBPStruct { - + /** Status of tracking channel */ public int state; - + /** GNSS signal being tracked */ public GnssSignalDep sid; - + /** Carrier-to-noise density */ public float cn0; + - public TrackingChannelStateDepB() {} + public TrackingChannelStateDepB () {} @Override public TrackingChannelStateDepB parse(SBPMessage.Parser parser) throws SBPBinaryException { diff --git a/java/src/com/swiftnav/sbp/user/MsgUserData.java b/java/src/com/swiftnav/sbp/user/MsgUserData.java index 9877f44b6f..531d624213 100644 --- a/java/src/com/swiftnav/sbp/user/MsgUserData.java +++ b/java/src/com/swiftnav/sbp/user/MsgUserData.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,56 +9,56 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.user; // This file was auto-generated from yaml/swiftnav/sbp/user.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import org.json.JSONArray; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; + -/** - * SBP class for message MSG_USER_DATA (0x0800). +/** SBP class for message MSG_USER_DATA (0x0800). * - *

You can have MSG_USER_DATA inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_USER_DATA inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

This message can contain any application specific user data up to a maximum length of 255 - * bytes per message. - */ + * This message can contain any application specific user data up to a maximum + * length of 255 bytes per message. */ + public class MsgUserData extends SBPMessage { public static final int TYPE = 0x0800; + /** User data payload */ public int[] contents; + - public MsgUserData(int sender) { - super(sender, TYPE); - } - - public MsgUserData() { - super(TYPE); - } - - public MsgUserData(SBPMessage msg) throws SBPBinaryException { + public MsgUserData (int sender) { super(sender, TYPE); } + public MsgUserData () { super(TYPE); } + public MsgUserData (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgUserData, expected 2048, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgUserData, expected 2048, actual " + msg.type); } @Override protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ - contents = parser.getArrayofU8(); + contents = parser.getArrayofU8(); } @Override protected void build(Builder builder) { - builder.putArrayofU8(contents); + builder.putArrayofU8(contents); } @Override diff --git a/java/src/com/swiftnav/sbp/vehicle/MsgOdometry.java b/java/src/com/swiftnav/sbp/vehicle/MsgOdometry.java index d556ec328a..2f370b3a84 100644 --- a/java/src/com/swiftnav/sbp/vehicle/MsgOdometry.java +++ b/java/src/com/swiftnav/sbp/vehicle/MsgOdometry.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,59 +9,60 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.vehicle; // This file was auto-generated from yaml/swiftnav/sbp/vehicle.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_ODOMETRY (0x0903). + +/** SBP class for message MSG_ODOMETRY (0x0903). * - *

You can have MSG_ODOMETRY inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_ODOMETRY inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Message representing the x component of vehicle velocity in the user frame at the odometry - * reference point(s) specified by the user. The offset for the odometry reference point and the - * definition and origin of the user frame are defined through the device settings interface. There - * are 4 possible user-defined sources of this message which are labeled arbitrarily source 0 - * through 3. If using "processor time" time tags, the receiving end will expect either - * `MSG_GNSS_TIME_OFFSET` or `MSG_PPS_TIME` to sync incoming odometry data to GNSS time. Processor - * time shall roll over to zero after one week. - */ + * Message representing the x component of vehicle velocity in the user frame + * at the odometry reference point(s) specified by the user. The offset for + * the odometry reference point and the definition and origin of the user + * frame are defined through the device settings interface. There are 4 + * possible user-defined sources of this message which are labeled arbitrarily + * source 0 through 3. + * If using "processor time" time tags, the receiving end will expect either + * `MSG_GNSS_TIME_OFFSET` or `MSG_PPS_TIME` to sync incoming odometry data to + * GNSS time. Processor time shall roll over to zero after one week. */ + public class MsgOdometry extends SBPMessage { public static final int TYPE = 0x0903; - /** - * Time field representing either milliseconds in the GPS Week or local CPU time from the - * producing system in milliseconds. See the tow_source flag for the exact source of this - * timestamp. - */ + + /** Time field representing either milliseconds in the GPS Week or local + * CPU time from the producing system in milliseconds. See the + * tow_source flag for the exact source of this timestamp. */ public long tow; - + /** The signed forward component of vehicle velocity. */ public int velocity; - + /** Status flags */ public int flags; + - public MsgOdometry(int sender) { - super(sender, TYPE); - } - - public MsgOdometry() { - super(TYPE); - } - - public MsgOdometry(SBPMessage msg) throws SBPBinaryException { + public MsgOdometry (int sender) { super(sender, TYPE); } + public MsgOdometry () { super(TYPE); } + public MsgOdometry (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgOdometry, expected 2307, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgOdometry, expected 2307, actual " + msg.type); } @Override @@ -68,14 +70,14 @@ protected void parse(Parser parser) throws SBPBinaryException { /* Parse fields from binary */ tow = parser.getU32(); velocity = parser.getS32(); - flags = parser.getU8(); + flags = parser.getU8(); } @Override protected void build(Builder builder) { builder.putU32(tow); builder.putS32(velocity); - builder.putU8(flags); + builder.putU8(flags); } @Override diff --git a/java/src/com/swiftnav/sbp/vehicle/MsgWheeltick.java b/java/src/com/swiftnav/sbp/vehicle/MsgWheeltick.java index 10d60a66c5..96390ddf1d 100644 --- a/java/src/com/swiftnav/sbp/vehicle/MsgWheeltick.java +++ b/java/src/com/swiftnav/sbp/vehicle/MsgWheeltick.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2022 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,69 +9,69 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.vehicle; // This file was auto-generated from yaml/swiftnav/sbp/vehicle.yaml by generate.py. // Do not modify by hand! +import java.math.BigInteger; -import com.swiftnav.sbp.SBPBinaryException; import com.swiftnav.sbp.SBPMessage; -import java.math.BigInteger; +import com.swiftnav.sbp.SBPBinaryException; +import com.swiftnav.sbp.SBPStruct; + import org.json.JSONObject; +import org.json.JSONArray; -/** - * SBP class for message MSG_WHEELTICK (0x0904). + +/** SBP class for message MSG_WHEELTICK (0x0904). * - *

You can have MSG_WHEELTICK inherent its fields directly from an inherited SBP object, or - * construct it inline using a dict of its fields. + * You can have MSG_WHEELTICK inherent its fields directly from + * an inherited SBP object, or construct it inline using a dict of its + * fields. * - *

Message containing the accumulated distance travelled by a wheel located at an odometry - * reference point defined by the user. The offset for the odometry reference point and the - * definition and origin of the user frame are defined through the device settings interface. The - * source of this message is identified by the source field, which is an integer ranging from 0 to - * 255. The timestamp associated with this message should represent the time when the accumulated - * tick count reached the value given by the contents of this message as accurately as possible. If - * using "local CPU time" time tags, the receiving end will also expect either - * `MSG_GNSS_TIME_OFFSET` or `MSG_PPS_TIME` to sync incoming wheeltick data to GNSS time. Local CPU - * time shall roll over to zero after one week. - */ + * Message containing the accumulated distance travelled by a wheel located at + * an odometry reference point defined by the user. The offset for the + * odometry reference point and the definition and origin of the user frame + * are defined through the device settings interface. The source of this + * message is identified by the source field, which is an integer ranging from + * 0 to 255. The timestamp associated with this message should represent the + * time when the accumulated tick count reached the value given by the + * contents of this message as accurately as possible. If using "local CPU + * time" time tags, the receiving end will also expect either + * `MSG_GNSS_TIME_OFFSET` or `MSG_PPS_TIME` to sync incoming wheeltick data to + * GNSS time. + * Local CPU time shall roll over to zero after one week. */ + public class MsgWheeltick extends SBPMessage { public static final int TYPE = 0x0904; - /** - * Time field representing either microseconds since the last PPS, microseconds in the GPS Week - * or local CPU time from the producing system in microseconds. See the synch_type field for the - * exact meaning of this timestamp. - */ + + /** Time field representing either microseconds since the last PPS, + * microseconds in the GPS Week or local CPU time from the producing + * system in microseconds. See the synch_type field for the exact meaning + * of this timestamp. */ public BigInteger time; - + /** Field indicating the type of timestamp contained in the time field. */ public int flags; - + /** ID of the sensor producing this message */ public int source; - - /** - * Free-running counter of the accumulated distance for this sensor. The counter should be - * incrementing if travelling into one direction and decrementing when travelling in the - * opposite direction. - */ + + /** Free-running counter of the accumulated distance for this sensor. The + * counter should be incrementing if travelling into one direction and + * decrementing when travelling in the opposite direction. */ public int ticks; + - public MsgWheeltick(int sender) { - super(sender, TYPE); - } - - public MsgWheeltick() { - super(TYPE); - } - - public MsgWheeltick(SBPMessage msg) throws SBPBinaryException { + public MsgWheeltick (int sender) { super(sender, TYPE); } + public MsgWheeltick () { super(TYPE); } + public MsgWheeltick (SBPMessage msg) throws SBPBinaryException { super(msg); if (msg.type != TYPE) - throw new SBPBinaryException( - "Type mismatch for MsgWheeltick, expected 2308, actual " + msg.type); + throw new SBPBinaryException("Type mismatch for MsgWheeltick, expected 2308, actual " + msg.type); } @Override @@ -79,7 +80,7 @@ protected void parse(Parser parser) throws SBPBinaryException { time = parser.getU64(); flags = parser.getU8(); source = parser.getU8(); - ticks = parser.getS32(); + ticks = parser.getS32(); } @Override @@ -87,7 +88,7 @@ protected void build(Builder builder) { builder.putU64(time); builder.putU8(flags); builder.putU8(source); - builder.putS32(ticks); + builder.putS32(ticks); } @Override diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepATest.java b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepATest.java index a45d02d6dc..d5e66b9a18 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepATest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqResultDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqResultDepATest { @@ -30,24 +34,9 @@ public class auto_check_sbp_acquisition_MsgAcqResultDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 104, - (byte) 65, - (byte) 0, - (byte) 192, - (byte) 53, - (byte) 68, - (byte) 198, - (byte) 199, - (byte) 0, - (byte) 70, - (byte) 8, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)104,(byte)65,(byte)0,(byte)192,(byte)53,(byte)68,(byte)198,(byte)199,(byte)0,(byte)70,(byte)8, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -55,8 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 7.27000000000000000e+02, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -71,24 +59,9 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 205, - (byte) 204, - (byte) 116, - (byte) 65, - (byte) 0, - (byte) 192, - (byte) 179, - (byte) 67, - (byte) 33, - (byte) 81, - (byte) 59, - (byte) 68, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)205,(byte)204,(byte)116,(byte)65,(byte)0,(byte)192,(byte)179,(byte)67,(byte)33,(byte)81,(byte)59,(byte)68,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -96,8 +69,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 3.59500000000000000e+02, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -112,24 +84,9 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 205, - (byte) 204, - (byte) 144, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 66, - (byte) 57, - (byte) 237, - (byte) 202, - (byte) 197, - (byte) 11, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)205,(byte)204,(byte)144,(byte)65,(byte)0,(byte)0,(byte)34,(byte)66,(byte)57,(byte)237,(byte)202,(byte)197,(byte)11, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -137,8 +94,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 4.05000000000000000e+01, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 11 + "'", value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -153,24 +109,9 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 205, - (byte) 204, - (byte) 116, - (byte) 65, - (byte) 0, - (byte) 32, - (byte) 9, - (byte) 68, - (byte) 129, - (byte) 193, - (byte) 121, - (byte) 196, - (byte) 12, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)205,(byte)204,(byte)116,(byte)65,(byte)0,(byte)32,(byte)9,(byte)68,(byte)129,(byte)193,(byte)121,(byte)196,(byte)12, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -178,8 +119,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 5.48500000000000000e+02, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 12 + "'", value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -194,24 +134,9 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 205, - (byte) 204, - (byte) 116, - (byte) 65, - (byte) 0, - (byte) 32, - (byte) 67, - (byte) 68, - (byte) 228, - (byte) 74, - (byte) 148, - (byte) 69, - (byte) 14, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)205,(byte)204,(byte)116,(byte)65,(byte)0,(byte)32,(byte)67,(byte)68,(byte)228,(byte)74,(byte)148,(byte)69,(byte)14, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -219,8 +144,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 7.80500000000000000e+02, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -235,24 +159,9 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 228, - (byte) 56, - (byte) 35, - (byte) 67, - (byte) 0, - (byte) 32, - (byte) 18, - (byte) 68, - (byte) 129, - (byte) 193, - (byte) 249, - (byte) 195, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x15, payload); - MsgAcqResultDepA msg = new MsgAcqResultDepA(sbp); + byte[] payload = new byte[] {(byte)228,(byte)56,(byte)35,(byte)67,(byte)0,(byte)32,(byte)18,(byte)68,(byte)129,(byte)193,(byte)249,(byte)195,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x15, payload ); + MsgAcqResultDepA msg = new MsgAcqResultDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -260,8 +169,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 5.84500000000000000e+02, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepBTest.java b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepBTest.java index caf564412d..d5ffc98103 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepBTest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepB.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqResultDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqResultDepBTest { @@ -30,14 +34,9 @@ public class auto_check_sbp_acquisition_MsgAcqResultDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 137, (byte) 167, (byte) 18, (byte) 66, (byte) 0, (byte) 0, (byte) 161, - (byte) 67, (byte) 240, (byte) 24, (byte) 156, (byte) 69, (byte) 9, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x14, payload); - MsgAcqResultDepB msg = new MsgAcqResultDepB(sbp); + byte[] payload = new byte[] {(byte)137,(byte)167,(byte)18,(byte)66,(byte)0,(byte)0,(byte)161,(byte)67,(byte)240,(byte)24,(byte)156,(byte)69,(byte)9,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x14, payload ); + MsgAcqResultDepB msg = new MsgAcqResultDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -45,8 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 3.22000000000000000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -54,9 +52,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -64,8 +60,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -80,14 +75,9 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepBTest.test2"); - byte[] payload = - new byte[] { - (byte) 206, (byte) 172, (byte) 16, (byte) 66, (byte) 0, (byte) 192, (byte) 82, - (byte) 68, (byte) 198, (byte) 199, (byte) 0, (byte) 198, (byte) 3, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x14, payload); - MsgAcqResultDepB msg = new MsgAcqResultDepB(sbp); + byte[] payload = new byte[] {(byte)206,(byte)172,(byte)16,(byte)66,(byte)0,(byte)192,(byte)82,(byte)68,(byte)198,(byte)199,(byte)0,(byte)198,(byte)3,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x14, payload ); + MsgAcqResultDepB msg = new MsgAcqResultDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -95,8 +85,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 8.43000000000000000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -104,9 +93,7 @@ public void test2() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -114,8 +101,7 @@ public void test2() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -130,14 +116,9 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepBTest.test3"); - byte[] payload = - new byte[] { - (byte) 228, (byte) 27, (byte) 15, (byte) 66, (byte) 0, (byte) 128, (byte) 70, - (byte) 68, (byte) 228, (byte) 74, (byte) 148, (byte) 69, (byte) 18, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x14, payload); - MsgAcqResultDepB msg = new MsgAcqResultDepB(sbp); + byte[] payload = new byte[] {(byte)228,(byte)27,(byte)15,(byte)66,(byte)0,(byte)128,(byte)70,(byte)68,(byte)228,(byte)74,(byte)148,(byte)69,(byte)18,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x14, payload ); + MsgAcqResultDepB msg = new MsgAcqResultDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -145,8 +126,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 7.94000000000000000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -154,9 +134,7 @@ public void test3() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -164,8 +142,7 @@ public void test3() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -180,14 +157,9 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepBTest.test4"); - byte[] payload = - new byte[] { - (byte) 46, (byte) 199, (byte) 14, (byte) 66, (byte) 0, (byte) 64, (byte) 129, - (byte) 67, (byte) 240, (byte) 24, (byte) 28, (byte) 69, (byte) 17, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x14, payload); - MsgAcqResultDepB msg = new MsgAcqResultDepB(sbp); + byte[] payload = new byte[] {(byte)46,(byte)199,(byte)14,(byte)66,(byte)0,(byte)64,(byte)129,(byte)67,(byte)240,(byte)24,(byte)28,(byte)69,(byte)17,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x14, payload ); + MsgAcqResultDepB msg = new MsgAcqResultDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -195,8 +167,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 2.58500000000000000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -204,9 +175,7 @@ public void test4() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -214,8 +183,7 @@ public void test4() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 17 + "'", value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -230,14 +198,9 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepBTest.test5"); - byte[] payload = - new byte[] { - (byte) 194, (byte) 24, (byte) 14, (byte) 66, (byte) 0, (byte) 128, (byte) 2, - (byte) 68, (byte) 129, (byte) 193, (byte) 249, (byte) 195, (byte) 5, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x14, payload); - MsgAcqResultDepB msg = new MsgAcqResultDepB(sbp); + byte[] payload = new byte[] {(byte)194,(byte)24,(byte)14,(byte)66,(byte)0,(byte)128,(byte)2,(byte)68,(byte)129,(byte)193,(byte)249,(byte)195,(byte)5,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x14, payload ); + MsgAcqResultDepB msg = new MsgAcqResultDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -245,8 +208,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 5.22000000000000000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -254,9 +216,7 @@ public void test5() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -264,8 +224,7 @@ public void test5() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepCTest.java b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepCTest.java index 667df5e8b2..6ef3501d40 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqResultDepCTest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqResultDepCTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepC.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResultDepC.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqResultDepC; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqResultDepCTest { @@ -30,14 +34,9 @@ public class auto_check_sbp_acquisition_MsgAcqResultDepCTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepCTest.test1"); - byte[] payload = - new byte[] { - (byte) 72, (byte) 9, (byte) 34, (byte) 66, (byte) 155, (byte) 152, (byte) 228, - (byte) 67, (byte) 28, (byte) 34, (byte) 221, (byte) 68, (byte) 10, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xc28, 0x1f, payload); - MsgAcqResultDepC msg = new MsgAcqResultDepC(sbp); + byte[] payload = new byte[] {(byte)72,(byte)9,(byte)34,(byte)66,(byte)155,(byte)152,(byte)228,(byte)67,(byte)28,(byte)34,(byte)221,(byte)68,(byte)10,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xc28, 0x1f, payload ); + MsgAcqResultDepC msg = new MsgAcqResultDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -46,8 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 4.57192230224609375e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -55,9 +53,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -65,8 +61,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -80,14 +75,9 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepCTest.test2"); - byte[] payload = - new byte[] { - (byte) 132, (byte) 250, (byte) 45, (byte) 66, (byte) 207, (byte) 93, (byte) 88, - (byte) 68, (byte) 68, (byte) 185, (byte) 252, (byte) 195, (byte) 6, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xc28, 0x1f, payload); - MsgAcqResultDepC msg = new MsgAcqResultDepC(sbp); + byte[] payload = new byte[] {(byte)132,(byte)250,(byte)45,(byte)66,(byte)207,(byte)93,(byte)88,(byte)68,(byte)68,(byte)185,(byte)252,(byte)195,(byte)6,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xc28, 0x1f, payload ); + MsgAcqResultDepC msg = new MsgAcqResultDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -96,8 +86,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 8.65465759277343750e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -105,9 +94,7 @@ public void test2() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -115,8 +102,7 @@ public void test2() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -130,14 +116,9 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepCTest.test3"); - byte[] payload = - new byte[] { - (byte) 163, (byte) 223, (byte) 24, (byte) 66, (byte) 64, (byte) 91, (byte) 102, - (byte) 67, (byte) 202, (byte) 243, (byte) 157, (byte) 196, (byte) 13, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xc28, 0x1f, payload); - MsgAcqResultDepC msg = new MsgAcqResultDepC(sbp); + byte[] payload = new byte[] {(byte)163,(byte)223,(byte)24,(byte)66,(byte)64,(byte)91,(byte)102,(byte)67,(byte)202,(byte)243,(byte)157,(byte)196,(byte)13,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xc28, 0x1f, payload ); + MsgAcqResultDepC msg = new MsgAcqResultDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -146,8 +127,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 2.30356445312500000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -155,9 +135,7 @@ public void test3() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -165,8 +143,7 @@ public void test3() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 13 + "'", value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -180,14 +157,9 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepCTest.test4"); - byte[] payload = - new byte[] { - (byte) 129, (byte) 65, (byte) 21, (byte) 66, (byte) 224, (byte) 214, (byte) 124, - (byte) 67, (byte) 243, (byte) 138, (byte) 61, (byte) 69, (byte) 1, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xc28, 0x1f, payload); - MsgAcqResultDepC msg = new MsgAcqResultDepC(sbp); + byte[] payload = new byte[] {(byte)129,(byte)65,(byte)21,(byte)66,(byte)224,(byte)214,(byte)124,(byte)67,(byte)243,(byte)138,(byte)61,(byte)69,(byte)1,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xc28, 0x1f, payload ); + MsgAcqResultDepC msg = new MsgAcqResultDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -196,8 +168,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 2.52839355468750000e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -205,9 +176,7 @@ public void test4() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -215,8 +184,7 @@ public void test4() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -230,14 +198,9 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultDepCTest.test5"); - byte[] payload = - new byte[] { - (byte) 126, (byte) 35, (byte) 62, (byte) 66, (byte) 226, (byte) 37, (byte) 102, - (byte) 68, (byte) 202, (byte) 243, (byte) 29, (byte) 69, (byte) 27, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xc28, 0x1f, payload); - MsgAcqResultDepC msg = new MsgAcqResultDepC(sbp); + byte[] payload = new byte[] {(byte)126,(byte)35,(byte)62,(byte)66,(byte)226,(byte)37,(byte)102,(byte)68,(byte)202,(byte)243,(byte)29,(byte)69,(byte)27,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xc28, 0x1f, payload ); + MsgAcqResultDepC msg = new MsgAcqResultDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -246,8 +209,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 9.20591918945312500e+02, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -255,9 +217,7 @@ public void test5() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -265,8 +225,7 @@ public void test5() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqResultTest.java b/java/test/auto_check_sbp_acquisition_MsgAcqResultTest.java index 5085362151..bf754e4559 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqResultTest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqResultTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResult.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqResult.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqResult; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqResultTest { @@ -27,14 +32,11 @@ public class auto_check_sbp_acquisition_MsgAcqResultTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 104, (byte) 65, (byte) 102, (byte) 102, (byte) 144, - (byte) 66, (byte) 205, (byte) 196, (byte) 0, (byte) 70, (byte) 8, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x2f, payload); - MsgAcqResult msg = new MsgAcqResult(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqResultTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)104,(byte)65,(byte)102,(byte)102,(byte)144,(byte)66,(byte)205,(byte)196,(byte)0,(byte)70,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x2f, payload ); + MsgAcqResult msg = new MsgAcqResult( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -43,8 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cp, 7.21999969482421875e+01, DELTA); value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -52,8 +53,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileDepTest.java b/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileDepTest.java index 1079d6d45b..911e19915d 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileDepTest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqSvProfileDep.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqSvProfileDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqSvProfileDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqSvProfileDepTest { @@ -30,34 +34,15 @@ public class auto_check_sbp_acquisition_MsgAcqSvProfileDepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqSvProfileDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 67, (byte) 103, (byte) 151, (byte) 0, (byte) 12, (byte) 22, (byte) 0, - (byte) 0, (byte) 0, (byte) 187, (byte) 0, (byte) 91, (byte) 0, (byte) 0, - (byte) 0, (byte) 75, (byte) 0, (byte) 0, (byte) 0, (byte) 132, (byte) 0, - (byte) 0, (byte) 0, (byte) 36, (byte) 0, (byte) 0, (byte) 0, (byte) 60, - (byte) 0, (byte) 0, (byte) 0, (byte) 241, (byte) 0, (byte) 0, (byte) 0, - (byte) 238, (byte) 38, (byte) 111, (byte) 0, (byte) 179, (byte) 23, (byte) 0, - (byte) 1, (byte) 0, (byte) 176, (byte) 0, (byte) 166, (byte) 0, (byte) 0, - (byte) 0, (byte) 234, (byte) 0, (byte) 0, (byte) 0, (byte) 155, (byte) 0, - (byte) 0, (byte) 0, (byte) 24, (byte) 0, (byte) 0, (byte) 0, (byte) 212, - (byte) 0, (byte) 0, (byte) 0, (byte) 247, (byte) 0, (byte) 0, (byte) 0, - (byte) 142, (byte) 213, (byte) 68, (byte) 0, (byte) 53, (byte) 24, (byte) 0, - (byte) 0, (byte) 0, (byte) 52, (byte) 0, (byte) 49, (byte) 0, (byte) 0, - (byte) 0, (byte) 245, (byte) 0, (byte) 0, (byte) 0, (byte) 76, (byte) 0, - (byte) 0, (byte) 0, (byte) 248, (byte) 0, (byte) 0, (byte) 0, (byte) 212, - (byte) 0, (byte) 0, (byte) 0, (byte) 101, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x1e, payload); - MsgAcqSvProfileDep msg = new MsgAcqSvProfileDep(sbp); + byte[] payload = new byte[] {(byte)67,(byte)103,(byte)151,(byte)0,(byte)12,(byte)22,(byte)0,(byte)0,(byte)0,(byte)187,(byte)0,(byte)91,(byte)0,(byte)0,(byte)0,(byte)75,(byte)0,(byte)0,(byte)0,(byte)132,(byte)0,(byte)0,(byte)0,(byte)36,(byte)0,(byte)0,(byte)0,(byte)60,(byte)0,(byte)0,(byte)0,(byte)241,(byte)0,(byte)0,(byte)0,(byte)238,(byte)38,(byte)111,(byte)0,(byte)179,(byte)23,(byte)0,(byte)1,(byte)0,(byte)176,(byte)0,(byte)166,(byte)0,(byte)0,(byte)0,(byte)234,(byte)0,(byte)0,(byte)0,(byte)155,(byte)0,(byte)0,(byte)0,(byte)24,(byte)0,(byte)0,(byte)0,(byte)212,(byte)0,(byte)0,(byte)0,(byte)247,(byte)0,(byte)0,(byte)0,(byte)142,(byte)213,(byte)68,(byte)0,(byte)53,(byte)24,(byte)0,(byte)0,(byte)0,(byte)52,(byte)0,(byte)49,(byte)0,(byte)0,(byte)0,(byte)245,(byte)0,(byte)0,(byte)0,(byte)76,(byte)0,(byte)0,(byte)0,(byte)248,(byte)0,(byte)0,(byte)0,(byte)212,(byte)0,(byte)0,(byte)0,(byte)101,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x1e, payload ); + MsgAcqSvProfileDep msg = new MsgAcqSvProfileDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.acq_sv_profile[0].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].bin_width + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].bin_width + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -65,9 +50,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -75,9 +58,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf_max + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf_max + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -85,9 +66,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf_min + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf_min + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -95,9 +74,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cn0 + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cn0 + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -105,9 +82,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cp + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cp + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -115,9 +90,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].int_time + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].int_time + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -125,9 +98,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].job_type + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].job_type + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -135,9 +106,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -145,9 +114,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -155,9 +122,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -165,9 +130,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].status + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].status + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -175,9 +138,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].time_spent + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].time_spent + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -185,9 +146,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].timestamp + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].timestamp + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -195,9 +154,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].bin_width + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].bin_width + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -205,9 +162,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -215,9 +170,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf_max + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf_max + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -225,9 +178,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf_min + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf_min + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -235,9 +186,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cn0 + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cn0 + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -245,9 +194,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cp + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cp + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -255,9 +202,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].int_time + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].int_time + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -265,9 +210,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].job_type + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].job_type + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -275,9 +218,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -285,9 +226,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -295,9 +234,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -305,9 +242,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].status + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].status + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -315,9 +250,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].time_spent + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].time_spent + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -325,9 +258,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].timestamp + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].timestamp + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -335,9 +266,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].bin_width + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].bin_width + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -345,9 +274,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -355,9 +282,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf_max + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf_max + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -365,9 +290,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf_min + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf_min + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -375,9 +298,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cn0 + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cn0 + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -385,9 +306,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cp + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cp + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -395,9 +314,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].int_time + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].int_time + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -405,9 +322,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].job_type + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].job_type + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -415,9 +330,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -425,9 +338,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -435,9 +346,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].sid.sat + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].sid.sat + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -445,9 +354,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].status + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].status + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -455,9 +362,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].time_spent + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].time_spent + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -465,9 +370,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].timestamp + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].timestamp + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; diff --git a/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileTest.java b/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileTest.java index 98814ef394..3657fad8b6 100644 --- a/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileTest.java +++ b/java/test/auto_check_sbp_acquisition_MsgAcqSvProfileTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqSvProfile.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_MsgAcqSvProfile.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.acquisition.MsgAcqSvProfile; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_acquisition_MsgAcqSvProfileTest { @@ -30,34 +34,15 @@ public class auto_check_sbp_acquisition_MsgAcqSvProfileTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_acquisition_MsgAcqSvProfileTest.test1"); - byte[] payload = - new byte[] { - (byte) 7, (byte) 13, (byte) 38, (byte) 0, (byte) 97, (byte) 22, (byte) 0, - (byte) 174, (byte) 0, (byte) 52, (byte) 0, (byte) 0, (byte) 0, (byte) 49, - (byte) 0, (byte) 0, (byte) 0, (byte) 61, (byte) 0, (byte) 0, (byte) 0, - (byte) 147, (byte) 0, (byte) 0, (byte) 0, (byte) 47, (byte) 0, (byte) 0, - (byte) 0, (byte) 140, (byte) 0, (byte) 0, (byte) 0, (byte) 166, (byte) 210, - (byte) 59, (byte) 0, (byte) 253, (byte) 23, (byte) 1, (byte) 121, (byte) 0, - (byte) 190, (byte) 0, (byte) 0, (byte) 0, (byte) 175, (byte) 0, (byte) 0, - (byte) 0, (byte) 175, (byte) 0, (byte) 0, (byte) 0, (byte) 142, (byte) 0, - (byte) 0, (byte) 0, (byte) 237, (byte) 0, (byte) 0, (byte) 0, (byte) 12, - (byte) 0, (byte) 0, (byte) 0, (byte) 126, (byte) 88, (byte) 21, (byte) 0, - (byte) 153, (byte) 24, (byte) 0, (byte) 8, (byte) 0, (byte) 130, (byte) 0, - (byte) 0, (byte) 0, (byte) 172, (byte) 0, (byte) 0, (byte) 0, (byte) 91, - (byte) 0, (byte) 0, (byte) 0, (byte) 191, (byte) 0, (byte) 0, (byte) 0, - (byte) 84, (byte) 0, (byte) 0, (byte) 0, (byte) 82, (byte) 0, (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x2e, payload); - MsgAcqSvProfile msg = new MsgAcqSvProfile(sbp); + byte[] payload = new byte[] {(byte)7,(byte)13,(byte)38,(byte)0,(byte)97,(byte)22,(byte)0,(byte)174,(byte)0,(byte)52,(byte)0,(byte)0,(byte)0,(byte)49,(byte)0,(byte)0,(byte)0,(byte)61,(byte)0,(byte)0,(byte)0,(byte)147,(byte)0,(byte)0,(byte)0,(byte)47,(byte)0,(byte)0,(byte)0,(byte)140,(byte)0,(byte)0,(byte)0,(byte)166,(byte)210,(byte)59,(byte)0,(byte)253,(byte)23,(byte)1,(byte)121,(byte)0,(byte)190,(byte)0,(byte)0,(byte)0,(byte)175,(byte)0,(byte)0,(byte)0,(byte)175,(byte)0,(byte)0,(byte)0,(byte)142,(byte)0,(byte)0,(byte)0,(byte)237,(byte)0,(byte)0,(byte)0,(byte)12,(byte)0,(byte)0,(byte)0,(byte)126,(byte)88,(byte)21,(byte)0,(byte)153,(byte)24,(byte)0,(byte)8,(byte)0,(byte)130,(byte)0,(byte)0,(byte)0,(byte)172,(byte)0,(byte)0,(byte)0,(byte)91,(byte)0,(byte)0,(byte)0,(byte)191,(byte)0,(byte)0,(byte)0,(byte)84,(byte)0,(byte)0,(byte)0,(byte)82,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x2e, payload ); + MsgAcqSvProfile msg = new MsgAcqSvProfile( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.acq_sv_profile[0].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].bin_width + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].bin_width + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -65,9 +50,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -75,9 +58,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf_max + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf_max + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -85,9 +66,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cf_min + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cf_min + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -95,9 +74,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cn0 + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cn0 + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -105,9 +82,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].cp + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].cp + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -115,9 +90,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].int_time + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].int_time + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -125,9 +98,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].job_type + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].job_type + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -135,9 +106,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -145,9 +114,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -155,9 +122,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].status + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].status + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -165,9 +130,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].time_spent + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].time_spent + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -175,9 +138,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[0].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[0].timestamp + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[0].timestamp + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -185,9 +146,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].bin_width + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].bin_width + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -195,9 +154,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -205,9 +162,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf_max + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf_max + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -215,9 +170,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cf_min + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cf_min + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -225,9 +178,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cn0 + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cn0 + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -235,9 +186,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].cp + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].cp + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -245,9 +194,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].int_time + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].int_time + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -255,9 +202,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].job_type + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].job_type + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -265,9 +210,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -275,9 +218,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -285,9 +226,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].status + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].status + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -295,9 +234,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].time_spent + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].time_spent + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -305,9 +242,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[1].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[1].timestamp + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[1].timestamp + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -315,9 +250,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].bin_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].bin_width + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].bin_width + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -325,9 +258,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -335,9 +266,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf_max; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf_max + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf_max + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -345,9 +274,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cf_min; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cf_min + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cf_min + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -355,9 +282,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cn0 + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cn0 + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -365,9 +290,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].cp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].cp + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].cp + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -375,9 +298,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].int_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].int_time + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].int_time + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -385,9 +306,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].job_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].job_type + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].job_type + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -395,9 +314,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -405,9 +322,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].sid.sat + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].sid.sat + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -415,9 +330,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].status + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].status + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -425,9 +338,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].time_spent; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].time_spent + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].time_spent + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -435,9 +346,7 @@ public void test1() throws Throwable { } value = msg.acq_sv_profile[2].timestamp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acq_sv_profile[2].timestamp + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.acq_sv_profile[2].timestamp + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; diff --git a/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.java b/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.java index 74c78834fa..365902f2ee 100644 --- a/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.java +++ b/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderHandshakeReq.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderHandshakeReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeReq; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest { @@ -28,11 +33,10 @@ public class auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xf788, 0xb3, payload); - MsgBootloaderHandshakeReq msg = new MsgBootloaderHandshakeReq(sbp); + System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeReqTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xf788, 0xb3, payload ); + MsgBootloaderHandshakeReq msg = new MsgBootloaderHandshakeReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.java b/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.java index 590babde2d..82374671c2 100644 --- a/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.java +++ b/java/test/auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,19 +9,23 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderHandshakeResp.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderHandshakeResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; -import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeDepA; + import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + +import com.swiftnav.sbp.bootload.MsgBootloaderHandshakeDepA; + public class auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest { @@ -30,35 +35,22 @@ public class auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 118, - (byte) 49, - (byte) 46, - (byte) 50, - (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x0, 0xb4, payload); - MsgBootloaderHandshakeResp msg = new MsgBootloaderHandshakeResp(sbp); + System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)118,(byte)49,(byte)46,(byte)50,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x0, 0xb4, payload ); + MsgBootloaderHandshakeResp msg = new MsgBootloaderHandshakeResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; org.junit.Assert.assertEquals(value, expected); } - org.junit.Assert.assertEquals(msg.version, "v1.2\n"); + org.junit.Assert.assertEquals(msg.version, "v1.2\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @@ -66,22 +58,16 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.test2"); - byte[] payload = - new byte[] { - (byte) 118, (byte) 49, (byte) 46, (byte) 50, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0xb0, payload); - MsgBootloaderHandshakeDepA msg = new MsgBootloaderHandshakeDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgBootloaderHandshakeRespTest.test2"); + byte[] payload = new byte[] {(byte)118,(byte)49,(byte)46,(byte)50, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0xb0, payload ); + MsgBootloaderHandshakeDepA msg = new MsgBootloaderHandshakeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.handshake[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.handshake[0] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.handshake[0] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -89,9 +75,7 @@ public void test2() throws Throwable { } value = msg.handshake[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.handshake[1] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.handshake[1] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -99,9 +83,7 @@ public void test2() throws Throwable { } value = msg.handshake[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.handshake[2] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.handshake[2] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -109,9 +91,7 @@ public void test2() throws Throwable { } value = msg.handshake[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.handshake[3] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.handshake[3] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; diff --git a/java/test/auto_check_sbp_bootload_MsgBootloaderJumptoAppTest.java b/java/test/auto_check_sbp_bootload_MsgBootloaderJumptoAppTest.java index 01a6284611..159cbd06e2 100644 --- a/java/test/auto_check_sbp_bootload_MsgBootloaderJumptoAppTest.java +++ b/java/test/auto_check_sbp_bootload_MsgBootloaderJumptoAppTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderJumptoApp.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/bootload/test_MsgBootloaderJumptoApp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.bootload.MsgBootloaderJumpToApp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_bootload_MsgBootloaderJumptoAppTest { @@ -30,19 +34,15 @@ public class auto_check_sbp_bootload_MsgBootloaderJumptoAppTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgBootloaderJumptoAppTest.test1"); - byte[] payload = - new byte[] { - (byte) 216, - }; - SBPMessage sbp = new SBPMessage(0x12cd, 0xb1, payload); - MsgBootloaderJumpToApp msg = new MsgBootloaderJumpToApp(sbp); + byte[] payload = new byte[] {(byte)216, }; + SBPMessage sbp = new SBPMessage( 0x12cd, 0xb1, payload ); + MsgBootloaderJumpToApp msg = new MsgBootloaderJumpToApp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.jump; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.jump + "' != '" + 216 + "'", value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.jump + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; diff --git a/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaReqTest.java b/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaReqTest.java index 87f28342b2..02030a09de 100644 --- a/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaReqTest.java +++ b/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/bootload/test_MsgNapDeviceDnaReq.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/bootload/test_MsgNapDeviceDnaReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.bootload.MsgNapDeviceDnaReq; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_bootload_MsgNapDeviceDnaReqTest { @@ -29,9 +34,9 @@ public class auto_check_sbp_bootload_MsgNapDeviceDnaReqTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgNapDeviceDnaReqTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x3280, 0xde, payload); - MsgNapDeviceDnaReq msg = new MsgNapDeviceDnaReq(sbp); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x3280, 0xde, payload ); + MsgNapDeviceDnaReq msg = new MsgNapDeviceDnaReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaRespTest.java b/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaRespTest.java index 620fa60e47..c25fa7794a 100644 --- a/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaRespTest.java +++ b/java/test/auto_check_sbp_bootload_MsgNapDeviceDnaRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/bootload/test_MsgNapDeviceDnaResp.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/bootload/test_MsgNapDeviceDnaResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.bootload.MsgNapDeviceDnaResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_bootload_MsgNapDeviceDnaRespTest { @@ -30,26 +34,15 @@ public class auto_check_sbp_bootload_MsgNapDeviceDnaRespTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_bootload_MsgNapDeviceDnaRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 2, - (byte) 187, - (byte) 1, - (byte) 130, - (byte) 173, - (byte) 244, - (byte) 67, - (byte) 122, - }; - SBPMessage sbp = new SBPMessage(0x38a9, 0xdd, payload); - MsgNapDeviceDnaResp msg = new MsgNapDeviceDnaResp(sbp); + byte[] payload = new byte[] {(byte)2,(byte)187,(byte)1,(byte)130,(byte)173,(byte)244,(byte)67,(byte)122, }; + SBPMessage sbp = new SBPMessage( 0x38a9, 0xdd, payload ); + MsgNapDeviceDnaResp msg = new MsgNapDeviceDnaResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.dna[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[0] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.dna[0] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -57,9 +50,7 @@ public void test1() throws Throwable { } value = msg.dna[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[1] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.dna[1] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -67,8 +58,7 @@ public void test1() throws Throwable { } value = msg.dna[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[2] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.dna[2] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -76,9 +66,7 @@ public void test1() throws Throwable { } value = msg.dna[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[3] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.dna[3] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -86,9 +74,7 @@ public void test1() throws Throwable { } value = msg.dna[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[4] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.dna[4] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -96,9 +82,7 @@ public void test1() throws Throwable { } value = msg.dna[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[5] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.dna[5] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -106,8 +90,7 @@ public void test1() throws Throwable { } value = msg.dna[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[6] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.dna[6] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -115,9 +98,7 @@ public void test1() throws Throwable { } value = msg.dna[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dna[7] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.dna[7] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; diff --git a/java/test/auto_check_sbp_ext_events_MsgExtEventTest.java b/java/test/auto_check_sbp_ext_events_MsgExtEventTest.java index 1812544907..955b0ec22e 100644 --- a/java/test/auto_check_sbp_ext_events_MsgExtEventTest.java +++ b/java/test/auto_check_sbp_ext_events_MsgExtEventTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ext_events/test_MsgExtEvent.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ext_events/test_MsgExtEvent.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ext_events.MsgExtEvent; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ext_events_MsgExtEventTest { @@ -27,31 +32,17 @@ public class auto_check_sbp_ext_events_MsgExtEventTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ext_events_MsgExtEventTest.test1"); - byte[] payload = - new byte[] { - (byte) 48, - (byte) 7, - (byte) 199, - (byte) 216, - (byte) 49, - (byte) 15, - (byte) 202, - (byte) 65, - (byte) 15, - (byte) 0, - (byte) 3, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x6f5, 0x101, payload); - MsgExtEvent msg = new MsgExtEvent(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ext_events_MsgExtEventTest.test1"); + byte[] payload = new byte[] {(byte)48,(byte)7,(byte)199,(byte)216,(byte)49,(byte)15,(byte)202,(byte)65,(byte)15,(byte)0,(byte)3,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x6f5, 0x101, payload ); + MsgExtEvent msg = new MsgExtEvent( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -59,9 +50,7 @@ public void test1() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 999882 + "'", - value.equals(BigInteger.valueOf(999882L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 999882 + "'", value.equals(BigInteger.valueOf( 999882L ) ) ); } else { value = value.longValue(); expected = 999882L; @@ -69,8 +58,7 @@ public void test1() throws Throwable { } value = msg.pin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.pin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -78,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 254924999 + "'", - value.equals(BigInteger.valueOf(254924999L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 254924999 + "'", value.equals(BigInteger.valueOf( 254924999L ) ) ); } else { value = value.longValue(); expected = 254924999L; @@ -88,8 +74,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1840 + "'", value.equals(BigInteger.valueOf(1840L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1840 + "'", value.equals(BigInteger.valueOf( 1840L ) ) ); } else { value = value.longValue(); expected = 1840L; diff --git a/java/test/auto_check_sbp_file_io_MsgFileioConfigReqTest.java b/java/test/auto_check_sbp_file_io_MsgFileioConfigReqTest.java index fc79330d3e..66abe81be7 100644 --- a/java/test/auto_check_sbp_file_io_MsgFileioConfigReqTest.java +++ b/java/test/auto_check_sbp_file_io_MsgFileioConfigReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioConfigReq.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioConfigReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.file_io.MsgFileioConfigReq; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_file_io_MsgFileioConfigReqTest { @@ -30,20 +34,15 @@ public class auto_check_sbp_file_io_MsgFileioConfigReqTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_file_io_MsgFileioConfigReqTest.test1"); - byte[] payload = - new byte[] { - (byte) 107, (byte) 218, (byte) 69, (byte) 90, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x1001, payload); - MsgFileioConfigReq msg = new MsgFileioConfigReq(sbp); + byte[] payload = new byte[] {(byte)107,(byte)218,(byte)69,(byte)90, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x1001, payload ); + MsgFileioConfigReq msg = new MsgFileioConfigReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 1514527339 + "'", - value.equals(BigInteger.valueOf(1514527339L))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 1514527339 + "'", value.equals(BigInteger.valueOf( 1514527339L ) ) ); } else { value = value.longValue(); expected = 1514527339L; diff --git a/java/test/auto_check_sbp_file_io_MsgFileioConfigRespTest.java b/java/test/auto_check_sbp_file_io_MsgFileioConfigRespTest.java index 7968df345d..1348db05c7 100644 --- a/java/test/auto_check_sbp_file_io_MsgFileioConfigRespTest.java +++ b/java/test/auto_check_sbp_file_io_MsgFileioConfigRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioConfigResp.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioConfigResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.file_io.MsgFileioConfigResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_file_io_MsgFileioConfigRespTest { @@ -30,22 +34,15 @@ public class auto_check_sbp_file_io_MsgFileioConfigRespTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_file_io_MsgFileioConfigRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 170, (byte) 76, (byte) 52, (byte) 91, (byte) 149, (byte) 186, (byte) 44, - (byte) 3, (byte) 216, (byte) 151, (byte) 255, (byte) 61, (byte) 12, (byte) 97, - (byte) 66, (byte) 144, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x1002, payload); - MsgFileioConfigResp msg = new MsgFileioConfigResp(sbp); + byte[] payload = new byte[] {(byte)170,(byte)76,(byte)52,(byte)91,(byte)149,(byte)186,(byte)44,(byte)3,(byte)216,(byte)151,(byte)255,(byte)61,(byte)12,(byte)97,(byte)66,(byte)144, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x1002, payload ); + MsgFileioConfigResp msg = new MsgFileioConfigResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.batch_size; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.batch_size + "' != '" + 1040160728 + "'", - value.equals(BigInteger.valueOf(1040160728L))); + org.junit.Assert.assertTrue("'" + msg.batch_size + "' != '" + 1040160728 + "'", value.equals(BigInteger.valueOf( 1040160728L ) ) ); } else { value = value.longValue(); expected = 1040160728L; @@ -53,9 +50,7 @@ public void test1() throws Throwable { } value = msg.fileio_version; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fileio_version + "' != '" + 2420269324L + "'", - value.equals(new BigInteger("2420269324"))); + org.junit.Assert.assertTrue("'" + msg.fileio_version + "' != '" + 2420269324L + "'", value.equals( new BigInteger( "2420269324" ) ) ); } else { value = value.longValue(); expected = 2420269324L; @@ -63,9 +58,7 @@ public void test1() throws Throwable { } value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 1530154154 + "'", - value.equals(BigInteger.valueOf(1530154154L))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 1530154154 + "'", value.equals(BigInteger.valueOf( 1530154154L ) ) ); } else { value = value.longValue(); expected = 1530154154L; @@ -73,9 +66,7 @@ public void test1() throws Throwable { } value = msg.window_size; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.window_size + "' != '" + 53262997 + "'", - value.equals(BigInteger.valueOf(53262997L))); + org.junit.Assert.assertTrue("'" + msg.window_size + "' != '" + 53262997 + "'", value.equals(BigInteger.valueOf( 53262997L ) ) ); } else { value = value.longValue(); expected = 53262997L; diff --git a/java/test/auto_check_sbp_file_io_MsgFileioReadDirReqTest.java b/java/test/auto_check_sbp_file_io_MsgFileioReadDirReqTest.java index 4958cbde4c..af61c72649 100644 Binary files a/java/test/auto_check_sbp_file_io_MsgFileioReadDirReqTest.java and b/java/test/auto_check_sbp_file_io_MsgFileioReadDirReqTest.java differ diff --git a/java/test/auto_check_sbp_file_io_MsgFileioReadDirRespTest.java b/java/test/auto_check_sbp_file_io_MsgFileioReadDirRespTest.java index d93b8fd241..a1f7a555f3 100644 Binary files a/java/test/auto_check_sbp_file_io_MsgFileioReadDirRespTest.java and b/java/test/auto_check_sbp_file_io_MsgFileioReadDirRespTest.java differ diff --git a/java/test/auto_check_sbp_file_io_MsgFileioReadReqTest.java b/java/test/auto_check_sbp_file_io_MsgFileioReadReqTest.java index 99666f6939..0c122e681c 100644 Binary files a/java/test/auto_check_sbp_file_io_MsgFileioReadReqTest.java and b/java/test/auto_check_sbp_file_io_MsgFileioReadReqTest.java differ diff --git a/java/test/auto_check_sbp_file_io_MsgFileioReadRespTest.java b/java/test/auto_check_sbp_file_io_MsgFileioReadRespTest.java index d7f52c829f..de0418d7ea 100644 --- a/java/test/auto_check_sbp_file_io_MsgFileioReadRespTest.java +++ b/java/test/auto_check_sbp_file_io_MsgFileioReadRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioReadResp.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioReadResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.file_io.MsgFileioReadResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_file_io_MsgFileioReadRespTest { @@ -30,274 +34,15 @@ public class auto_check_sbp_file_io_MsgFileioReadRespTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_file_io_MsgFileioReadRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 67, - (byte) 183, - (byte) 115, - (byte) 15, - (byte) 73, - (byte) 231, - (byte) 227, - (byte) 179, - (byte) 18, - (byte) 76, - (byte) 68, - (byte) 229, - (byte) 216, - (byte) 21, - (byte) 98, - (byte) 183, - (byte) 69, - (byte) 190, - (byte) 5, - (byte) 252, - (byte) 176, - (byte) 55, - (byte) 32, - (byte) 78, - (byte) 8, - (byte) 52, - (byte) 127, - (byte) 50, - (byte) 71, - (byte) 106, - (byte) 61, - (byte) 79, - (byte) 191, - (byte) 106, - (byte) 46, - (byte) 79, - (byte) 118, - (byte) 248, - (byte) 118, - (byte) 207, - (byte) 206, - (byte) 210, - (byte) 91, - (byte) 73, - (byte) 251, - (byte) 81, - (byte) 131, - (byte) 205, - (byte) 193, - (byte) 146, - (byte) 206, - (byte) 185, - (byte) 140, - (byte) 249, - (byte) 163, - (byte) 231, - (byte) 65, - (byte) 67, - (byte) 94, - (byte) 250, - (byte) 109, - (byte) 152, - (byte) 95, - (byte) 123, - (byte) 77, - (byte) 224, - (byte) 124, - (byte) 238, - (byte) 205, - (byte) 65, - (byte) 103, - (byte) 35, - (byte) 104, - (byte) 209, - (byte) 5, - (byte) 191, - (byte) 47, - (byte) 249, - (byte) 176, - (byte) 166, - (byte) 213, - (byte) 46, - (byte) 192, - (byte) 86, - (byte) 32, - (byte) 103, - (byte) 146, - (byte) 252, - (byte) 4, - (byte) 16, - (byte) 54, - (byte) 161, - (byte) 60, - (byte) 6, - (byte) 13, - (byte) 191, - (byte) 116, - (byte) 182, - (byte) 42, - (byte) 191, - (byte) 213, - (byte) 20, - (byte) 217, - (byte) 8, - (byte) 142, - (byte) 187, - (byte) 238, - (byte) 120, - (byte) 184, - (byte) 250, - (byte) 31, - (byte) 151, - (byte) 37, - (byte) 51, - (byte) 177, - (byte) 130, - (byte) 190, - (byte) 155, - (byte) 71, - (byte) 68, - (byte) 56, - (byte) 238, - (byte) 92, - (byte) 130, - (byte) 37, - (byte) 137, - (byte) 146, - (byte) 246, - (byte) 114, - (byte) 116, - (byte) 138, - (byte) 165, - (byte) 217, - (byte) 79, - (byte) 10, - (byte) 189, - (byte) 128, - (byte) 189, - (byte) 2, - (byte) 240, - (byte) 92, - (byte) 28, - (byte) 126, - (byte) 105, - (byte) 236, - (byte) 228, - (byte) 194, - (byte) 0, - (byte) 51, - (byte) 61, - (byte) 74, - (byte) 41, - (byte) 10, - (byte) 239, - (byte) 133, - (byte) 106, - (byte) 190, - (byte) 30, - (byte) 27, - (byte) 3, - (byte) 240, - (byte) 205, - (byte) 253, - (byte) 113, - (byte) 25, - (byte) 28, - (byte) 187, - (byte) 81, - (byte) 101, - (byte) 216, - (byte) 121, - (byte) 41, - (byte) 179, - (byte) 120, - (byte) 152, - (byte) 18, - (byte) 116, - (byte) 53, - (byte) 212, - (byte) 100, - (byte) 2, - (byte) 114, - (byte) 198, - (byte) 200, - (byte) 10, - (byte) 147, - (byte) 25, - (byte) 33, - (byte) 115, - (byte) 208, - (byte) 113, - (byte) 60, - (byte) 179, - (byte) 183, - (byte) 0, - (byte) 41, - (byte) 217, - (byte) 206, - (byte) 255, - (byte) 211, - (byte) 225, - (byte) 142, - (byte) 191, - (byte) 133, - (byte) 81, - (byte) 15, - (byte) 248, - (byte) 193, - (byte) 66, - (byte) 191, - (byte) 244, - (byte) 221, - (byte) 248, - (byte) 199, - (byte) 241, - (byte) 112, - (byte) 51, - (byte) 1, - (byte) 180, - (byte) 180, - (byte) 125, - (byte) 97, - (byte) 145, - (byte) 25, - (byte) 72, - (byte) 210, - (byte) 215, - (byte) 208, - (byte) 15, - (byte) 126, - (byte) 56, - (byte) 38, - (byte) 65, - (byte) 4, - (byte) 64, - (byte) 19, - (byte) 74, - (byte) 223, - (byte) 111, - (byte) 109, - (byte) 52, - (byte) 43, - (byte) 167, - (byte) 186, - (byte) 202, - (byte) 111, - (byte) 11, - (byte) 91, - (byte) 21, - (byte) 236, - (byte) 234, - (byte) 196, - (byte) 36, - (byte) 171, - (byte) 147, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xa3, payload); - MsgFileioReadResp msg = new MsgFileioReadResp(sbp); + byte[] payload = new byte[] {(byte)67,(byte)183,(byte)115,(byte)15,(byte)73,(byte)231,(byte)227,(byte)179,(byte)18,(byte)76,(byte)68,(byte)229,(byte)216,(byte)21,(byte)98,(byte)183,(byte)69,(byte)190,(byte)5,(byte)252,(byte)176,(byte)55,(byte)32,(byte)78,(byte)8,(byte)52,(byte)127,(byte)50,(byte)71,(byte)106,(byte)61,(byte)79,(byte)191,(byte)106,(byte)46,(byte)79,(byte)118,(byte)248,(byte)118,(byte)207,(byte)206,(byte)210,(byte)91,(byte)73,(byte)251,(byte)81,(byte)131,(byte)205,(byte)193,(byte)146,(byte)206,(byte)185,(byte)140,(byte)249,(byte)163,(byte)231,(byte)65,(byte)67,(byte)94,(byte)250,(byte)109,(byte)152,(byte)95,(byte)123,(byte)77,(byte)224,(byte)124,(byte)238,(byte)205,(byte)65,(byte)103,(byte)35,(byte)104,(byte)209,(byte)5,(byte)191,(byte)47,(byte)249,(byte)176,(byte)166,(byte)213,(byte)46,(byte)192,(byte)86,(byte)32,(byte)103,(byte)146,(byte)252,(byte)4,(byte)16,(byte)54,(byte)161,(byte)60,(byte)6,(byte)13,(byte)191,(byte)116,(byte)182,(byte)42,(byte)191,(byte)213,(byte)20,(byte)217,(byte)8,(byte)142,(byte)187,(byte)238,(byte)120,(byte)184,(byte)250,(byte)31,(byte)151,(byte)37,(byte)51,(byte)177,(byte)130,(byte)190,(byte)155,(byte)71,(byte)68,(byte)56,(byte)238,(byte)92,(byte)130,(byte)37,(byte)137,(byte)146,(byte)246,(byte)114,(byte)116,(byte)138,(byte)165,(byte)217,(byte)79,(byte)10,(byte)189,(byte)128,(byte)189,(byte)2,(byte)240,(byte)92,(byte)28,(byte)126,(byte)105,(byte)236,(byte)228,(byte)194,(byte)0,(byte)51,(byte)61,(byte)74,(byte)41,(byte)10,(byte)239,(byte)133,(byte)106,(byte)190,(byte)30,(byte)27,(byte)3,(byte)240,(byte)205,(byte)253,(byte)113,(byte)25,(byte)28,(byte)187,(byte)81,(byte)101,(byte)216,(byte)121,(byte)41,(byte)179,(byte)120,(byte)152,(byte)18,(byte)116,(byte)53,(byte)212,(byte)100,(byte)2,(byte)114,(byte)198,(byte)200,(byte)10,(byte)147,(byte)25,(byte)33,(byte)115,(byte)208,(byte)113,(byte)60,(byte)179,(byte)183,(byte)0,(byte)41,(byte)217,(byte)206,(byte)255,(byte)211,(byte)225,(byte)142,(byte)191,(byte)133,(byte)81,(byte)15,(byte)248,(byte)193,(byte)66,(byte)191,(byte)244,(byte)221,(byte)248,(byte)199,(byte)241,(byte)112,(byte)51,(byte)1,(byte)180,(byte)180,(byte)125,(byte)97,(byte)145,(byte)25,(byte)72,(byte)210,(byte)215,(byte)208,(byte)15,(byte)126,(byte)56,(byte)38,(byte)65,(byte)4,(byte)64,(byte)19,(byte)74,(byte)223,(byte)111,(byte)109,(byte)52,(byte)43,(byte)167,(byte)186,(byte)202,(byte)111,(byte)11,(byte)91,(byte)21,(byte)236,(byte)234,(byte)196,(byte)36,(byte)171,(byte)147, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xa3, payload ); + MsgFileioReadResp msg = new MsgFileioReadResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.contents[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[0] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[0] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -305,9 +50,7 @@ public void test1() throws Throwable { } value = msg.contents[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[1] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.contents[1] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -315,9 +58,7 @@ public void test1() throws Throwable { } value = msg.contents[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[2] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.contents[2] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -325,9 +66,7 @@ public void test1() throws Throwable { } value = msg.contents[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[3] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.contents[3] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -335,9 +74,7 @@ public void test1() throws Throwable { } value = msg.contents[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[4] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.contents[4] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -345,9 +82,7 @@ public void test1() throws Throwable { } value = msg.contents[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[5] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.contents[5] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -355,9 +90,7 @@ public void test1() throws Throwable { } value = msg.contents[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[6] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.contents[6] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -365,9 +98,7 @@ public void test1() throws Throwable { } value = msg.contents[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[7] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.contents[7] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -375,9 +106,7 @@ public void test1() throws Throwable { } value = msg.contents[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[8] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.contents[8] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -385,9 +114,7 @@ public void test1() throws Throwable { } value = msg.contents[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[9] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.contents[9] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -395,9 +122,7 @@ public void test1() throws Throwable { } value = msg.contents[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[10] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.contents[10] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -405,9 +130,7 @@ public void test1() throws Throwable { } value = msg.contents[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[11] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.contents[11] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -415,9 +138,7 @@ public void test1() throws Throwable { } value = msg.contents[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[12] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.contents[12] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -425,9 +146,7 @@ public void test1() throws Throwable { } value = msg.contents[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[13] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.contents[13] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -435,9 +154,7 @@ public void test1() throws Throwable { } value = msg.contents[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[14] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.contents[14] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -445,9 +162,7 @@ public void test1() throws Throwable { } value = msg.contents[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[15] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.contents[15] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -455,9 +170,7 @@ public void test1() throws Throwable { } value = msg.contents[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[16] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.contents[16] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -465,9 +178,7 @@ public void test1() throws Throwable { } value = msg.contents[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[17] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.contents[17] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -475,9 +186,7 @@ public void test1() throws Throwable { } value = msg.contents[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[18] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.contents[18] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -485,9 +194,7 @@ public void test1() throws Throwable { } value = msg.contents[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[19] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.contents[19] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -495,9 +202,7 @@ public void test1() throws Throwable { } value = msg.contents[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[20] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.contents[20] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -505,9 +210,7 @@ public void test1() throws Throwable { } value = msg.contents[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[21] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.contents[21] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -515,9 +218,7 @@ public void test1() throws Throwable { } value = msg.contents[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[22] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.contents[22] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -525,9 +226,7 @@ public void test1() throws Throwable { } value = msg.contents[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[23] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.contents[23] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -535,9 +234,7 @@ public void test1() throws Throwable { } value = msg.contents[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[24] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.contents[24] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -545,9 +242,7 @@ public void test1() throws Throwable { } value = msg.contents[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[25] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.contents[25] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -555,9 +250,7 @@ public void test1() throws Throwable { } value = msg.contents[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[26] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.contents[26] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -565,9 +258,7 @@ public void test1() throws Throwable { } value = msg.contents[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[27] + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.contents[27] + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -575,9 +266,7 @@ public void test1() throws Throwable { } value = msg.contents[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[28] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[28] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -585,9 +274,7 @@ public void test1() throws Throwable { } value = msg.contents[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[29] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.contents[29] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -595,9 +282,7 @@ public void test1() throws Throwable { } value = msg.contents[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[30] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.contents[30] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -605,9 +290,7 @@ public void test1() throws Throwable { } value = msg.contents[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[31] + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.contents[31] + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -615,9 +298,7 @@ public void test1() throws Throwable { } value = msg.contents[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[32] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.contents[32] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -625,9 +306,7 @@ public void test1() throws Throwable { } value = msg.contents[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[33] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.contents[33] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -635,9 +314,7 @@ public void test1() throws Throwable { } value = msg.contents[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[34] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.contents[34] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -645,9 +322,7 @@ public void test1() throws Throwable { } value = msg.contents[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[35] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.contents[35] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -655,9 +330,7 @@ public void test1() throws Throwable { } value = msg.contents[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[36] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.contents[36] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -665,9 +338,7 @@ public void test1() throws Throwable { } value = msg.contents[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[37] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.contents[37] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -675,9 +346,7 @@ public void test1() throws Throwable { } value = msg.contents[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[38] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.contents[38] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -685,9 +354,7 @@ public void test1() throws Throwable { } value = msg.contents[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[39] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[39] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -695,9 +362,7 @@ public void test1() throws Throwable { } value = msg.contents[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[40] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.contents[40] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -705,9 +370,7 @@ public void test1() throws Throwable { } value = msg.contents[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[41] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.contents[41] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -715,9 +378,7 @@ public void test1() throws Throwable { } value = msg.contents[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[42] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.contents[42] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -725,9 +386,7 @@ public void test1() throws Throwable { } value = msg.contents[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[43] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.contents[43] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -735,9 +394,7 @@ public void test1() throws Throwable { } value = msg.contents[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[44] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.contents[44] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -745,9 +402,7 @@ public void test1() throws Throwable { } value = msg.contents[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[45] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.contents[45] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -755,9 +410,7 @@ public void test1() throws Throwable { } value = msg.contents[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[46] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.contents[46] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -765,9 +418,7 @@ public void test1() throws Throwable { } value = msg.contents[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[47] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.contents[47] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -775,9 +426,7 @@ public void test1() throws Throwable { } value = msg.contents[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[48] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.contents[48] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -785,9 +434,7 @@ public void test1() throws Throwable { } value = msg.contents[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[49] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.contents[49] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -795,9 +442,7 @@ public void test1() throws Throwable { } value = msg.contents[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[50] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.contents[50] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -805,9 +450,7 @@ public void test1() throws Throwable { } value = msg.contents[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[51] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.contents[51] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -815,9 +458,7 @@ public void test1() throws Throwable { } value = msg.contents[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[52] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.contents[52] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -825,9 +466,7 @@ public void test1() throws Throwable { } value = msg.contents[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[53] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.contents[53] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -835,9 +474,7 @@ public void test1() throws Throwable { } value = msg.contents[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[54] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.contents[54] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -845,9 +482,7 @@ public void test1() throws Throwable { } value = msg.contents[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[55] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.contents[55] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -855,9 +490,7 @@ public void test1() throws Throwable { } value = msg.contents[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[56] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.contents[56] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -865,9 +498,7 @@ public void test1() throws Throwable { } value = msg.contents[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[57] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.contents[57] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -875,9 +506,7 @@ public void test1() throws Throwable { } value = msg.contents[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[58] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.contents[58] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -885,9 +514,7 @@ public void test1() throws Throwable { } value = msg.contents[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[59] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.contents[59] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -895,9 +522,7 @@ public void test1() throws Throwable { } value = msg.contents[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[60] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.contents[60] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -905,9 +530,7 @@ public void test1() throws Throwable { } value = msg.contents[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[61] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.contents[61] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -915,9 +538,7 @@ public void test1() throws Throwable { } value = msg.contents[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[62] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.contents[62] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -925,9 +546,7 @@ public void test1() throws Throwable { } value = msg.contents[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[63] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.contents[63] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -935,9 +554,7 @@ public void test1() throws Throwable { } value = msg.contents[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[64] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.contents[64] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -945,9 +562,7 @@ public void test1() throws Throwable { } value = msg.contents[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[65] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.contents[65] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -955,9 +570,7 @@ public void test1() throws Throwable { } value = msg.contents[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[66] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.contents[66] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -965,9 +578,7 @@ public void test1() throws Throwable { } value = msg.contents[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[67] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.contents[67] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -975,9 +586,7 @@ public void test1() throws Throwable { } value = msg.contents[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[68] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.contents[68] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -985,9 +594,7 @@ public void test1() throws Throwable { } value = msg.contents[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[69] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.contents[69] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -995,9 +602,7 @@ public void test1() throws Throwable { } value = msg.contents[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[70] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.contents[70] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1005,9 +610,7 @@ public void test1() throws Throwable { } value = msg.contents[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[71] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[71] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1015,9 +618,7 @@ public void test1() throws Throwable { } value = msg.contents[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[72] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.contents[72] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -1025,9 +626,7 @@ public void test1() throws Throwable { } value = msg.contents[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[73] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.contents[73] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1035,9 +634,7 @@ public void test1() throws Throwable { } value = msg.contents[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[74] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.contents[74] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1045,9 +642,7 @@ public void test1() throws Throwable { } value = msg.contents[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[75] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.contents[75] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1055,9 +650,7 @@ public void test1() throws Throwable { } value = msg.contents[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[76] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.contents[76] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1065,9 +658,7 @@ public void test1() throws Throwable { } value = msg.contents[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[77] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.contents[77] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1075,9 +666,7 @@ public void test1() throws Throwable { } value = msg.contents[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[78] + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.contents[78] + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1085,9 +674,7 @@ public void test1() throws Throwable { } value = msg.contents[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[79] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.contents[79] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1095,9 +682,7 @@ public void test1() throws Throwable { } value = msg.contents[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[80] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.contents[80] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1105,9 +690,7 @@ public void test1() throws Throwable { } value = msg.contents[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[81] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.contents[81] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1115,9 +698,7 @@ public void test1() throws Throwable { } value = msg.contents[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[82] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.contents[82] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1125,9 +706,7 @@ public void test1() throws Throwable { } value = msg.contents[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[83] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.contents[83] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1135,9 +714,7 @@ public void test1() throws Throwable { } value = msg.contents[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[84] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.contents[84] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1145,9 +722,7 @@ public void test1() throws Throwable { } value = msg.contents[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[85] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.contents[85] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1155,9 +730,7 @@ public void test1() throws Throwable { } value = msg.contents[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[86] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.contents[86] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1165,9 +738,7 @@ public void test1() throws Throwable { } value = msg.contents[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[87] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.contents[87] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -1175,9 +746,7 @@ public void test1() throws Throwable { } value = msg.contents[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[88] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.contents[88] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1185,9 +754,7 @@ public void test1() throws Throwable { } value = msg.contents[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[89] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.contents[89] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1195,9 +762,7 @@ public void test1() throws Throwable { } value = msg.contents[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[90] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.contents[90] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1205,9 +770,7 @@ public void test1() throws Throwable { } value = msg.contents[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[91] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[91] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1215,9 +778,7 @@ public void test1() throws Throwable { } value = msg.contents[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[92] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[92] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1225,9 +786,7 @@ public void test1() throws Throwable { } value = msg.contents[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[93] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.contents[93] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1235,9 +794,7 @@ public void test1() throws Throwable { } value = msg.contents[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[94] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.contents[94] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1245,9 +802,7 @@ public void test1() throws Throwable { } value = msg.contents[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[95] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[95] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1255,9 +810,7 @@ public void test1() throws Throwable { } value = msg.contents[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[96] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.contents[96] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1265,9 +818,7 @@ public void test1() throws Throwable { } value = msg.contents[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[97] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.contents[97] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1275,9 +826,7 @@ public void test1() throws Throwable { } value = msg.contents[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[98] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.contents[98] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1285,9 +834,7 @@ public void test1() throws Throwable { } value = msg.contents[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[99] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.contents[99] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1295,9 +842,7 @@ public void test1() throws Throwable { } value = msg.contents[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[100] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.contents[100] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1305,9 +850,7 @@ public void test1() throws Throwable { } value = msg.contents[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[101] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.contents[101] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1315,9 +858,7 @@ public void test1() throws Throwable { } value = msg.contents[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[102] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.contents[102] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1325,9 +866,7 @@ public void test1() throws Throwable { } value = msg.contents[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[103] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.contents[103] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1335,9 +874,7 @@ public void test1() throws Throwable { } value = msg.contents[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[104] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.contents[104] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1345,9 +882,7 @@ public void test1() throws Throwable { } value = msg.contents[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[105] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.contents[105] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -1355,9 +890,7 @@ public void test1() throws Throwable { } value = msg.contents[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[106] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.contents[106] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1365,9 +898,7 @@ public void test1() throws Throwable { } value = msg.contents[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[107] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.contents[107] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1375,9 +906,7 @@ public void test1() throws Throwable { } value = msg.contents[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[108] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.contents[108] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1385,9 +914,7 @@ public void test1() throws Throwable { } value = msg.contents[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[109] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.contents[109] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1395,9 +922,7 @@ public void test1() throws Throwable { } value = msg.contents[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[110] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.contents[110] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1405,9 +930,7 @@ public void test1() throws Throwable { } value = msg.contents[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[111] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.contents[111] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1415,9 +938,7 @@ public void test1() throws Throwable { } value = msg.contents[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[112] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.contents[112] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1425,9 +946,7 @@ public void test1() throws Throwable { } value = msg.contents[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[113] + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.contents[113] + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1435,9 +954,7 @@ public void test1() throws Throwable { } value = msg.contents[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[114] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.contents[114] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1445,9 +962,7 @@ public void test1() throws Throwable { } value = msg.contents[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[115] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.contents[115] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1455,9 +970,7 @@ public void test1() throws Throwable { } value = msg.contents[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[116] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.contents[116] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1465,9 +978,7 @@ public void test1() throws Throwable { } value = msg.contents[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[117] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.contents[117] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1475,9 +986,7 @@ public void test1() throws Throwable { } value = msg.contents[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[118] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.contents[118] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1485,9 +994,7 @@ public void test1() throws Throwable { } value = msg.contents[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[119] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.contents[119] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1495,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.contents[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[120] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.contents[120] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1505,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.contents[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[121] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.contents[121] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -1515,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.contents[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[122] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.contents[122] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1525,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.contents[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[123] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.contents[123] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1535,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.contents[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[124] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.contents[124] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1545,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.contents[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[125] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[125] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1555,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.contents[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[126] + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.contents[126] + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1565,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.contents[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[127] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.contents[127] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1575,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.contents[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[128] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.contents[128] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1585,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.contents[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[129] + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.contents[129] + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -1595,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.contents[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[130] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.contents[130] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1605,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.contents[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[131] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.contents[131] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1615,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.contents[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[132] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.contents[132] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1625,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.contents[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[133] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.contents[133] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1635,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.contents[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[134] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.contents[134] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1645,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.contents[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[135] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.contents[135] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1655,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.contents[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[136] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.contents[136] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1665,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.contents[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[137] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.contents[137] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1675,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.contents[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[138] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.contents[138] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1685,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.contents[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[139] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.contents[139] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1695,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.contents[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[140] + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.contents[140] + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -1705,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.contents[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[141] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.contents[141] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1715,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.contents[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[142] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.contents[142] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1725,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.contents[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[143] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.contents[143] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1735,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.contents[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[144] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.contents[144] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1745,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.contents[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[145] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.contents[145] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1755,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.contents[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[146] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.contents[146] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1765,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.contents[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[147] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.contents[147] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1775,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.contents[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[148] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.contents[148] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1785,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.contents[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[149] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.contents[149] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -1795,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.contents[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[150] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.contents[150] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1805,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.contents[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[151] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.contents[151] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1815,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.contents[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[152] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.contents[152] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1825,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.contents[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[153] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.contents[153] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1835,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.contents[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[154] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.contents[154] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1845,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.contents[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[155] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.contents[155] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1855,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.contents[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[156] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.contents[156] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1865,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.contents[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[157] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.contents[157] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -1875,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.contents[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[158] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.contents[158] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -1885,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.contents[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[159] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.contents[159] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1895,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.contents[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[160] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.contents[160] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1905,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.contents[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[161] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.contents[161] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1915,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.contents[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[162] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.contents[162] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1925,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.contents[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[163] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.contents[163] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1935,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.contents[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[164] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.contents[164] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1945,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.contents[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[165] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.contents[165] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1955,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.contents[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[166] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.contents[166] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1965,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.contents[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[167] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.contents[167] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1975,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.contents[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[168] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.contents[168] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1985,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.contents[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[169] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.contents[169] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1995,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.contents[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[170] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.contents[170] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -2005,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.contents[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[171] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.contents[171] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2015,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.contents[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[172] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[172] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -2025,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.contents[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[173] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.contents[173] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -2035,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.contents[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[174] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.contents[174] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2045,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.contents[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[175] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.contents[175] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -2055,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.contents[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[176] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.contents[176] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2065,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.contents[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[177] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.contents[177] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -2075,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.contents[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[178] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.contents[178] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -2085,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.contents[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[179] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.contents[179] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2095,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.contents[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[180] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.contents[180] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2105,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.contents[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[181] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.contents[181] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -2115,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.contents[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[182] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.contents[182] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2125,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.contents[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[183] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.contents[183] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -2135,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.contents[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[184] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.contents[184] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -2145,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.contents[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[185] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.contents[185] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -2155,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.contents[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[186] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.contents[186] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2165,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.contents[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[187] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.contents[187] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -2175,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.contents[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[188] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.contents[188] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -2185,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.contents[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[189] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.contents[189] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2195,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.contents[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[190] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.contents[190] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2205,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.contents[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[191] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.contents[191] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -2215,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.contents[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[192] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.contents[192] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2225,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.contents[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[193] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.contents[193] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -2235,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.contents[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[194] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.contents[194] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -2245,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.contents[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[195] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.contents[195] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -2255,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.contents[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[196] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.contents[196] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -2265,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.contents[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[197] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.contents[197] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -2275,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.contents[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[198] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[198] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -2285,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.contents[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[199] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.contents[199] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -2295,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.contents[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[200] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.contents[200] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -2305,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.contents[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[201] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.contents[201] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2315,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.contents[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[202] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.contents[202] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -2325,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.contents[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[203] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.contents[203] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2335,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.contents[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[204] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.contents[204] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -2345,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.contents[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[205] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.contents[205] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -2355,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.contents[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[206] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.contents[206] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2365,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.contents[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[207] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.contents[207] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -2375,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.contents[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[208] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.contents[208] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -2385,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.contents[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[209] + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.contents[209] + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -2395,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.contents[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[210] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.contents[210] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -2405,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.contents[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[211] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.contents[211] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -2415,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.contents[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[212] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.contents[212] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2425,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.contents[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[213] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.contents[213] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2435,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.contents[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[214] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.contents[214] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2445,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.contents[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[215] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.contents[215] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2455,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.contents[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[216] + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.contents[216] + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -2465,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.contents[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[217] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.contents[217] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -2475,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.contents[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[218] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.contents[218] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2485,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.contents[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[219] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.contents[219] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2495,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.contents[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[220] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.contents[220] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2505,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.contents[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[221] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.contents[221] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -2515,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.contents[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[222] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.contents[222] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2525,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.contents[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[223] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.contents[223] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -2535,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.contents[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[224] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.contents[224] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2545,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.contents[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[225] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.contents[225] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -2555,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.contents[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[226] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.contents[226] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2565,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.contents[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[227] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.contents[227] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2575,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.contents[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[228] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.contents[228] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2585,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.contents[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[229] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.contents[229] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2595,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.contents[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[230] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.contents[230] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -2605,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.contents[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[231] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.contents[231] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -2615,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.contents[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[232] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.contents[232] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -2625,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.contents[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[233] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.contents[233] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -2635,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.contents[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[234] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.contents[234] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -2645,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.contents[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[235] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.contents[235] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -2655,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.contents[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[236] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.contents[236] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -2665,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.contents[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[237] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.contents[237] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -2675,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.contents[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[238] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.contents[238] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -2685,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.contents[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[239] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.contents[239] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2695,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.contents[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[240] + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.contents[240] + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2705,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.contents[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[241] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.contents[241] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -2715,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.contents[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[242] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.contents[242] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2725,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.contents[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[243] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.contents[243] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -2735,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.contents[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[244] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.contents[244] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2745,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.contents[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[245] + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.contents[245] + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -2755,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.contents[246]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[246] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.contents[246] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -2765,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.contents[247]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[247] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.contents[247] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -2775,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.contents[248]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[248] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.contents[248] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2785,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.contents[249]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[249] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.contents[249] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -2795,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.contents[250]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[250] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.contents[250] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -2805,9 +2050,7 @@ public void test1() throws Throwable { } value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 259241795 + "'", - value.equals(BigInteger.valueOf(259241795L))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 259241795 + "'", value.equals(BigInteger.valueOf( 259241795L ) ) ); } else { value = value.longValue(); expected = 259241795L; diff --git a/java/test/auto_check_sbp_file_io_MsgFileioRemoveTest.java b/java/test/auto_check_sbp_file_io_MsgFileioRemoveTest.java index 4ada7fe2eb..8bfacad036 100644 Binary files a/java/test/auto_check_sbp_file_io_MsgFileioRemoveTest.java and b/java/test/auto_check_sbp_file_io_MsgFileioRemoveTest.java differ diff --git a/java/test/auto_check_sbp_file_io_MsgFileioWriteRespTest.java b/java/test/auto_check_sbp_file_io_MsgFileioWriteRespTest.java index 9ac184115c..1ca152dd66 100644 --- a/java/test/auto_check_sbp_file_io_MsgFileioWriteRespTest.java +++ b/java/test/auto_check_sbp_file_io_MsgFileioWriteRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioWriteResp.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/file_io/test_MsgFileioWriteResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.file_io.MsgFileioWriteResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_file_io_MsgFileioWriteRespTest { @@ -30,20 +34,15 @@ public class auto_check_sbp_file_io_MsgFileioWriteRespTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_file_io_MsgFileioWriteRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 202, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xab, payload); - MsgFileioWriteResp msg = new MsgFileioWriteResp(sbp); + byte[] payload = new byte[] {(byte)202,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xab, payload ); + MsgFileioWriteResp msg = new MsgFileioWriteResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; diff --git a/java/test/auto_check_sbp_flash_MsgFlashDoneTest.java b/java/test/auto_check_sbp_flash_MsgFlashDoneTest.java index 694b46df80..252298d3cb 100644 --- a/java/test/auto_check_sbp_flash_MsgFlashDoneTest.java +++ b/java/test/auto_check_sbp_flash_MsgFlashDoneTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashDone.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashDone.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgFlashDone; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgFlashDoneTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_flash_MsgFlashDoneTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashDoneTest.test1"); - byte[] payload = - new byte[] { - (byte) 82, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe0, payload); - MsgFlashDone msg = new MsgFlashDone(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashDoneTest.test1"); + byte[] payload = new byte[] {(byte)82, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe0, payload ); + MsgFlashDone msg = new MsgFlashDone( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.response; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.response + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.response + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; diff --git a/java/test/auto_check_sbp_flash_MsgFlashEraseTest.java b/java/test/auto_check_sbp_flash_MsgFlashEraseTest.java index bd3c2a5805..a4990fd849 100644 --- a/java/test/auto_check_sbp_flash_MsgFlashEraseTest.java +++ b/java/test/auto_check_sbp_flash_MsgFlashEraseTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashErase.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashErase.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgFlashErase; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgFlashEraseTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_flash_MsgFlashEraseTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashEraseTest.test1"); - byte[] payload = - new byte[] { - (byte) 74, (byte) 238, (byte) 177, (byte) 118, (byte) 132, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe2, payload); - MsgFlashErase msg = new MsgFlashErase(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashEraseTest.test1"); + byte[] payload = new byte[] {(byte)74,(byte)238,(byte)177,(byte)118,(byte)132, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe2, payload ); + MsgFlashErase msg = new MsgFlashErase( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.sector_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sector_num + "' != '" + 2222371310L + "'", - value.equals(new BigInteger("2222371310"))); + org.junit.Assert.assertTrue("'" + msg.sector_num + "' != '" + 2222371310L + "'", value.equals( new BigInteger( "2222371310" ) ) ); } else { value = value.longValue(); expected = 2222371310L; @@ -49,8 +50,7 @@ public void test1() throws Throwable { } value = msg.target; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.target + "' != '" + 74 + "'", value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.target + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; diff --git a/java/test/auto_check_sbp_flash_MsgFlashProgramTest.java b/java/test/auto_check_sbp_flash_MsgFlashProgramTest.java index c9e4420720..7b770d214c 100644 --- a/java/test/auto_check_sbp_flash_MsgFlashProgramTest.java +++ b/java/test/auto_check_sbp_flash_MsgFlashProgramTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashProgram.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashProgram.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgFlashProgram; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgFlashProgramTest { @@ -27,275 +32,17 @@ public class auto_check_sbp_flash_MsgFlashProgramTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashProgramTest.test1"); - byte[] payload = - new byte[] { - (byte) 212, - (byte) 87, - (byte) 52, - (byte) 244, - (byte) 250, - (byte) 176, - (byte) 222, - (byte) 235, - (byte) 106, - (byte) 144, - (byte) 29, - (byte) 141, - (byte) 255, - (byte) 3, - (byte) 16, - (byte) 192, - (byte) 237, - (byte) 172, - (byte) 254, - (byte) 213, - (byte) 4, - (byte) 220, - (byte) 98, - (byte) 34, - (byte) 222, - (byte) 230, - (byte) 214, - (byte) 6, - (byte) 217, - (byte) 172, - (byte) 122, - (byte) 46, - (byte) 13, - (byte) 38, - (byte) 240, - (byte) 236, - (byte) 60, - (byte) 121, - (byte) 47, - (byte) 252, - (byte) 163, - (byte) 141, - (byte) 222, - (byte) 29, - (byte) 168, - (byte) 214, - (byte) 118, - (byte) 55, - (byte) 201, - (byte) 233, - (byte) 21, - (byte) 214, - (byte) 57, - (byte) 245, - (byte) 246, - (byte) 19, - (byte) 3, - (byte) 121, - (byte) 49, - (byte) 231, - (byte) 37, - (byte) 186, - (byte) 58, - (byte) 238, - (byte) 98, - (byte) 39, - (byte) 70, - (byte) 232, - (byte) 133, - (byte) 25, - (byte) 10, - (byte) 134, - (byte) 129, - (byte) 69, - (byte) 228, - (byte) 134, - (byte) 9, - (byte) 88, - (byte) 183, - (byte) 133, - (byte) 171, - (byte) 255, - (byte) 166, - (byte) 100, - (byte) 152, - (byte) 231, - (byte) 92, - (byte) 9, - (byte) 196, - (byte) 106, - (byte) 246, - (byte) 29, - (byte) 145, - (byte) 156, - (byte) 151, - (byte) 32, - (byte) 67, - (byte) 188, - (byte) 63, - (byte) 233, - (byte) 142, - (byte) 174, - (byte) 139, - (byte) 154, - (byte) 127, - (byte) 35, - (byte) 60, - (byte) 56, - (byte) 187, - (byte) 121, - (byte) 103, - (byte) 135, - (byte) 152, - (byte) 182, - (byte) 88, - (byte) 160, - (byte) 255, - (byte) 227, - (byte) 240, - (byte) 54, - (byte) 100, - (byte) 91, - (byte) 31, - (byte) 141, - (byte) 102, - (byte) 130, - (byte) 254, - (byte) 54, - (byte) 227, - (byte) 229, - (byte) 62, - (byte) 53, - (byte) 225, - (byte) 143, - (byte) 88, - (byte) 139, - (byte) 126, - (byte) 235, - (byte) 235, - (byte) 35, - (byte) 54, - (byte) 134, - (byte) 163, - (byte) 92, - (byte) 57, - (byte) 87, - (byte) 130, - (byte) 178, - (byte) 22, - (byte) 158, - (byte) 18, - (byte) 237, - (byte) 209, - (byte) 187, - (byte) 226, - (byte) 1, - (byte) 46, - (byte) 64, - (byte) 226, - (byte) 235, - (byte) 213, - (byte) 186, - (byte) 159, - (byte) 221, - (byte) 186, - (byte) 25, - (byte) 115, - (byte) 84, - (byte) 131, - (byte) 167, - (byte) 201, - (byte) 104, - (byte) 1, - (byte) 200, - (byte) 13, - (byte) 50, - (byte) 71, - (byte) 73, - (byte) 193, - (byte) 201, - (byte) 250, - (byte) 172, - (byte) 193, - (byte) 13, - (byte) 20, - (byte) 238, - (byte) 130, - (byte) 243, - (byte) 68, - (byte) 4, - (byte) 72, - (byte) 46, - (byte) 194, - (byte) 113, - (byte) 255, - (byte) 238, - (byte) 15, - (byte) 230, - (byte) 64, - (byte) 178, - (byte) 127, - (byte) 217, - (byte) 92, - (byte) 160, - (byte) 201, - (byte) 118, - (byte) 163, - (byte) 144, - (byte) 58, - (byte) 28, - (byte) 174, - (byte) 65, - (byte) 73, - (byte) 45, - (byte) 123, - (byte) 118, - (byte) 83, - (byte) 107, - (byte) 239, - (byte) 168, - (byte) 32, - (byte) 212, - (byte) 191, - (byte) 81, - (byte) 93, - (byte) 186, - (byte) 223, - (byte) 32, - (byte) 19, - (byte) 58, - (byte) 137, - (byte) 72, - (byte) 217, - (byte) 151, - (byte) 251, - (byte) 83, - (byte) 20, - (byte) 113, - (byte) 37, - (byte) 151, - (byte) 34, - (byte) 37, - (byte) 71, - (byte) 95, - (byte) 105, - (byte) 235, - (byte) 144, - (byte) 164, - (byte) 83, - (byte) 197, - (byte) 254, - (byte) 183, - (byte) 223, - (byte) 91, - (byte) 19, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe6, payload); - MsgFlashProgram msg = new MsgFlashProgram(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashProgramTest.test1"); + byte[] payload = new byte[] {(byte)212,(byte)87,(byte)52,(byte)244,(byte)250,(byte)176,(byte)222,(byte)235,(byte)106,(byte)144,(byte)29,(byte)141,(byte)255,(byte)3,(byte)16,(byte)192,(byte)237,(byte)172,(byte)254,(byte)213,(byte)4,(byte)220,(byte)98,(byte)34,(byte)222,(byte)230,(byte)214,(byte)6,(byte)217,(byte)172,(byte)122,(byte)46,(byte)13,(byte)38,(byte)240,(byte)236,(byte)60,(byte)121,(byte)47,(byte)252,(byte)163,(byte)141,(byte)222,(byte)29,(byte)168,(byte)214,(byte)118,(byte)55,(byte)201,(byte)233,(byte)21,(byte)214,(byte)57,(byte)245,(byte)246,(byte)19,(byte)3,(byte)121,(byte)49,(byte)231,(byte)37,(byte)186,(byte)58,(byte)238,(byte)98,(byte)39,(byte)70,(byte)232,(byte)133,(byte)25,(byte)10,(byte)134,(byte)129,(byte)69,(byte)228,(byte)134,(byte)9,(byte)88,(byte)183,(byte)133,(byte)171,(byte)255,(byte)166,(byte)100,(byte)152,(byte)231,(byte)92,(byte)9,(byte)196,(byte)106,(byte)246,(byte)29,(byte)145,(byte)156,(byte)151,(byte)32,(byte)67,(byte)188,(byte)63,(byte)233,(byte)142,(byte)174,(byte)139,(byte)154,(byte)127,(byte)35,(byte)60,(byte)56,(byte)187,(byte)121,(byte)103,(byte)135,(byte)152,(byte)182,(byte)88,(byte)160,(byte)255,(byte)227,(byte)240,(byte)54,(byte)100,(byte)91,(byte)31,(byte)141,(byte)102,(byte)130,(byte)254,(byte)54,(byte)227,(byte)229,(byte)62,(byte)53,(byte)225,(byte)143,(byte)88,(byte)139,(byte)126,(byte)235,(byte)235,(byte)35,(byte)54,(byte)134,(byte)163,(byte)92,(byte)57,(byte)87,(byte)130,(byte)178,(byte)22,(byte)158,(byte)18,(byte)237,(byte)209,(byte)187,(byte)226,(byte)1,(byte)46,(byte)64,(byte)226,(byte)235,(byte)213,(byte)186,(byte)159,(byte)221,(byte)186,(byte)25,(byte)115,(byte)84,(byte)131,(byte)167,(byte)201,(byte)104,(byte)1,(byte)200,(byte)13,(byte)50,(byte)71,(byte)73,(byte)193,(byte)201,(byte)250,(byte)172,(byte)193,(byte)13,(byte)20,(byte)238,(byte)130,(byte)243,(byte)68,(byte)4,(byte)72,(byte)46,(byte)194,(byte)113,(byte)255,(byte)238,(byte)15,(byte)230,(byte)64,(byte)178,(byte)127,(byte)217,(byte)92,(byte)160,(byte)201,(byte)118,(byte)163,(byte)144,(byte)58,(byte)28,(byte)174,(byte)65,(byte)73,(byte)45,(byte)123,(byte)118,(byte)83,(byte)107,(byte)239,(byte)168,(byte)32,(byte)212,(byte)191,(byte)81,(byte)93,(byte)186,(byte)223,(byte)32,(byte)19,(byte)58,(byte)137,(byte)72,(byte)217,(byte)151,(byte)251,(byte)83,(byte)20,(byte)113,(byte)37,(byte)151,(byte)34,(byte)37,(byte)71,(byte)95,(byte)105,(byte)235,(byte)144,(byte)164,(byte)83,(byte)197,(byte)254,(byte)183,(byte)223,(byte)91,(byte)19, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe6, payload ); + MsgFlashProgram msg = new MsgFlashProgram( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.addr_len; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_len + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.addr_len + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.addr_start[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[0] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[0] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.addr_start[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[1] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[1] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.addr_start[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[2] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[2] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.data[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[0] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.data[0] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.data[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[1] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.data[1] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.data[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[2] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.data[2] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.data[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[3] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.data[3] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.data[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[4] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.data[4] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -383,8 +114,7 @@ public void test1() throws Throwable { } value = msg.data[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[5] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.data[5] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -392,9 +122,7 @@ public void test1() throws Throwable { } value = msg.data[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[6] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.data[6] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -402,9 +130,7 @@ public void test1() throws Throwable { } value = msg.data[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[7] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[7] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -412,8 +138,7 @@ public void test1() throws Throwable { } value = msg.data[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[8] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.data[8] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -421,8 +146,7 @@ public void test1() throws Throwable { } value = msg.data[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[9] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.data[9] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -430,9 +154,7 @@ public void test1() throws Throwable { } value = msg.data[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[10] + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.data[10] + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -440,9 +162,7 @@ public void test1() throws Throwable { } value = msg.data[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[11] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.data[11] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -450,9 +170,7 @@ public void test1() throws Throwable { } value = msg.data[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[12] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.data[12] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -460,9 +178,7 @@ public void test1() throws Throwable { } value = msg.data[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[13] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.data[13] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -470,9 +186,7 @@ public void test1() throws Throwable { } value = msg.data[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[14] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.data[14] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -480,8 +194,7 @@ public void test1() throws Throwable { } value = msg.data[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[15] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.data[15] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -489,9 +202,7 @@ public void test1() throws Throwable { } value = msg.data[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[16] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.data[16] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -499,9 +210,7 @@ public void test1() throws Throwable { } value = msg.data[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[17] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.data[17] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -509,9 +218,7 @@ public void test1() throws Throwable { } value = msg.data[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[18] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.data[18] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -519,9 +226,7 @@ public void test1() throws Throwable { } value = msg.data[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[19] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.data[19] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -529,9 +234,7 @@ public void test1() throws Throwable { } value = msg.data[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[20] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.data[20] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -539,9 +242,7 @@ public void test1() throws Throwable { } value = msg.data[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[21] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.data[21] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -549,8 +250,7 @@ public void test1() throws Throwable { } value = msg.data[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[22] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.data[22] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -558,9 +258,7 @@ public void test1() throws Throwable { } value = msg.data[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[23] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.data[23] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -568,9 +266,7 @@ public void test1() throws Throwable { } value = msg.data[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[24] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.data[24] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -578,9 +274,7 @@ public void test1() throws Throwable { } value = msg.data[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[25] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.data[25] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -588,9 +282,7 @@ public void test1() throws Throwable { } value = msg.data[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[26] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.data[26] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -598,9 +290,7 @@ public void test1() throws Throwable { } value = msg.data[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[27] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.data[27] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -608,9 +298,7 @@ public void test1() throws Throwable { } value = msg.data[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[28] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.data[28] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -618,9 +306,7 @@ public void test1() throws Throwable { } value = msg.data[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[29] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.data[29] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -628,9 +314,7 @@ public void test1() throws Throwable { } value = msg.data[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[30] + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.data[30] + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -638,9 +322,7 @@ public void test1() throws Throwable { } value = msg.data[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[31] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.data[31] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -648,9 +330,7 @@ public void test1() throws Throwable { } value = msg.data[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[32] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.data[32] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -658,9 +338,7 @@ public void test1() throws Throwable { } value = msg.data[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[33] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.data[33] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -668,9 +346,7 @@ public void test1() throws Throwable { } value = msg.data[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[34] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.data[34] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -678,9 +354,7 @@ public void test1() throws Throwable { } value = msg.data[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[35] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.data[35] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -688,9 +362,7 @@ public void test1() throws Throwable { } value = msg.data[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[36] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.data[36] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -698,9 +370,7 @@ public void test1() throws Throwable { } value = msg.data[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[37] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.data[37] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -708,9 +378,7 @@ public void test1() throws Throwable { } value = msg.data[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[38] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.data[38] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -718,9 +386,7 @@ public void test1() throws Throwable { } value = msg.data[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[39] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.data[39] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -728,9 +394,7 @@ public void test1() throws Throwable { } value = msg.data[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[40] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.data[40] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -738,9 +402,7 @@ public void test1() throws Throwable { } value = msg.data[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[41] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.data[41] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -748,9 +410,7 @@ public void test1() throws Throwable { } value = msg.data[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[42] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.data[42] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -758,9 +418,7 @@ public void test1() throws Throwable { } value = msg.data[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[43] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.data[43] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -768,9 +426,7 @@ public void test1() throws Throwable { } value = msg.data[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[44] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.data[44] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -778,9 +434,7 @@ public void test1() throws Throwable { } value = msg.data[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[45] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.data[45] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -788,9 +442,7 @@ public void test1() throws Throwable { } value = msg.data[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[46] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.data[46] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -798,9 +450,7 @@ public void test1() throws Throwable { } value = msg.data[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[47] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.data[47] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -808,9 +458,7 @@ public void test1() throws Throwable { } value = msg.data[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[48] + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.data[48] + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -818,9 +466,7 @@ public void test1() throws Throwable { } value = msg.data[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[49] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.data[49] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -828,9 +474,7 @@ public void test1() throws Throwable { } value = msg.data[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[50] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.data[50] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -838,8 +482,7 @@ public void test1() throws Throwable { } value = msg.data[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[51] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.data[51] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -847,9 +490,7 @@ public void test1() throws Throwable { } value = msg.data[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[52] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.data[52] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -857,9 +498,7 @@ public void test1() throws Throwable { } value = msg.data[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[53] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.data[53] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -867,9 +506,7 @@ public void test1() throws Throwable { } value = msg.data[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[54] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.data[54] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -877,9 +514,7 @@ public void test1() throws Throwable { } value = msg.data[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[55] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.data[55] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -887,9 +522,7 @@ public void test1() throws Throwable { } value = msg.data[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[56] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.data[56] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -897,9 +530,7 @@ public void test1() throws Throwable { } value = msg.data[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[57] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.data[57] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -907,9 +538,7 @@ public void test1() throws Throwable { } value = msg.data[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[58] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.data[58] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -917,9 +546,7 @@ public void test1() throws Throwable { } value = msg.data[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[59] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.data[59] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -927,9 +554,7 @@ public void test1() throws Throwable { } value = msg.data[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[60] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.data[60] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -937,9 +562,7 @@ public void test1() throws Throwable { } value = msg.data[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[61] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.data[61] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -947,9 +570,7 @@ public void test1() throws Throwable { } value = msg.data[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[62] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.data[62] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -957,9 +578,7 @@ public void test1() throws Throwable { } value = msg.data[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[63] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.data[63] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -967,9 +586,7 @@ public void test1() throws Throwable { } value = msg.data[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[64] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.data[64] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -977,9 +594,7 @@ public void test1() throws Throwable { } value = msg.data[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[65] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.data[65] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -987,9 +602,7 @@ public void test1() throws Throwable { } value = msg.data[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[66] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.data[66] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -997,9 +610,7 @@ public void test1() throws Throwable { } value = msg.data[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[67] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.data[67] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1007,9 +618,7 @@ public void test1() throws Throwable { } value = msg.data[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[68] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.data[68] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1017,9 +626,7 @@ public void test1() throws Throwable { } value = msg.data[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[69] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.data[69] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1027,9 +634,7 @@ public void test1() throws Throwable { } value = msg.data[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[70] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.data[70] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1037,8 +642,7 @@ public void test1() throws Throwable { } value = msg.data[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[71] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.data[71] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1046,9 +650,7 @@ public void test1() throws Throwable { } value = msg.data[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[72] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.data[72] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1056,9 +658,7 @@ public void test1() throws Throwable { } value = msg.data[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[73] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.data[73] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -1066,9 +666,7 @@ public void test1() throws Throwable { } value = msg.data[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[74] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.data[74] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1076,9 +674,7 @@ public void test1() throws Throwable { } value = msg.data[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[75] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.data[75] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1086,9 +682,7 @@ public void test1() throws Throwable { } value = msg.data[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[76] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[76] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1096,9 +690,7 @@ public void test1() throws Throwable { } value = msg.data[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[77] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.data[77] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1106,9 +698,7 @@ public void test1() throws Throwable { } value = msg.data[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[78] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.data[78] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1116,9 +706,7 @@ public void test1() throws Throwable { } value = msg.data[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[79] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.data[79] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1126,9 +714,7 @@ public void test1() throws Throwable { } value = msg.data[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[80] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.data[80] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1136,9 +722,7 @@ public void test1() throws Throwable { } value = msg.data[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[81] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.data[81] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1146,8 +730,7 @@ public void test1() throws Throwable { } value = msg.data[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[82] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.data[82] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1155,9 +738,7 @@ public void test1() throws Throwable { } value = msg.data[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[83] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.data[83] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1165,9 +746,7 @@ public void test1() throws Throwable { } value = msg.data[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[84] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.data[84] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1175,9 +754,7 @@ public void test1() throws Throwable { } value = msg.data[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[85] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.data[85] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1185,9 +762,7 @@ public void test1() throws Throwable { } value = msg.data[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[86] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.data[86] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1195,9 +770,7 @@ public void test1() throws Throwable { } value = msg.data[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[87] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.data[87] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1205,9 +778,7 @@ public void test1() throws Throwable { } value = msg.data[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[88] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.data[88] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1215,9 +786,7 @@ public void test1() throws Throwable { } value = msg.data[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[89] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.data[89] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1225,9 +794,7 @@ public void test1() throws Throwable { } value = msg.data[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[90] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.data[90] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1235,9 +802,7 @@ public void test1() throws Throwable { } value = msg.data[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[91] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.data[91] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1245,9 +810,7 @@ public void test1() throws Throwable { } value = msg.data[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[92] + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.data[92] + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1255,9 +818,7 @@ public void test1() throws Throwable { } value = msg.data[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[93] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.data[93] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1265,9 +826,7 @@ public void test1() throws Throwable { } value = msg.data[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[94] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.data[94] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1275,9 +834,7 @@ public void test1() throws Throwable { } value = msg.data[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[95] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.data[95] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1285,9 +842,7 @@ public void test1() throws Throwable { } value = msg.data[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[96] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.data[96] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1295,9 +850,7 @@ public void test1() throws Throwable { } value = msg.data[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[97] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.data[97] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1305,9 +858,7 @@ public void test1() throws Throwable { } value = msg.data[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[98] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.data[98] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -1315,9 +866,7 @@ public void test1() throws Throwable { } value = msg.data[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[99] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.data[99] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1325,9 +874,7 @@ public void test1() throws Throwable { } value = msg.data[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[100] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.data[100] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1335,9 +882,7 @@ public void test1() throws Throwable { } value = msg.data[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[101] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.data[101] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1345,9 +890,7 @@ public void test1() throws Throwable { } value = msg.data[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[102] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.data[102] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1355,9 +898,7 @@ public void test1() throws Throwable { } value = msg.data[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[103] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.data[103] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1365,9 +906,7 @@ public void test1() throws Throwable { } value = msg.data[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[104] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.data[104] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1375,9 +914,7 @@ public void test1() throws Throwable { } value = msg.data[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[105] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.data[105] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1385,9 +922,7 @@ public void test1() throws Throwable { } value = msg.data[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[106] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.data[106] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1395,9 +930,7 @@ public void test1() throws Throwable { } value = msg.data[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[107] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.data[107] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1405,9 +938,7 @@ public void test1() throws Throwable { } value = msg.data[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[108] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.data[108] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1415,9 +946,7 @@ public void test1() throws Throwable { } value = msg.data[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[109] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.data[109] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1425,9 +954,7 @@ public void test1() throws Throwable { } value = msg.data[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[110] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.data[110] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1435,9 +962,7 @@ public void test1() throws Throwable { } value = msg.data[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[111] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[111] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1445,9 +970,7 @@ public void test1() throws Throwable { } value = msg.data[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[112] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.data[112] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1455,9 +978,7 @@ public void test1() throws Throwable { } value = msg.data[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[113] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.data[113] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1465,9 +986,7 @@ public void test1() throws Throwable { } value = msg.data[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[114] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.data[114] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1475,9 +994,7 @@ public void test1() throws Throwable { } value = msg.data[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[115] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.data[115] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1485,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.data[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[116] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.data[116] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1495,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.data[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[117] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.data[117] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1505,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.data[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[118] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.data[118] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1515,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.data[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[119] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.data[119] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1525,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.data[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[120] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.data[120] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1535,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.data[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[121] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.data[121] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1545,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.data[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[122] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.data[122] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1555,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.data[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[123] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.data[123] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1565,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.data[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[124] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.data[124] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -1575,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.data[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[125] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.data[125] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1585,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.data[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[126] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.data[126] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -1595,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.data[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[127] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.data[127] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1605,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.data[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[128] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.data[128] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1615,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.data[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[129] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.data[129] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1625,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.data[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[130] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.data[130] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1635,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.data[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[131] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.data[131] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1645,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.data[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[132] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.data[132] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1655,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.data[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[133] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.data[133] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1665,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.data[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[134] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.data[134] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1675,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.data[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[135] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.data[135] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1685,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.data[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[136] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.data[136] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1695,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.data[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[137] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.data[137] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1705,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.data[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[138] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.data[138] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1715,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.data[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[139] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.data[139] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1725,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.data[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[140] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.data[140] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -1735,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.data[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[141] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.data[141] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1745,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.data[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[142] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.data[142] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1755,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.data[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[143] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.data[143] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1765,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.data[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[144] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.data[144] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1775,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.data[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[145] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.data[145] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1785,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.data[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[146] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.data[146] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1795,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.data[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[147] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.data[147] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1805,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.data[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[148] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.data[148] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1815,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.data[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[149] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.data[149] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1825,8 +1274,7 @@ public void test1() throws Throwable { } value = msg.data[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[150] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.data[150] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1834,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.data[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[151] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.data[151] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1844,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.data[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[152] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.data[152] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1854,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.data[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[153] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.data[153] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1864,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.data[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[154] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.data[154] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1874,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.data[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[155] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.data[155] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1884,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.data[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[156] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.data[156] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1894,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.data[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[157] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.data[157] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1904,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.data[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[158] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.data[158] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1914,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.data[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[159] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.data[159] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1924,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.data[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[160] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.data[160] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1934,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.data[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[161] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.data[161] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1944,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.data[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[162] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.data[162] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -1954,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.data[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[163] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.data[163] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1964,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.data[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[164] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.data[164] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1974,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.data[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[165] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.data[165] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -1984,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.data[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[166] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.data[166] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1994,8 +1410,7 @@ public void test1() throws Throwable { } value = msg.data[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[167] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.data[167] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2003,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.data[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[168] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.data[168] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2013,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.data[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[169] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.data[169] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2023,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.data[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[170] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.data[170] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -2033,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.data[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[171] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.data[171] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2043,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.data[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[172] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.data[172] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -2053,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.data[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[173] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.data[173] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2063,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.data[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[174] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.data[174] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -2073,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.data[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[175] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.data[175] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -2083,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.data[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[176] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.data[176] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -2093,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.data[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[177] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.data[177] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2103,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.data[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[178] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.data[178] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2113,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.data[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[179] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.data[179] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2123,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.data[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[180] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.data[180] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2133,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.data[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[181] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.data[181] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -2143,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.data[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[182] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.data[182] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -2153,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.data[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[183] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.data[183] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2163,8 +1546,7 @@ public void test1() throws Throwable { } value = msg.data[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[184] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.data[184] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2172,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.data[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[185] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.data[185] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2182,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.data[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[186] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.data[186] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -2192,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.data[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[187] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.data[187] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2202,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.data[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[188] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.data[188] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2212,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.data[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[189] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[189] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -2222,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.data[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[190] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.data[190] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2232,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.data[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[191] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.data[191] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2242,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.data[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[192] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.data[192] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -2252,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.data[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[193] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.data[193] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -2262,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.data[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[194] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.data[194] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -2272,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.data[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[195] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.data[195] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -2282,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.data[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[196] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.data[196] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2292,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.data[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[197] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.data[197] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2302,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.data[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[198] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.data[198] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -2312,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.data[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[199] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.data[199] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -2322,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.data[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[200] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.data[200] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -2332,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.data[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[201] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.data[201] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -2342,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.data[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[202] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.data[202] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2352,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.data[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[203] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.data[203] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2362,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.data[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[204] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.data[204] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -2372,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.data[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[205] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.data[205] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2382,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.data[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[206] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.data[206] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2392,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.data[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[207] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.data[207] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -2402,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.data[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[208] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.data[208] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2412,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.data[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[209] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.data[209] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -2422,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.data[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[210] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.data[210] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -2432,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.data[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[211] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.data[211] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2442,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.data[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[212] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.data[212] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -2452,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.data[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[213] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.data[213] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2462,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.data[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[214] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.data[214] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2472,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.data[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[215] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.data[215] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -2482,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.data[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[216] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.data[216] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2492,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.data[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[217] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.data[217] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -2502,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.data[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[218] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.data[218] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -2512,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.data[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[219] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.data[219] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -2522,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.data[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[220] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.data[220] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2532,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.data[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[221] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.data[221] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -2542,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.data[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[222] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.data[222] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -2552,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.data[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[223] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.data[223] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -2562,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.data[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[224] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.data[224] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2572,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.data[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[225] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.data[225] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -2582,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.data[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[226] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.data[226] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2592,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.data[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[227] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.data[227] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2602,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.data[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[228] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.data[228] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2612,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.data[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[229] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.data[229] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -2622,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.data[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[230] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.data[230] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2632,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.data[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[231] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.data[231] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2642,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.data[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[232] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.data[232] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2652,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.data[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[233] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.data[233] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -2662,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.data[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[234] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.data[234] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2672,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.data[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[235] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.data[235] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -2682,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.data[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[236] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.data[236] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -2692,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.data[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[237] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.data[237] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2702,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.data[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[238] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.data[238] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -2712,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.data[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[239] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.data[239] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -2722,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.data[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[240] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.data[240] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -2732,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.data[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[241] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.data[241] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2742,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.data[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[242] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.data[242] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -2752,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.data[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[243] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.data[243] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2762,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.data[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[244] + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.data[244] + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -2772,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.data[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[245] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.data[245] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -2782,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.data[246]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[246] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.data[246] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2792,9 +2050,7 @@ public void test1() throws Throwable { } value = msg.data[247]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[247] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.data[247] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -2802,9 +2058,7 @@ public void test1() throws Throwable { } value = msg.data[248]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[248] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.data[248] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -2812,9 +2066,7 @@ public void test1() throws Throwable { } value = msg.data[249]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[249] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.data[249] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -2822,9 +2074,7 @@ public void test1() throws Throwable { } value = msg.target; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.target + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.target + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; diff --git a/java/test/auto_check_sbp_flash_MsgFlashReadReqTest.java b/java/test/auto_check_sbp_flash_MsgFlashReadReqTest.java index e50f01a70f..a0501d9308 100644 --- a/java/test/auto_check_sbp_flash_MsgFlashReadReqTest.java +++ b/java/test/auto_check_sbp_flash_MsgFlashReadReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashReadReq.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashReadReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgFlashReadReq; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgFlashReadReqTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_flash_MsgFlashReadReqTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashReadReqTest.test1"); - byte[] payload = - new byte[] { - (byte) 241, (byte) 28, (byte) 75, (byte) 244, (byte) 71, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe7, payload); - MsgFlashReadReq msg = new MsgFlashReadReq(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashReadReqTest.test1"); + byte[] payload = new byte[] {(byte)241,(byte)28,(byte)75,(byte)244,(byte)71, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe7, payload ); + MsgFlashReadReq msg = new MsgFlashReadReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.addr_len; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_len + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.addr_len + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -49,9 +50,7 @@ public void test1() throws Throwable { } value = msg.addr_start[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[0] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[0] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -59,9 +58,7 @@ public void test1() throws Throwable { } value = msg.addr_start[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[1] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[1] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -69,9 +66,7 @@ public void test1() throws Throwable { } value = msg.addr_start[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[2] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[2] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -79,9 +74,7 @@ public void test1() throws Throwable { } value = msg.target; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.target + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.target + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; diff --git a/java/test/auto_check_sbp_flash_MsgFlashReadRespTest.java b/java/test/auto_check_sbp_flash_MsgFlashReadRespTest.java index a8132a45bd..8d88910f1a 100644 --- a/java/test/auto_check_sbp_flash_MsgFlashReadRespTest.java +++ b/java/test/auto_check_sbp_flash_MsgFlashReadRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashReadResp.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgFlashReadResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgFlashReadResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgFlashReadRespTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_flash_MsgFlashReadRespTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashReadRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 136, (byte) 155, (byte) 52, (byte) 172, (byte) 124, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe1, payload); - MsgFlashReadResp msg = new MsgFlashReadResp(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgFlashReadRespTest.test1"); + byte[] payload = new byte[] {(byte)136,(byte)155,(byte)52,(byte)172,(byte)124, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe1, payload ); + MsgFlashReadResp msg = new MsgFlashReadResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.addr_len; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_len + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.addr_len + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -49,9 +50,7 @@ public void test1() throws Throwable { } value = msg.addr_start[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[0] + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[0] + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -59,9 +58,7 @@ public void test1() throws Throwable { } value = msg.addr_start[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[1] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[1] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -69,9 +66,7 @@ public void test1() throws Throwable { } value = msg.addr_start[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.addr_start[2] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.addr_start[2] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -79,9 +74,7 @@ public void test1() throws Throwable { } value = msg.target; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.target + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.target + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; diff --git a/java/test/auto_check_sbp_flash_MsgM25FlashWriteStatusTest.java b/java/test/auto_check_sbp_flash_MsgM25FlashWriteStatusTest.java index a3f05aa98b..21a09589a6 100644 --- a/java/test/auto_check_sbp_flash_MsgM25FlashWriteStatusTest.java +++ b/java/test/auto_check_sbp_flash_MsgM25FlashWriteStatusTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/flash/test_MsgM25FlashWriteStatus.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgM25FlashWriteStatus.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgM25FlashWriteStatus; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgM25FlashWriteStatusTest { @@ -30,19 +34,15 @@ public class auto_check_sbp_flash_MsgM25FlashWriteStatusTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgM25FlashWriteStatusTest.test1"); - byte[] payload = - new byte[] { - (byte) 5, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xf3, payload); - MsgM25FlashWriteStatus msg = new MsgM25FlashWriteStatus(sbp); + byte[] payload = new byte[] {(byte)5, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xf3, payload ); + MsgM25FlashWriteStatus msg = new MsgM25FlashWriteStatus( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.status[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[0] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.status[0] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; diff --git a/java/test/auto_check_sbp_flash_MsgStmFlashLockSectorTest.java b/java/test/auto_check_sbp_flash_MsgStmFlashLockSectorTest.java index 280a07478e..feeaafa878 100644 --- a/java/test/auto_check_sbp_flash_MsgStmFlashLockSectorTest.java +++ b/java/test/auto_check_sbp_flash_MsgStmFlashLockSectorTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmFlashLockSector.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmFlashLockSector.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgStmFlashLockSector; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgStmFlashLockSectorTest { @@ -30,20 +34,15 @@ public class auto_check_sbp_flash_MsgStmFlashLockSectorTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmFlashLockSectorTest.test1"); - byte[] payload = - new byte[] { - (byte) 161, (byte) 247, (byte) 197, (byte) 67, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe3, payload); - MsgStmFlashLockSector msg = new MsgStmFlashLockSector(sbp); + byte[] payload = new byte[] {(byte)161,(byte)247,(byte)197,(byte)67, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe3, payload ); + MsgStmFlashLockSector msg = new MsgStmFlashLockSector( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.sector; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sector + "' != '" + 1137047457 + "'", - value.equals(BigInteger.valueOf(1137047457L))); + org.junit.Assert.assertTrue("'" + msg.sector + "' != '" + 1137047457 + "'", value.equals(BigInteger.valueOf( 1137047457L ) ) ); } else { value = value.longValue(); expected = 1137047457L; diff --git a/java/test/auto_check_sbp_flash_MsgStmFlashUnlockSectorTest.java b/java/test/auto_check_sbp_flash_MsgStmFlashUnlockSectorTest.java index 3f5958a87c..38326489c4 100644 --- a/java/test/auto_check_sbp_flash_MsgStmFlashUnlockSectorTest.java +++ b/java/test/auto_check_sbp_flash_MsgStmFlashUnlockSectorTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmFlashUnlockSector.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmFlashUnlockSector.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgStmFlashUnlockSector; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgStmFlashUnlockSectorTest { @@ -30,20 +34,15 @@ public class auto_check_sbp_flash_MsgStmFlashUnlockSectorTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmFlashUnlockSectorTest.test1"); - byte[] payload = - new byte[] { - (byte) 31, (byte) 16, (byte) 231, (byte) 49, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe4, payload); - MsgStmFlashUnlockSector msg = new MsgStmFlashUnlockSector(sbp); + byte[] payload = new byte[] {(byte)31,(byte)16,(byte)231,(byte)49, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe4, payload ); + MsgStmFlashUnlockSector msg = new MsgStmFlashUnlockSector( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.sector; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sector + "' != '" + 837226527 + "'", - value.equals(BigInteger.valueOf(837226527L))); + org.junit.Assert.assertTrue("'" + msg.sector + "' != '" + 837226527 + "'", value.equals(BigInteger.valueOf( 837226527L ) ) ); } else { value = value.longValue(); expected = 837226527L; diff --git a/java/test/auto_check_sbp_flash_MsgStmUniqueIdReqTest.java b/java/test/auto_check_sbp_flash_MsgStmUniqueIdReqTest.java index 2126f205ff..52a2b695e7 100644 --- a/java/test/auto_check_sbp_flash_MsgStmUniqueIdReqTest.java +++ b/java/test/auto_check_sbp_flash_MsgStmUniqueIdReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmUniqueIdReq.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmUniqueIdReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgStmUniqueIdReq; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgStmUniqueIdReqTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_flash_MsgStmUniqueIdReqTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmUniqueIdReqTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe8, payload); - MsgStmUniqueIdReq msg = new MsgStmUniqueIdReq(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmUniqueIdReqTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe8, payload ); + MsgStmUniqueIdReq msg = new MsgStmUniqueIdReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_flash_MsgStmUniqueIdRespTest.java b/java/test/auto_check_sbp_flash_MsgStmUniqueIdRespTest.java index 5781a0f78b..0312a93229 100644 --- a/java/test/auto_check_sbp_flash_MsgStmUniqueIdRespTest.java +++ b/java/test/auto_check_sbp_flash_MsgStmUniqueIdRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmUniqueIdResp.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/flash/test_MsgStmUniqueIdResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.flash.MsgStmUniqueIdResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_flash_MsgStmUniqueIdRespTest { @@ -27,32 +32,17 @@ public class auto_check_sbp_flash_MsgStmUniqueIdRespTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmUniqueIdRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 196, - (byte) 16, - (byte) 15, - (byte) 163, - (byte) 85, - (byte) 221, - (byte) 119, - (byte) 102, - (byte) 32, - (byte) 194, - (byte) 56, - (byte) 144, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0xe5, payload); - MsgStmUniqueIdResp msg = new MsgStmUniqueIdResp(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_flash_MsgStmUniqueIdRespTest.test1"); + byte[] payload = new byte[] {(byte)196,(byte)16,(byte)15,(byte)163,(byte)85,(byte)221,(byte)119,(byte)102,(byte)32,(byte)194,(byte)56,(byte)144, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0xe5, payload ); + MsgStmUniqueIdResp msg = new MsgStmUniqueIdResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.stm_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[0] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[0] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -60,9 +50,7 @@ public void test1() throws Throwable { } value = msg.stm_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[1] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[1] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -70,9 +58,7 @@ public void test1() throws Throwable { } value = msg.stm_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[2] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[2] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -80,9 +66,7 @@ public void test1() throws Throwable { } value = msg.stm_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[3] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[3] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -90,9 +74,7 @@ public void test1() throws Throwable { } value = msg.stm_id[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[4] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[4] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -100,9 +82,7 @@ public void test1() throws Throwable { } value = msg.stm_id[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[5] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[5] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -110,9 +90,7 @@ public void test1() throws Throwable { } value = msg.stm_id[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[6] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[6] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -120,9 +98,7 @@ public void test1() throws Throwable { } value = msg.stm_id[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[7] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[7] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -130,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stm_id[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[8] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[8] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -140,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stm_id[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[9] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[9] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -150,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stm_id[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[10] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[10] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -160,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stm_id[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stm_id[11] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.stm_id[11] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; diff --git a/java/test/auto_check_sbp_gnss_gnss_structsTest.java b/java/test/auto_check_sbp_gnss_gnss_structsTest.java index b733b094b9..3531ed26f4 100644 --- a/java/test/auto_check_sbp_gnss_gnss_structsTest.java +++ b/java/test/auto_check_sbp_gnss_gnss_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,10 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/gnss/test_gnss_structs.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/gnss/test_gnss_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_gnss_gnss_structsTest { diff --git a/java/test/auto_check_sbp_imu_MsgImuAuxTest.java b/java/test/auto_check_sbp_imu_MsgImuAuxTest.java index 4d3fe303fe..7e80c4aac4 100644 --- a/java/test/auto_check_sbp_imu_MsgImuAuxTest.java +++ b/java/test/auto_check_sbp_imu_MsgImuAuxTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuAux.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuAux.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.imu.MsgImuAux; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_imu_MsgImuAuxTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_imu_MsgImuAuxTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuAuxTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 244, (byte) 10, (byte) 66, - }; - SBPMessage sbp = new SBPMessage(0x1234, 0x901, payload); - MsgImuAux msg = new MsgImuAux(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuAuxTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)244,(byte)10,(byte)66, }; + SBPMessage sbp = new SBPMessage( 0x1234, 0x901, payload ); + MsgImuAux msg = new MsgImuAux( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.imu_conf; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.imu_conf + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.imu_conf + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -49,8 +50,7 @@ public void test1() throws Throwable { } value = msg.imu_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.imu_type + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.imu_type + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -58,9 +58,7 @@ public void test1() throws Throwable { } value = msg.temp; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.temp + "' != '" + 2804 + "'", - value.equals(BigInteger.valueOf(2804L))); + org.junit.Assert.assertTrue("'" + msg.temp + "' != '" + 2804 + "'", value.equals(BigInteger.valueOf( 2804L ) ) ); } else { value = value.longValue(); expected = 2804L; diff --git a/java/test/auto_check_sbp_imu_MsgImuCompTest.java b/java/test/auto_check_sbp_imu_MsgImuCompTest.java index 78849cd477..1e47c070af 100644 --- a/java/test/auto_check_sbp_imu_MsgImuCompTest.java +++ b/java/test/auto_check_sbp_imu_MsgImuCompTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuComp.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuComp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.imu.MsgImuComp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_imu_MsgImuCompTest { @@ -27,25 +32,17 @@ public class auto_check_sbp_imu_MsgImuCompTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuCompTest.test1"); - byte[] payload = - new byte[] { - (byte) 26, (byte) 1, (byte) 0, (byte) 192, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 206, (byte) 0, (byte) 96, (byte) 0, (byte) 0, (byte) 0, - (byte) 223, (byte) 255, (byte) 255, (byte) 255, (byte) 44, (byte) 16, (byte) 0, - (byte) 0, (byte) 60, (byte) 0, (byte) 0, (byte) 0, (byte) 208, (byte) 254, - (byte) 255, (byte) 255, (byte) 238, (byte) 255, (byte) 255, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x1234, 0x905, payload); - MsgImuComp msg = new MsgImuComp(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuCompTest.test1"); + byte[] payload = new byte[] {(byte)26,(byte)1,(byte)0,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)206,(byte)0,(byte)96,(byte)0,(byte)0,(byte)0,(byte)223,(byte)255,(byte)255,(byte)255,(byte)44,(byte)16,(byte)0,(byte)0,(byte)60,(byte)0,(byte)0,(byte)0,(byte)208,(byte)254,(byte)255,(byte)255,(byte)238,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x1234, 0x905, payload ); + MsgImuComp msg = new MsgImuComp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.acc_comp_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_comp_x + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.acc_comp_x + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -53,9 +50,7 @@ public void test1() throws Throwable { } value = msg.acc_comp_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_comp_y + "' != '" + -33 + "'", - value.equals(BigInteger.valueOf(-33L))); + org.junit.Assert.assertTrue("'" + msg.acc_comp_y + "' != '" + -33 + "'", value.equals(BigInteger.valueOf( -33L ) ) ); } else { value = value.longValue(); expected = -33L; @@ -63,9 +58,7 @@ public void test1() throws Throwable { } value = msg.acc_comp_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_comp_z + "' != '" + 4140 + "'", - value.equals(BigInteger.valueOf(4140L))); + org.junit.Assert.assertTrue("'" + msg.acc_comp_z + "' != '" + 4140 + "'", value.equals(BigInteger.valueOf( 4140L ) ) ); } else { value = value.longValue(); expected = 4140L; @@ -73,8 +66,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 206 + "'", value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -82,9 +74,7 @@ public void test1() throws Throwable { } value = msg.gyr_comp_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_comp_x + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.gyr_comp_x + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -92,9 +82,7 @@ public void test1() throws Throwable { } value = msg.gyr_comp_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_comp_y + "' != '" + -304 + "'", - value.equals(BigInteger.valueOf(-304L))); + org.junit.Assert.assertTrue("'" + msg.gyr_comp_y + "' != '" + -304 + "'", value.equals(BigInteger.valueOf( -304L ) ) ); } else { value = value.longValue(); expected = -304L; @@ -102,9 +90,7 @@ public void test1() throws Throwable { } value = msg.gyr_comp_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_comp_z + "' != '" + -18 + "'", - value.equals(BigInteger.valueOf(-18L))); + org.junit.Assert.assertTrue("'" + msg.gyr_comp_z + "' != '" + -18 + "'", value.equals(BigInteger.valueOf( -18L ) ) ); } else { value = value.longValue(); expected = -18L; @@ -112,9 +98,7 @@ public void test1() throws Throwable { } value = msg.time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time + "' != '" + 3221225754L + "'", - value.equals(new BigInteger("3221225754"))); + org.junit.Assert.assertTrue("'" + msg.time + "' != '" + 3221225754L + "'", value.equals( new BigInteger( "3221225754" ) ) ); } else { value = value.longValue(); expected = 3221225754L; diff --git a/java/test/auto_check_sbp_imu_MsgImuRawTest.java b/java/test/auto_check_sbp_imu_MsgImuRawTest.java index 314ceb21d0..0b3b5b2e36 100644 --- a/java/test/auto_check_sbp_imu_MsgImuRawTest.java +++ b/java/test/auto_check_sbp_imu_MsgImuRawTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuRaw.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/imu/test_MsgImuRaw.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.imu.MsgImuRaw; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_imu_MsgImuRawTest { @@ -27,22 +32,17 @@ public class auto_check_sbp_imu_MsgImuRawTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuRawTest.test1"); - byte[] payload = - new byte[] { - (byte) 26, (byte) 1, (byte) 0, (byte) 192, (byte) 206, (byte) 96, (byte) 0, - (byte) 223, (byte) 255, (byte) 44, (byte) 16, (byte) 60, (byte) 0, (byte) 208, - (byte) 254, (byte) 238, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x1234, 0x900, payload); - MsgImuRaw msg = new MsgImuRaw(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_imu_MsgImuRawTest.test1"); + byte[] payload = new byte[] {(byte)26,(byte)1,(byte)0,(byte)192,(byte)206,(byte)96,(byte)0,(byte)223,(byte)255,(byte)44,(byte)16,(byte)60,(byte)0,(byte)208,(byte)254,(byte)238,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x1234, 0x900, payload ); + MsgImuRaw msg = new MsgImuRaw( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.acc_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_x + "' != '" + 96 + "'", value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.acc_x + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -50,8 +50,7 @@ public void test1() throws Throwable { } value = msg.acc_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_y + "' != '" + -33 + "'", value.equals(BigInteger.valueOf(-33L))); + org.junit.Assert.assertTrue("'" + msg.acc_y + "' != '" + -33 + "'", value.equals(BigInteger.valueOf( -33L ) ) ); } else { value = value.longValue(); expected = -33L; @@ -59,9 +58,7 @@ public void test1() throws Throwable { } value = msg.acc_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acc_z + "' != '" + 4140 + "'", - value.equals(BigInteger.valueOf(4140L))); + org.junit.Assert.assertTrue("'" + msg.acc_z + "' != '" + 4140 + "'", value.equals(BigInteger.valueOf( 4140L ) ) ); } else { value = value.longValue(); expected = 4140L; @@ -69,8 +66,7 @@ public void test1() throws Throwable { } value = msg.gyr_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_x + "' != '" + 60 + "'", value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.gyr_x + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -78,9 +74,7 @@ public void test1() throws Throwable { } value = msg.gyr_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_y + "' != '" + -304 + "'", - value.equals(BigInteger.valueOf(-304L))); + org.junit.Assert.assertTrue("'" + msg.gyr_y + "' != '" + -304 + "'", value.equals(BigInteger.valueOf( -304L ) ) ); } else { value = value.longValue(); expected = -304L; @@ -88,8 +82,7 @@ public void test1() throws Throwable { } value = msg.gyr_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gyr_z + "' != '" + -18 + "'", value.equals(BigInteger.valueOf(-18L))); + org.junit.Assert.assertTrue("'" + msg.gyr_z + "' != '" + -18 + "'", value.equals(BigInteger.valueOf( -18L ) ) ); } else { value = value.longValue(); expected = -18L; @@ -97,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 3221225754L + "'", - value.equals(new BigInteger("3221225754"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 3221225754L + "'", value.equals( new BigInteger( "3221225754" ) ) ); } else { value = value.longValue(); expected = 3221225754L; @@ -107,8 +98,7 @@ public void test1() throws Throwable { } value = msg.tow_f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_f + "' != '" + 206 + "'", value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.tow_f + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; diff --git a/java/test/auto_check_sbp_integrity_MsgAcknowledgeTest.java b/java/test/auto_check_sbp_integrity_MsgAcknowledgeTest.java index c6b48288e5..14ef278fda 100644 --- a/java/test/auto_check_sbp_integrity_MsgAcknowledgeTest.java +++ b/java/test/auto_check_sbp_integrity_MsgAcknowledgeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgAcknowledge.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgAcknowledge.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgAcknowledge; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgAcknowledgeTest { @@ -27,31 +32,17 @@ public class auto_check_sbp_integrity_MsgAcknowledgeTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgAcknowledgeTest.test1"); - byte[] payload = - new byte[] { - (byte) 30, - (byte) 64, - (byte) 226, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x2A, 0xBD2, payload); - MsgAcknowledge msg = new MsgAcknowledge(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgAcknowledgeTest.test1"); + byte[] payload = new byte[] {(byte)30,(byte)64,(byte)226,(byte)1,(byte)0,(byte)0,(byte)1,(byte)0,(byte)1,(byte)0,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x2A, 0xBD2, payload ); + MsgAcknowledge msg = new MsgAcknowledge( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.area_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.area_id + "' != '" + 123456 + "'", - value.equals(BigInteger.valueOf(123456L))); + org.junit.Assert.assertTrue("'" + msg.area_id + "' != '" + 123456 + "'", value.equals(BigInteger.valueOf( 123456L ) ) ); } else { value = value.longValue(); expected = 123456L; @@ -59,9 +50,7 @@ public void test1() throws Throwable { } value = msg.correction_mask_on_demand; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.correction_mask_on_demand + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.correction_mask_on_demand + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -69,9 +58,7 @@ public void test1() throws Throwable { } value = msg.correction_mask_stream; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.correction_mask_stream + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.correction_mask_stream + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -79,9 +66,7 @@ public void test1() throws Throwable { } value = msg.request_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.request_id + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.request_id + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -89,9 +74,7 @@ public void test1() throws Throwable { } value = msg.response_code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.response_code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.response_code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -99,9 +82,7 @@ public void test1() throws Throwable { } value = msg.solution_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.solution_id + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.solution_id + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepATest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepATest.java new file mode 100644 index 0000000000..c2c43be614 --- /dev/null +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepATest.java @@ -0,0 +1,214 @@ +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. + * Contact: https://support.swiftnav.com + * + * This source is subject to the license found in the file 'LICENSE' which must + * be distributed together with this source. All other rights reserved. + * + * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + */ + +package com.swiftnav.sbp.test; + +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + +import com.swiftnav.sbp.integrity.MsgSsrFlagHighLevelDepA; + + +public class auto_check_sbp_integrity_MsgSsrFlagHighLevelDepATest { + + public static boolean debug = false; + private static final double DELTA = 1e-15; + + @Test + public void test1() throws Throwable { + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagHighLevelDepATest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)104,(byte)1,(byte)0,(byte)0,(byte)6,(byte)0,(byte)10,(byte)20,(byte)0,(byte)30,(byte)0,(byte)40,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)5,(byte)6,(byte)7,(byte)8, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BB9, payload ); + MsgSsrFlagHighLevelDepA msg = new MsgSsrFlagHighLevelDepA( sbp ); + JSONObject json = msg.toJSON(); + Number value; + Number expected; + value = msg.chain_id; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.chain_id + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); + } else { + value = value.longValue(); + expected = 40L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.corr_time.tow; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.corr_time.tow + "' != '" + 360 + "'", value.equals(BigInteger.valueOf( 360L ) ) ); + } else { + value = value.longValue(); + expected = 360L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.corr_time.wn; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.corr_time.wn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); + } else { + value = value.longValue(); + expected = 6L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.obs_time.tow; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); + } else { + value = value.longValue(); + expected = 180L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.obs_time.wn; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); + } else { + value = value.longValue(); + expected = 3L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.reserved[0]; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.reserved[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); + } else { + value = value.longValue(); + expected = 0L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.reserved[1]; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.reserved[1] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); + } else { + value = value.longValue(); + expected = 0L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.reserved[2]; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.reserved[2] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); + } else { + value = value.longValue(); + expected = 0L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.reserved[3]; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.reserved[3] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); + } else { + value = value.longValue(); + expected = 0L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.reserved[4]; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.reserved[4] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); + } else { + value = value.longValue(); + expected = 0L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.ssr_sol_id; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.ssr_sol_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); + } else { + value = value.longValue(); + expected = 10L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.tile_id; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); + } else { + value = value.longValue(); + expected = 30L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.tile_set_id; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); + } else { + value = value.longValue(); + expected = 20L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_bds_sat; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_bds_sat + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); + } else { + value = value.longValue(); + expected = 3L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_gal_sat; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_gal_sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); + } else { + value = value.longValue(); + expected = 2L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_gps_sat; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_gps_sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); + } else { + value = value.longValue(); + expected = 1L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_iono_grid_point_sat_los; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_iono_grid_point_sat_los + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); + } else { + value = value.longValue(); + expected = 8L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_iono_grid_points; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_iono_grid_points + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); + } else { + value = value.longValue(); + expected = 6L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_iono_tile_sat_los; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_iono_tile_sat_los + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); + } else { + value = value.longValue(); + expected = 7L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_qzss_sat; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_qzss_sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); + } else { + value = value.longValue(); + expected = 4L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.use_tropo_grid_points; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.use_tropo_grid_points + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); + } else { + value = value.longValue(); + expected = 5L; + org.junit.Assert.assertEquals(value, expected); + } + + org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); + } +} diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelTest.java index 0579248903..8f3a9da169 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagHighLevelTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagHighLevel; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagHighLevelTest { @@ -30,80 +34,39 @@ public class auto_check_sbp_integrity_MsgSsrFlagHighLevelTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagHighLevelTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 104, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - (byte) 10, - (byte) 20, - (byte) 0, - (byte) 30, - (byte) 0, - (byte) 40, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BB9, payload); - MsgSsrFlagHighLevel msg = new MsgSsrFlagHighLevel(sbp); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)109,(byte)1,(byte)0,(byte)0,(byte)6,(byte)0,(byte)104,(byte)1,(byte)0,(byte)0,(byte)6,(byte)0,(byte)10,(byte)20,(byte)0,(byte)30,(byte)0,(byte)40,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)5,(byte)6,(byte)7,(byte)8, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BBA, payload ); + MsgSsrFlagHighLevel msg = new MsgSsrFlagHighLevel( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - value = msg.chain_id; + value = msg.iono_corr_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.chain_id + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.iono_corr_time.tow + "' != '" + 365 + "'", value.equals(BigInteger.valueOf( 365L ) ) ); } else { value = value.longValue(); - expected = 40L; + expected = 365L; org.junit.Assert.assertEquals(value, expected); } - value = msg.corr_time.tow; + value = msg.iono_corr_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_time.tow + "' != '" + 360 + "'", - value.equals(BigInteger.valueOf(360L))); + org.junit.Assert.assertTrue("'" + msg.iono_corr_time.wn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); - expected = 360L; + expected = 6L; org.junit.Assert.assertEquals(value, expected); } - value = msg.corr_time.wn; + value = msg.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_time.wn + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.chain_id + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); - expected = 6L; + expected = 40L; org.junit.Assert.assertEquals(value, expected); } value = msg.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -111,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -121,9 +82,7 @@ public void test1() throws Throwable { } value = msg.reserved[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -131,9 +90,7 @@ public void test1() throws Throwable { } value = msg.reserved[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[1] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[1] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -141,9 +98,7 @@ public void test1() throws Throwable { } value = msg.reserved[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[2] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[2] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -151,9 +106,7 @@ public void test1() throws Throwable { } value = msg.reserved[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[3] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[3] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -161,19 +114,31 @@ public void test1() throws Throwable { } value = msg.reserved[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[4] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[4] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; org.junit.Assert.assertEquals(value, expected); } + value = msg.sat_corr_time.tow; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.sat_corr_time.tow + "' != '" + 360 + "'", value.equals(BigInteger.valueOf( 360L ) ) ); + } else { + value = value.longValue(); + expected = 360L; + org.junit.Assert.assertEquals(value, expected); + } + value = msg.sat_corr_time.wn; + if (value instanceof BigInteger) { + org.junit.Assert.assertTrue("'" + msg.sat_corr_time.wn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); + } else { + value = value.longValue(); + expected = 6L; + org.junit.Assert.assertEquals(value, expected); + } value = msg.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_sol_id + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.ssr_sol_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -181,8 +146,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 30 + "'", value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -190,9 +154,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -200,9 +162,7 @@ public void test1() throws Throwable { } value = msg.use_bds_sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_bds_sat + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.use_bds_sat + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -210,9 +170,7 @@ public void test1() throws Throwable { } value = msg.use_gal_sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_gal_sat + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.use_gal_sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -220,9 +178,7 @@ public void test1() throws Throwable { } value = msg.use_gps_sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_gps_sat + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.use_gps_sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -230,9 +186,7 @@ public void test1() throws Throwable { } value = msg.use_iono_grid_point_sat_los; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_iono_grid_point_sat_los + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.use_iono_grid_point_sat_los + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -240,9 +194,7 @@ public void test1() throws Throwable { } value = msg.use_iono_grid_points; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_iono_grid_points + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.use_iono_grid_points + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -250,9 +202,7 @@ public void test1() throws Throwable { } value = msg.use_iono_tile_sat_los; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_iono_tile_sat_los + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.use_iono_tile_sat_los + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -260,9 +210,7 @@ public void test1() throws Throwable { } value = msg.use_qzss_sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_qzss_sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.use_qzss_sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -270,9 +218,7 @@ public void test1() throws Throwable { } value = msg.use_tropo_grid_points; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.use_tropo_grid_points + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.use_tropo_grid_points + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.java index a0d14325ef..33244a0f81 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoGridPointSatLos.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoGridPointSatLos.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPointSatLos; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest { @@ -29,42 +33,16 @@ public class auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 6, - (byte) 30, - (byte) 0, - (byte) 2, - (byte) 10, - (byte) 11, - (byte) 15, - (byte) 14, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BD1, payload); - MsgSsrFlagIonoGridPointSatLos msg = new MsgSsrFlagIonoGridPointSatLos(sbp); + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoGridPointSatLosTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)5,(byte)0,(byte)6,(byte)30,(byte)0,(byte)2,(byte)10,(byte)11,(byte)15,(byte)14, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BD1, payload ); + MsgSsrFlagIonoGridPointSatLos msg = new MsgSsrFlagIonoGridPointSatLos( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.faulty_los[0].constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[0].constellation + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[0].constellation + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -72,9 +50,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[0].satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[0].satId + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[0].satId + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -82,9 +58,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[1].constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[1].constellation + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[1].constellation + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -92,9 +66,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[1].satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[1].satId + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[1].satId + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -102,9 +74,7 @@ public void test1() throws Throwable { } value = msg.grid_point_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.grid_point_id + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.grid_point_id + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -112,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.chain_id + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.header.chain_id + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -122,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -132,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -142,9 +106,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -152,9 +114,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -162,9 +122,7 @@ public void test1() throws Throwable { } value = msg.header.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -172,9 +130,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -182,9 +138,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -192,9 +146,7 @@ public void test1() throws Throwable { } value = msg.n_faulty_los; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_faulty_los + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n_faulty_los + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.java index 51aa8b9615..cf1cc64506 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoGridPoints.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoGridPoints.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagIonoGridPoints; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest { @@ -29,42 +33,16 @@ public class auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 6, - (byte) 3, - (byte) 10, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 12, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BC7, payload); - MsgSsrFlagIonoGridPoints msg = new MsgSsrFlagIonoGridPoints(sbp); + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoGridPointsTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)5,(byte)0,(byte)6,(byte)3,(byte)10,(byte)0,(byte)11,(byte)0,(byte)12,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BC7, payload ); + MsgSsrFlagIonoGridPoints msg = new MsgSsrFlagIonoGridPoints( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.faulty_points[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -72,9 +50,7 @@ public void test1() throws Throwable { } value = msg.faulty_points[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -82,9 +58,7 @@ public void test1() throws Throwable { } value = msg.faulty_points[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -92,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.chain_id + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.header.chain_id + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -102,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -112,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -122,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -132,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -142,9 +106,7 @@ public void test1() throws Throwable { } value = msg.header.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -152,9 +114,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -162,9 +122,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -172,9 +130,7 @@ public void test1() throws Throwable { } value = msg.n_faulty_points; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_faulty_points + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_faulty_points + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.java index 0ca4de5abf..421f3d9c5e 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoTileSatLos.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagIonoTileSatLos.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagIonoTileSatLos; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest { @@ -29,40 +33,16 @@ public class auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 6, - (byte) 2, - (byte) 10, - (byte) 11, - (byte) 15, - (byte) 14, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BCD, payload); - MsgSsrFlagIonoTileSatLos msg = new MsgSsrFlagIonoTileSatLos(sbp); + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagIonoTileSatLosTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)5,(byte)0,(byte)6,(byte)2,(byte)10,(byte)11,(byte)15,(byte)14, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BCD, payload ); + MsgSsrFlagIonoTileSatLos msg = new MsgSsrFlagIonoTileSatLos( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.faulty_los[0].constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[0].constellation + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[0].constellation + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -70,9 +50,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[0].satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[0].satId + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[0].satId + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -80,9 +58,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[1].constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[1].constellation + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[1].constellation + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -90,9 +66,7 @@ public void test1() throws Throwable { } value = msg.faulty_los[1].satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_los[1].satId + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.faulty_los[1].satId + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -100,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.chain_id + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.header.chain_id + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -110,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -120,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -130,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -140,9 +106,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -150,9 +114,7 @@ public void test1() throws Throwable { } value = msg.header.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -160,9 +122,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -170,9 +130,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -180,9 +138,7 @@ public void test1() throws Throwable { } value = msg.n_faulty_los; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_faulty_los + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n_faulty_los + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagSatellitesTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagSatellitesTest.java index 54ee4ed9a8..5e45609186 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagSatellitesTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagSatellitesTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagSatellites.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagSatellites.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagSatellites; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagSatellitesTest { @@ -30,21 +34,15 @@ public class auto_check_sbp_integrity_MsgSsrFlagSatellitesTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagSatellitesTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 3, (byte) 10, (byte) 11, - (byte) 12, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BBD, payload); - MsgSsrFlagSatellites msg = new MsgSsrFlagSatellites(sbp); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)3,(byte)10,(byte)11,(byte)12, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BBD, payload ); + MsgSsrFlagSatellites msg = new MsgSsrFlagSatellites( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.chain_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.chain_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -52,8 +50,7 @@ public void test1() throws Throwable { } value = msg.const_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.const_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.const_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -61,9 +58,7 @@ public void test1() throws Throwable { } value = msg.faulty_sats[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_sats[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.faulty_sats[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -71,9 +66,7 @@ public void test1() throws Throwable { } value = msg.faulty_sats[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_sats[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.faulty_sats[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -81,9 +74,7 @@ public void test1() throws Throwable { } value = msg.faulty_sats[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_sats[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.faulty_sats[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -91,9 +82,7 @@ public void test1() throws Throwable { } value = msg.n_faulty_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_faulty_sats + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_faulty_sats + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -101,8 +90,7 @@ public void test1() throws Throwable { } value = msg.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -110,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -120,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -130,8 +114,7 @@ public void test1() throws Throwable { } value = msg.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -139,9 +122,7 @@ public void test1() throws Throwable { } value = msg.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_sol_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.ssr_sol_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; diff --git a/java/test/auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.java b/java/test/auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.java index af90587bdc..41174d4431 100644 --- a/java/test/auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.java +++ b/java/test/auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagTropoGridPoints.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagTropoGridPoints.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.integrity.MsgSsrFlagTropoGridPoints; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest { @@ -29,42 +33,16 @@ public class auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 6, - (byte) 3, - (byte) 10, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 12, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x0BC3, payload); - MsgSsrFlagTropoGridPoints msg = new MsgSsrFlagTropoGridPoints(sbp); + System.out.format("%n%s%n", "auto_check_sbp_integrity_MsgSsrFlagTropoGridPointsTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)5,(byte)0,(byte)6,(byte)3,(byte)10,(byte)0,(byte)11,(byte)0,(byte)12,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x0BC3, payload ); + MsgSsrFlagTropoGridPoints msg = new MsgSsrFlagTropoGridPoints( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.faulty_points[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -72,9 +50,7 @@ public void test1() throws Throwable { } value = msg.faulty_points[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -82,9 +58,7 @@ public void test1() throws Throwable { } value = msg.faulty_points[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.faulty_points[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.faulty_points[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -92,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.chain_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.chain_id + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.header.chain_id + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -102,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -112,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -122,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.obs_time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.obs_time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.obs_time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -132,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -142,9 +106,7 @@ public void test1() throws Throwable { } value = msg.header.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.ssr_sol_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -152,9 +114,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -162,9 +122,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -172,9 +130,7 @@ public void test1() throws Throwable { } value = msg.n_faulty_points; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_faulty_points + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_faulty_points + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; diff --git a/java/test/auto_check_sbp_integrity_integrity_structsTest.java b/java/test/auto_check_sbp_integrity_integrity_structsTest.java index a91ae18fda..8aff52e34f 100644 --- a/java/test/auto_check_sbp_integrity_integrity_structsTest.java +++ b/java/test/auto_check_sbp_integrity_integrity_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/integrity/test_integrity_structs.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_integrity_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_integrity_integrity_structsTest { diff --git a/java/test/auto_check_sbp_linux_MsgLinuxCpuStateDepATest.java b/java/test/auto_check_sbp_linux_MsgLinuxCpuStateDepATest.java index 4629c08bae..b9b669350d 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxCpuStateDepATest.java and b/java/test/auto_check_sbp_linux_MsgLinuxCpuStateDepATest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxCpuStateTest.java b/java/test/auto_check_sbp_linux_MsgLinuxCpuStateTest.java index b6af0c6a81..db8b25b1b8 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxCpuStateTest.java and b/java/test/auto_check_sbp_linux_MsgLinuxCpuStateTest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxMemStateDepATest.java b/java/test/auto_check_sbp_linux_MsgLinuxMemStateDepATest.java index 7a5d8f77ce..81fd411590 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxMemStateDepATest.java and b/java/test/auto_check_sbp_linux_MsgLinuxMemStateDepATest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxMemStateTest.java b/java/test/auto_check_sbp_linux_MsgLinuxMemStateTest.java index 978ceee2be..6ebf944d03 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxMemStateTest.java and b/java/test/auto_check_sbp_linux_MsgLinuxMemStateTest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxProcessFdCountTest.java b/java/test/auto_check_sbp_linux_MsgLinuxProcessFdCountTest.java index 9edc822b09..abe6d190bf 100644 --- a/java/test/auto_check_sbp_linux_MsgLinuxProcessFdCountTest.java +++ b/java/test/auto_check_sbp_linux_MsgLinuxProcessFdCountTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxProcessFdCount.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxProcessFdCount.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.linux.MsgLinuxProcessFdCount; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_linux_MsgLinuxProcessFdCountTest { @@ -30,72 +34,16 @@ public class auto_check_sbp_linux_MsgLinuxProcessFdCountTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxProcessFdCountTest.test1"); - byte[] payload = - new byte[] { - (byte) 164, - (byte) 189, - (byte) 165, - (byte) 5, - (byte) 139, - (byte) 47, - (byte) 112, - (byte) 97, - (byte) 116, - (byte) 104, - (byte) 47, - (byte) 116, - (byte) 111, - (byte) 47, - (byte) 112, - (byte) 114, - (byte) 111, - (byte) 99, - (byte) 101, - (byte) 115, - (byte) 115, - (byte) 45, - (byte) 110, - (byte) 97, - (byte) 109, - (byte) 101, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 48, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 49, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 50, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 51, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 52, - }; - SBPMessage sbp = new SBPMessage(0xc31e, 0x7f06, payload); - MsgLinuxProcessFdCount msg = new MsgLinuxProcessFdCount(sbp); + byte[] payload = new byte[] {(byte)164,(byte)189,(byte)165,(byte)5,(byte)139,(byte)47,(byte)112,(byte)97,(byte)116,(byte)104,(byte)47,(byte)116,(byte)111,(byte)47,(byte)112,(byte)114,(byte)111,(byte)99,(byte)101,(byte)115,(byte)115,(byte)45,(byte)110,(byte)97,(byte)109,(byte)101,(byte)32,(byte)97,(byte)114,(byte)103,(byte)48,(byte)32,(byte)97,(byte)114,(byte)103,(byte)49,(byte)32,(byte)97,(byte)114,(byte)103,(byte)50,(byte)32,(byte)97,(byte)114,(byte)103,(byte)51,(byte)32,(byte)97,(byte)114,(byte)103,(byte)52, }; + SBPMessage sbp = new SBPMessage( 0xc31e, 0x7f06, payload ); + MsgLinuxProcessFdCount msg = new MsgLinuxProcessFdCount( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals( - msg.cmdline, "/path/to/process-name arg0 arg1 arg2 arg3 arg4"); + org.junit.Assert.assertEquals(msg.cmdline, "/path/to/process-name arg0 arg1 arg2 arg3 arg4" ); value = msg.fd_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fd_count + "' != '" + 35589 + "'", - value.equals(BigInteger.valueOf(35589L))); + org.junit.Assert.assertTrue("'" + msg.fd_count + "' != '" + 35589 + "'", value.equals(BigInteger.valueOf( 35589L ) ) ); } else { value = value.longValue(); expected = 35589L; @@ -103,8 +51,7 @@ public void test1() throws Throwable { } value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 164 + "'", value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -112,9 +59,7 @@ public void test1() throws Throwable { } value = msg.pid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pid + "' != '" + 42429 + "'", - value.equals(BigInteger.valueOf(42429L))); + org.junit.Assert.assertTrue("'" + msg.pid + "' != '" + 42429 + "'", value.equals(BigInteger.valueOf( 42429L ) ) ); } else { value = value.longValue(); expected = 42429L; diff --git a/java/test/auto_check_sbp_linux_MsgLinuxProcessFdSummaryTest.java b/java/test/auto_check_sbp_linux_MsgLinuxProcessFdSummaryTest.java index bdee15b2ea..2758878df7 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxProcessFdSummaryTest.java and b/java/test/auto_check_sbp_linux_MsgLinuxProcessFdSummaryTest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.java b/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.java index 0733e831e4..00aa315fe8 100644 --- a/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.java +++ b/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxProcessSocketCounts.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxProcessSocketCounts.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.linux.MsgLinuxProcessSocketCounts; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest { @@ -29,77 +33,17 @@ public class auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.test1"); - byte[] payload = - new byte[] { - (byte) 51, - (byte) 137, - (byte) 111, - (byte) 79, - (byte) 118, - (byte) 3, - (byte) 140, - (byte) 114, - (byte) 115, - (byte) 47, - (byte) 112, - (byte) 97, - (byte) 116, - (byte) 104, - (byte) 47, - (byte) 116, - (byte) 111, - (byte) 47, - (byte) 112, - (byte) 114, - (byte) 111, - (byte) 99, - (byte) 101, - (byte) 115, - (byte) 115, - (byte) 45, - (byte) 110, - (byte) 97, - (byte) 109, - (byte) 101, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 48, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 49, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 50, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 51, - (byte) 32, - (byte) 97, - (byte) 114, - (byte) 103, - (byte) 52, - }; - SBPMessage sbp = new SBPMessage(0x096c, 0x7f03, payload); - MsgLinuxProcessSocketCounts msg = new MsgLinuxProcessSocketCounts(sbp); + System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxProcessSocketCountsTest.test1"); + byte[] payload = new byte[] {(byte)51,(byte)137,(byte)111,(byte)79,(byte)118,(byte)3,(byte)140,(byte)114,(byte)115,(byte)47,(byte)112,(byte)97,(byte)116,(byte)104,(byte)47,(byte)116,(byte)111,(byte)47,(byte)112,(byte)114,(byte)111,(byte)99,(byte)101,(byte)115,(byte)115,(byte)45,(byte)110,(byte)97,(byte)109,(byte)101,(byte)32,(byte)97,(byte)114,(byte)103,(byte)48,(byte)32,(byte)97,(byte)114,(byte)103,(byte)49,(byte)32,(byte)97,(byte)114,(byte)103,(byte)50,(byte)32,(byte)97,(byte)114,(byte)103,(byte)51,(byte)32,(byte)97,(byte)114,(byte)103,(byte)52, }; + SBPMessage sbp = new SBPMessage( 0x096c, 0x7f03, payload ); + MsgLinuxProcessSocketCounts msg = new MsgLinuxProcessSocketCounts( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals( - msg.cmdline, "/path/to/process-name arg0 arg1 arg2 arg3 arg4"); + org.junit.Assert.assertEquals(msg.cmdline, "/path/to/process-name arg0 arg1 arg2 arg3 arg4" ); value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 51 + "'", value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -107,9 +51,7 @@ public void test1() throws Throwable { } value = msg.pid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pid + "' != '" + 28553 + "'", - value.equals(BigInteger.valueOf(28553L))); + org.junit.Assert.assertTrue("'" + msg.pid + "' != '" + 28553 + "'", value.equals(BigInteger.valueOf( 28553L ) ) ); } else { value = value.longValue(); expected = 28553L; @@ -117,9 +59,7 @@ public void test1() throws Throwable { } value = msg.socket_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_count + "' != '" + 30287 + "'", - value.equals(BigInteger.valueOf(30287L))); + org.junit.Assert.assertTrue("'" + msg.socket_count + "' != '" + 30287 + "'", value.equals(BigInteger.valueOf( 30287L ) ) ); } else { value = value.longValue(); expected = 30287L; @@ -127,9 +67,7 @@ public void test1() throws Throwable { } value = msg.socket_states; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_states + "' != '" + 29554 + "'", - value.equals(BigInteger.valueOf(29554L))); + org.junit.Assert.assertTrue("'" + msg.socket_states + "' != '" + 29554 + "'", value.equals(BigInteger.valueOf( 29554L ) ) ); } else { value = value.longValue(); expected = 29554L; @@ -137,9 +75,7 @@ public void test1() throws Throwable { } value = msg.socket_types; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_types + "' != '" + 35843 + "'", - value.equals(BigInteger.valueOf(35843L))); + org.junit.Assert.assertTrue("'" + msg.socket_types + "' != '" + 35843 + "'", value.equals(BigInteger.valueOf( 35843L ) ) ); } else { value = value.longValue(); expected = 35843L; diff --git a/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketQueuesTest.java b/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketQueuesTest.java index f662c69f2c..e3cbb5a82e 100644 Binary files a/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketQueuesTest.java and b/java/test/auto_check_sbp_linux_MsgLinuxProcessSocketQueuesTest.java differ diff --git a/java/test/auto_check_sbp_linux_MsgLinuxSocketUsageTest.java b/java/test/auto_check_sbp_linux_MsgLinuxSocketUsageTest.java index f86b15ae87..08ee83c52f 100644 --- a/java/test/auto_check_sbp_linux_MsgLinuxSocketUsageTest.java +++ b/java/test/auto_check_sbp_linux_MsgLinuxSocketUsageTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSocketUsage.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSocketUsage.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.linux.MsgLinuxSocketUsage; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_linux_MsgLinuxSocketUsageTest { @@ -30,91 +34,15 @@ public class auto_check_sbp_linux_MsgLinuxSocketUsageTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxSocketUsageTest.test1"); - byte[] payload = - new byte[] { - (byte) 13, - (byte) 196, - (byte) 69, - (byte) 173, - (byte) 67, - (byte) 222, - (byte) 186, - (byte) 181, - (byte) 246, - (byte) 154, - (byte) 251, - (byte) 17, - (byte) 224, - (byte) 179, - (byte) 26, - (byte) 169, - (byte) 177, - (byte) 90, - (byte) 149, - (byte) 213, - (byte) 214, - (byte) 6, - (byte) 126, - (byte) 64, - (byte) 120, - (byte) 185, - (byte) 84, - (byte) 131, - (byte) 200, - (byte) 111, - (byte) 32, - (byte) 141, - (byte) 217, - (byte) 209, - (byte) 52, - (byte) 14, - (byte) 190, - (byte) 147, - (byte) 159, - (byte) 246, - (byte) 141, - (byte) 122, - (byte) 212, - (byte) 119, - (byte) 131, - (byte) 30, - (byte) 120, - (byte) 47, - (byte) 25, - (byte) 109, - (byte) 154, - (byte) 65, - (byte) 132, - (byte) 164, - (byte) 39, - (byte) 30, - (byte) 30, - (byte) 175, - (byte) 8, - (byte) 44, - (byte) 28, - (byte) 111, - (byte) 236, - (byte) 240, - (byte) 176, - (byte) 74, - (byte) 159, - (byte) 129, - (byte) 154, - (byte) 153, - (byte) 162, - (byte) 229, - }; - SBPMessage sbp = new SBPMessage(0x8a72, 0x7f05, payload); - MsgLinuxSocketUsage msg = new MsgLinuxSocketUsage(sbp); + byte[] payload = new byte[] {(byte)13,(byte)196,(byte)69,(byte)173,(byte)67,(byte)222,(byte)186,(byte)181,(byte)246,(byte)154,(byte)251,(byte)17,(byte)224,(byte)179,(byte)26,(byte)169,(byte)177,(byte)90,(byte)149,(byte)213,(byte)214,(byte)6,(byte)126,(byte)64,(byte)120,(byte)185,(byte)84,(byte)131,(byte)200,(byte)111,(byte)32,(byte)141,(byte)217,(byte)209,(byte)52,(byte)14,(byte)190,(byte)147,(byte)159,(byte)246,(byte)141,(byte)122,(byte)212,(byte)119,(byte)131,(byte)30,(byte)120,(byte)47,(byte)25,(byte)109,(byte)154,(byte)65,(byte)132,(byte)164,(byte)39,(byte)30,(byte)30,(byte)175,(byte)8,(byte)44,(byte)28,(byte)111,(byte)236,(byte)240,(byte)176,(byte)74,(byte)159,(byte)129,(byte)154,(byte)153,(byte)162,(byte)229, }; + SBPMessage sbp = new SBPMessage( 0x8a72, 0x7f05, payload ); + MsgLinuxSocketUsage msg = new MsgLinuxSocketUsage( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.avg_queue_depth; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.avg_queue_depth + "' != '" + 2907030541L + "'", - value.equals(new BigInteger("2907030541"))); + org.junit.Assert.assertTrue("'" + msg.avg_queue_depth + "' != '" + 2907030541L + "'", value.equals( new BigInteger( "2907030541" ) ) ); } else { value = value.longValue(); expected = 2907030541L; @@ -122,9 +50,7 @@ public void test1() throws Throwable { } value = msg.max_queue_depth; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.max_queue_depth + "' != '" + 3048922691L + "'", - value.equals(new BigInteger("3048922691"))); + org.junit.Assert.assertTrue("'" + msg.max_queue_depth + "' != '" + 3048922691L + "'", value.equals( new BigInteger( "3048922691" ) ) ); } else { value = value.longValue(); expected = 3048922691L; @@ -132,9 +58,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[0] + "' != '" + 39670 + "'", - value.equals(BigInteger.valueOf(39670L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[0] + "' != '" + 39670 + "'", value.equals(BigInteger.valueOf( 39670L ) ) ); } else { value = value.longValue(); expected = 39670L; @@ -142,9 +66,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[1] + "' != '" + 4603 + "'", - value.equals(BigInteger.valueOf(4603L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[1] + "' != '" + 4603 + "'", value.equals(BigInteger.valueOf( 4603L ) ) ); } else { value = value.longValue(); expected = 4603L; @@ -152,9 +74,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[2] + "' != '" + 46048 + "'", - value.equals(BigInteger.valueOf(46048L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[2] + "' != '" + 46048 + "'", value.equals(BigInteger.valueOf( 46048L ) ) ); } else { value = value.longValue(); expected = 46048L; @@ -162,9 +82,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[3] + "' != '" + 43290 + "'", - value.equals(BigInteger.valueOf(43290L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[3] + "' != '" + 43290 + "'", value.equals(BigInteger.valueOf( 43290L ) ) ); } else { value = value.longValue(); expected = 43290L; @@ -172,9 +90,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[4] + "' != '" + 23217 + "'", - value.equals(BigInteger.valueOf(23217L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[4] + "' != '" + 23217 + "'", value.equals(BigInteger.valueOf( 23217L ) ) ); } else { value = value.longValue(); expected = 23217L; @@ -182,9 +98,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[5] + "' != '" + 54677 + "'", - value.equals(BigInteger.valueOf(54677L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[5] + "' != '" + 54677 + "'", value.equals(BigInteger.valueOf( 54677L ) ) ); } else { value = value.longValue(); expected = 54677L; @@ -192,9 +106,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[6] + "' != '" + 1750 + "'", - value.equals(BigInteger.valueOf(1750L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[6] + "' != '" + 1750 + "'", value.equals(BigInteger.valueOf( 1750L ) ) ); } else { value = value.longValue(); expected = 1750L; @@ -202,9 +114,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[7] + "' != '" + 16510 + "'", - value.equals(BigInteger.valueOf(16510L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[7] + "' != '" + 16510 + "'", value.equals(BigInteger.valueOf( 16510L ) ) ); } else { value = value.longValue(); expected = 16510L; @@ -212,9 +122,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[8] + "' != '" + 47480 + "'", - value.equals(BigInteger.valueOf(47480L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[8] + "' != '" + 47480 + "'", value.equals(BigInteger.valueOf( 47480L ) ) ); } else { value = value.longValue(); expected = 47480L; @@ -222,9 +130,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[9] + "' != '" + 33620 + "'", - value.equals(BigInteger.valueOf(33620L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[9] + "' != '" + 33620 + "'", value.equals(BigInteger.valueOf( 33620L ) ) ); } else { value = value.longValue(); expected = 33620L; @@ -232,9 +138,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[10] + "' != '" + 28616 + "'", - value.equals(BigInteger.valueOf(28616L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[10] + "' != '" + 28616 + "'", value.equals(BigInteger.valueOf( 28616L ) ) ); } else { value = value.longValue(); expected = 28616L; @@ -242,9 +146,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[11] + "' != '" + 36128 + "'", - value.equals(BigInteger.valueOf(36128L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[11] + "' != '" + 36128 + "'", value.equals(BigInteger.valueOf( 36128L ) ) ); } else { value = value.longValue(); expected = 36128L; @@ -252,9 +154,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[12] + "' != '" + 53721 + "'", - value.equals(BigInteger.valueOf(53721L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[12] + "' != '" + 53721 + "'", value.equals(BigInteger.valueOf( 53721L ) ) ); } else { value = value.longValue(); expected = 53721L; @@ -262,9 +162,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[13] + "' != '" + 3636 + "'", - value.equals(BigInteger.valueOf(3636L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[13] + "' != '" + 3636 + "'", value.equals(BigInteger.valueOf( 3636L ) ) ); } else { value = value.longValue(); expected = 3636L; @@ -272,9 +170,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[14] + "' != '" + 37822 + "'", - value.equals(BigInteger.valueOf(37822L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[14] + "' != '" + 37822 + "'", value.equals(BigInteger.valueOf( 37822L ) ) ); } else { value = value.longValue(); expected = 37822L; @@ -282,9 +178,7 @@ public void test1() throws Throwable { } value = msg.socket_state_counts[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_state_counts[15] + "' != '" + 63135 + "'", - value.equals(BigInteger.valueOf(63135L))); + org.junit.Assert.assertTrue("'" + msg.socket_state_counts[15] + "' != '" + 63135 + "'", value.equals(BigInteger.valueOf( 63135L ) ) ); } else { value = value.longValue(); expected = 63135L; @@ -292,9 +186,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[0] + "' != '" + 31373 + "'", - value.equals(BigInteger.valueOf(31373L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[0] + "' != '" + 31373 + "'", value.equals(BigInteger.valueOf( 31373L ) ) ); } else { value = value.longValue(); expected = 31373L; @@ -302,9 +194,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[1] + "' != '" + 30676 + "'", - value.equals(BigInteger.valueOf(30676L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[1] + "' != '" + 30676 + "'", value.equals(BigInteger.valueOf( 30676L ) ) ); } else { value = value.longValue(); expected = 30676L; @@ -312,9 +202,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[2] + "' != '" + 7811 + "'", - value.equals(BigInteger.valueOf(7811L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[2] + "' != '" + 7811 + "'", value.equals(BigInteger.valueOf( 7811L ) ) ); } else { value = value.longValue(); expected = 7811L; @@ -322,9 +210,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[3] + "' != '" + 12152 + "'", - value.equals(BigInteger.valueOf(12152L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[3] + "' != '" + 12152 + "'", value.equals(BigInteger.valueOf( 12152L ) ) ); } else { value = value.longValue(); expected = 12152L; @@ -332,9 +218,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[4] + "' != '" + 27929 + "'", - value.equals(BigInteger.valueOf(27929L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[4] + "' != '" + 27929 + "'", value.equals(BigInteger.valueOf( 27929L ) ) ); } else { value = value.longValue(); expected = 27929L; @@ -342,9 +226,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[5] + "' != '" + 16794 + "'", - value.equals(BigInteger.valueOf(16794L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[5] + "' != '" + 16794 + "'", value.equals(BigInteger.valueOf( 16794L ) ) ); } else { value = value.longValue(); expected = 16794L; @@ -352,9 +234,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[6] + "' != '" + 42116 + "'", - value.equals(BigInteger.valueOf(42116L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[6] + "' != '" + 42116 + "'", value.equals(BigInteger.valueOf( 42116L ) ) ); } else { value = value.longValue(); expected = 42116L; @@ -362,9 +242,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[7] + "' != '" + 7719 + "'", - value.equals(BigInteger.valueOf(7719L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[7] + "' != '" + 7719 + "'", value.equals(BigInteger.valueOf( 7719L ) ) ); } else { value = value.longValue(); expected = 7719L; @@ -372,9 +250,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[8] + "' != '" + 44830 + "'", - value.equals(BigInteger.valueOf(44830L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[8] + "' != '" + 44830 + "'", value.equals(BigInteger.valueOf( 44830L ) ) ); } else { value = value.longValue(); expected = 44830L; @@ -382,9 +258,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[9] + "' != '" + 11272 + "'", - value.equals(BigInteger.valueOf(11272L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[9] + "' != '" + 11272 + "'", value.equals(BigInteger.valueOf( 11272L ) ) ); } else { value = value.longValue(); expected = 11272L; @@ -392,9 +266,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[10] + "' != '" + 28444 + "'", - value.equals(BigInteger.valueOf(28444L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[10] + "' != '" + 28444 + "'", value.equals(BigInteger.valueOf( 28444L ) ) ); } else { value = value.longValue(); expected = 28444L; @@ -402,9 +274,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[11] + "' != '" + 61676 + "'", - value.equals(BigInteger.valueOf(61676L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[11] + "' != '" + 61676 + "'", value.equals(BigInteger.valueOf( 61676L ) ) ); } else { value = value.longValue(); expected = 61676L; @@ -412,9 +282,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[12] + "' != '" + 19120 + "'", - value.equals(BigInteger.valueOf(19120L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[12] + "' != '" + 19120 + "'", value.equals(BigInteger.valueOf( 19120L ) ) ); } else { value = value.longValue(); expected = 19120L; @@ -422,9 +290,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[13] + "' != '" + 33183 + "'", - value.equals(BigInteger.valueOf(33183L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[13] + "' != '" + 33183 + "'", value.equals(BigInteger.valueOf( 33183L ) ) ); } else { value = value.longValue(); expected = 33183L; @@ -432,9 +298,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[14] + "' != '" + 39322 + "'", - value.equals(BigInteger.valueOf(39322L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[14] + "' != '" + 39322 + "'", value.equals(BigInteger.valueOf( 39322L ) ) ); } else { value = value.longValue(); expected = 39322L; @@ -442,9 +306,7 @@ public void test1() throws Throwable { } value = msg.socket_type_counts[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.socket_type_counts[15] + "' != '" + 58786 + "'", - value.equals(BigInteger.valueOf(58786L))); + org.junit.Assert.assertTrue("'" + msg.socket_type_counts[15] + "' != '" + 58786 + "'", value.equals(BigInteger.valueOf( 58786L ) ) ); } else { value = value.longValue(); expected = 58786L; diff --git a/java/test/auto_check_sbp_linux_MsgLinuxSysStateDepATest.java b/java/test/auto_check_sbp_linux_MsgLinuxSysStateDepATest.java index f0a8491b5c..1b0a71362b 100644 --- a/java/test/auto_check_sbp_linux_MsgLinuxSysStateDepATest.java +++ b/java/test/auto_check_sbp_linux_MsgLinuxSysStateDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSysStateDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSysStateDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.linux.MsgLinuxSysStateDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_linux_MsgLinuxSysStateDepATest { @@ -30,29 +34,15 @@ public class auto_check_sbp_linux_MsgLinuxSysStateDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxSysStateDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 188, - (byte) 163, - (byte) 211, - (byte) 194, - (byte) 115, - (byte) 71, - (byte) 101, - (byte) 103, - (byte) 124, - (byte) 201, - }; - SBPMessage sbp = new SBPMessage(0x3854, 0x7f02, payload); - MsgLinuxSysStateDepA msg = new MsgLinuxSysStateDepA(sbp); + byte[] payload = new byte[] {(byte)188,(byte)163,(byte)211,(byte)194,(byte)115,(byte)71,(byte)101,(byte)103,(byte)124,(byte)201, }; + SBPMessage sbp = new SBPMessage( 0x3854, 0x7f02, payload ); + MsgLinuxSysStateDepA msg = new MsgLinuxSysStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.mem_total; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mem_total + "' != '" + 41916 + "'", - value.equals(BigInteger.valueOf(41916L))); + org.junit.Assert.assertTrue("'" + msg.mem_total + "' != '" + 41916 + "'", value.equals(BigInteger.valueOf( 41916L ) ) ); } else { value = value.longValue(); expected = 41916L; @@ -60,8 +50,7 @@ public void test1() throws Throwable { } value = msg.pcpu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pcpu + "' != '" + 211 + "'", value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.pcpu + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -69,9 +58,7 @@ public void test1() throws Throwable { } value = msg.pid_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pid_count + "' != '" + 51580 + "'", - value.equals(BigInteger.valueOf(51580L))); + org.junit.Assert.assertTrue("'" + msg.pid_count + "' != '" + 51580 + "'", value.equals(BigInteger.valueOf( 51580L ) ) ); } else { value = value.longValue(); expected = 51580L; @@ -79,8 +66,7 @@ public void test1() throws Throwable { } value = msg.pmem; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pmem + "' != '" + 194 + "'", value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.pmem + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -88,9 +74,7 @@ public void test1() throws Throwable { } value = msg.procs_starting; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.procs_starting + "' != '" + 18291 + "'", - value.equals(BigInteger.valueOf(18291L))); + org.junit.Assert.assertTrue("'" + msg.procs_starting + "' != '" + 18291 + "'", value.equals(BigInteger.valueOf( 18291L ) ) ); } else { value = value.longValue(); expected = 18291L; @@ -98,9 +82,7 @@ public void test1() throws Throwable { } value = msg.procs_stopping; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.procs_stopping + "' != '" + 26469 + "'", - value.equals(BigInteger.valueOf(26469L))); + org.junit.Assert.assertTrue("'" + msg.procs_stopping + "' != '" + 26469 + "'", value.equals(BigInteger.valueOf( 26469L ) ) ); } else { value = value.longValue(); expected = 26469L; diff --git a/java/test/auto_check_sbp_linux_MsgLinuxSysStateTest.java b/java/test/auto_check_sbp_linux_MsgLinuxSysStateTest.java index f8bcfe0bff..5d72e977b1 100644 --- a/java/test/auto_check_sbp_linux_MsgLinuxSysStateTest.java +++ b/java/test/auto_check_sbp_linux_MsgLinuxSysStateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSysState.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/linux/test_MsgLinuxSysState.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.linux.MsgLinuxSysState; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_linux_MsgLinuxSysStateTest { @@ -27,22 +32,17 @@ public class auto_check_sbp_linux_MsgLinuxSysStateTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxSysStateTest.test1"); - byte[] payload = - new byte[] { - (byte) 20, (byte) 207, (byte) 125, (byte) 215, (byte) 196, (byte) 71, - (byte) 161, (byte) 229, (byte) 250, (byte) 186, (byte) 108, (byte) 30, - (byte) 106, (byte) 5, (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0xa755, 0x7f0a, payload); - MsgLinuxSysState msg = new MsgLinuxSysState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_linux_MsgLinuxSysStateTest.test1"); + byte[] payload = new byte[] {(byte)20,(byte)207,(byte)125,(byte)215,(byte)196,(byte)71,(byte)161,(byte)229,(byte)250,(byte)186,(byte)108,(byte)30,(byte)106,(byte)5,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0xa755, 0x7f0a, payload ); + MsgLinuxSysState msg = new MsgLinuxSysState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -50,9 +50,7 @@ public void test1() throws Throwable { } value = msg.mem_total; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mem_total + "' != '" + 53012 + "'", - value.equals(BigInteger.valueOf(53012L))); + org.junit.Assert.assertTrue("'" + msg.mem_total + "' != '" + 53012 + "'", value.equals(BigInteger.valueOf( 53012L ) ) ); } else { value = value.longValue(); expected = 53012L; @@ -60,8 +58,7 @@ public void test1() throws Throwable { } value = msg.pcpu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pcpu + "' != '" + 125 + "'", value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.pcpu + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -69,9 +66,7 @@ public void test1() throws Throwable { } value = msg.pid_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pid_count + "' != '" + 47866 + "'", - value.equals(BigInteger.valueOf(47866L))); + org.junit.Assert.assertTrue("'" + msg.pid_count + "' != '" + 47866 + "'", value.equals(BigInteger.valueOf( 47866L ) ) ); } else { value = value.longValue(); expected = 47866L; @@ -79,8 +74,7 @@ public void test1() throws Throwable { } value = msg.pmem; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pmem + "' != '" + 215 + "'", value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.pmem + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -88,9 +82,7 @@ public void test1() throws Throwable { } value = msg.procs_starting; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.procs_starting + "' != '" + 18372 + "'", - value.equals(BigInteger.valueOf(18372L))); + org.junit.Assert.assertTrue("'" + msg.procs_starting + "' != '" + 18372 + "'", value.equals(BigInteger.valueOf( 18372L ) ) ); } else { value = value.longValue(); expected = 18372L; @@ -98,9 +90,7 @@ public void test1() throws Throwable { } value = msg.procs_stopping; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.procs_stopping + "' != '" + 58785 + "'", - value.equals(BigInteger.valueOf(58785L))); + org.junit.Assert.assertTrue("'" + msg.procs_stopping + "' != '" + 58785 + "'", value.equals(BigInteger.valueOf( 58785L ) ) ); } else { value = value.longValue(); expected = 58785L; @@ -108,9 +98,7 @@ public void test1() throws Throwable { } value = msg.time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time + "' != '" + 90840684 + "'", - value.equals(BigInteger.valueOf(90840684L))); + org.junit.Assert.assertTrue("'" + msg.time + "' != '" + 90840684 + "'", value.equals(BigInteger.valueOf( 90840684L ) ) ); } else { value = value.longValue(); expected = 90840684L; diff --git a/java/test/auto_check_sbp_logging_MsgFwdTest.java b/java/test/auto_check_sbp_logging_MsgFwdTest.java index bef711e509..dadf2494a9 100644 --- a/java/test/auto_check_sbp_logging_MsgFwdTest.java +++ b/java/test/auto_check_sbp_logging_MsgFwdTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgFwd.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgFwd.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.logging.MsgFwd; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_logging_MsgFwdTest { @@ -27,23 +32,17 @@ public class auto_check_sbp_logging_MsgFwdTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgFwdTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 86, (byte) 81, (byte) 68, (byte) 47, (byte) 81, - (byte) 103, (byte) 65, (byte) 69, (byte) 65, (byte) 65, (byte) 65, (byte) 65, - (byte) 65, (byte) 69, (byte) 97, (byte) 103, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x402, payload); - MsgFwd msg = new MsgFwd(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgFwdTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)86,(byte)81,(byte)68,(byte)47,(byte)81,(byte)103,(byte)65,(byte)69,(byte)65,(byte)65,(byte)65,(byte)65,(byte)65,(byte)69,(byte)97,(byte)103, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x402, payload ); + MsgFwd msg = new MsgFwd( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.fwd_payload[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[0] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[0] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -51,9 +50,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[1] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[1] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -61,9 +58,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[2] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[2] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -71,9 +66,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[3] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[3] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -81,9 +74,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[4] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[4] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -91,9 +82,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[5] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[5] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -101,9 +90,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[6] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[6] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -111,9 +98,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[7] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[7] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -121,9 +106,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[8] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[8] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -131,9 +114,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[9] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[9] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -141,9 +122,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[10] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[10] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -151,9 +130,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[11] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[11] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -161,9 +138,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[12] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[12] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -171,9 +146,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[13] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[13] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -181,9 +154,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[14] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[14] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -191,9 +162,7 @@ public void test1() throws Throwable { } value = msg.fwd_payload[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fwd_payload[15] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.fwd_payload[15] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -201,8 +170,7 @@ public void test1() throws Throwable { } value = msg.protocol; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.protocol + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.protocol + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -210,8 +178,7 @@ public void test1() throws Throwable { } value = msg.source; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.source + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.source + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_logging_MsgLogTest.java b/java/test/auto_check_sbp_logging_MsgLogTest.java index 40588a118e..f617de42c3 100644 --- a/java/test/auto_check_sbp_logging_MsgLogTest.java +++ b/java/test/auto_check_sbp_logging_MsgLogTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgLog.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgLog.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.logging.MsgLog; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_logging_MsgLogTest { @@ -27,69 +32,23 @@ public class auto_check_sbp_logging_MsgLogTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgLogTest.test1"); - byte[] payload = - new byte[] { - (byte) 6, - (byte) 70, - (byte) 105, - (byte) 108, - (byte) 116, - (byte) 101, - (byte) 114, - (byte) 101, - (byte) 100, - (byte) 32, - (byte) 97, - (byte) 108, - (byte) 108, - (byte) 32, - (byte) 111, - (byte) 98, - (byte) 115, - (byte) 32, - (byte) 102, - (byte) 114, - (byte) 111, - (byte) 109, - (byte) 32, - (byte) 50, - (byte) 51, - (byte) 49, - (byte) 52, - (byte) 32, - (byte) 97, - (byte) 116, - (byte) 32, - (byte) 116, - (byte) 111, - (byte) 119, - (byte) 32, - (byte) 56, - (byte) 51, - (byte) 46, - (byte) 53, - (byte) 51, - (byte) 57, - (byte) 48, - (byte) 49, - (byte) 57, - }; - SBPMessage sbp = new SBPMessage(0x90a, 0x0401, payload); - MsgLog msg = new MsgLog(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgLogTest.test1"); + byte[] payload = new byte[] {(byte)6,(byte)70,(byte)105,(byte)108,(byte)116,(byte)101,(byte)114,(byte)101,(byte)100,(byte)32,(byte)97,(byte)108,(byte)108,(byte)32,(byte)111,(byte)98,(byte)115,(byte)32,(byte)102,(byte)114,(byte)111,(byte)109,(byte)32,(byte)50,(byte)51,(byte)49,(byte)52,(byte)32,(byte)97,(byte)116,(byte)32,(byte)116,(byte)111,(byte)119,(byte)32,(byte)56,(byte)51,(byte)46,(byte)53,(byte)51,(byte)57,(byte)48,(byte)49,(byte)57, }; + SBPMessage sbp = new SBPMessage( 0x90a, 0x0401, payload ); + MsgLog msg = new MsgLog( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.level + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.level + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; org.junit.Assert.assertEquals(value, expected); } - org.junit.Assert.assertEquals(msg.text, "Filtered all obs from 2314 at tow 83.539019"); + org.junit.Assert.assertEquals(msg.text, "Filtered all obs from 2314 at tow 83.539019" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } diff --git a/java/test/auto_check_sbp_logging_MsgPrintDepTest.java b/java/test/auto_check_sbp_logging_MsgPrintDepTest.java index a7ac8ed413..b860e28959 100644 --- a/java/test/auto_check_sbp_logging_MsgPrintDepTest.java +++ b/java/test/auto_check_sbp_logging_MsgPrintDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgPrintDep.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/logging/test_MsgPrintDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.logging.MsgPrintDep; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_logging_MsgPrintDepTest { @@ -26,191 +32,90 @@ public class auto_check_sbp_logging_MsgPrintDepTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 73, (byte) 78, (byte) 70, (byte) 79, (byte) 58, (byte) 32, (byte) 97, - (byte) 99, (byte) 113, (byte) 58, (byte) 32, (byte) 80, (byte) 82, (byte) 78, - (byte) 32, (byte) 49, (byte) 53, (byte) 32, (byte) 102, (byte) 111, (byte) 117, - (byte) 110, (byte) 100, (byte) 32, (byte) 64, (byte) 32, (byte) 45, (byte) 50, - (byte) 52, (byte) 57, (byte) 55, (byte) 32, (byte) 72, (byte) 122, (byte) 44, - (byte) 32, (byte) 50, (byte) 48, (byte) 32, (byte) 83, (byte) 78, (byte) 82, - (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test1"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)97,(byte)99,(byte)113,(byte)58,(byte)32,(byte)80,(byte)82,(byte)78,(byte)32,(byte)49,(byte)53,(byte)32,(byte)102,(byte)111,(byte)117,(byte)110,(byte)100,(byte)32,(byte)64,(byte)32,(byte)45,(byte)50,(byte)52,(byte)57,(byte)55,(byte)32,(byte)72,(byte)122,(byte)44,(byte)32,(byte)50,(byte)48,(byte)32,(byte)83,(byte)78,(byte)82,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test2"); - byte[] payload = - new byte[] { - (byte) 73, (byte) 78, (byte) 70, (byte) 79, (byte) 58, (byte) 32, (byte) 97, - (byte) 99, (byte) 113, (byte) 58, (byte) 32, (byte) 80, (byte) 82, (byte) 78, - (byte) 32, (byte) 51, (byte) 49, (byte) 32, (byte) 102, (byte) 111, (byte) 117, - (byte) 110, (byte) 100, (byte) 32, (byte) 64, (byte) 32, (byte) 52, (byte) 50, - (byte) 52, (byte) 53, (byte) 32, (byte) 72, (byte) 122, (byte) 44, (byte) 32, - (byte) 50, (byte) 49, (byte) 32, (byte) 83, (byte) 78, (byte) 82, (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test2"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)97,(byte)99,(byte)113,(byte)58,(byte)32,(byte)80,(byte)82,(byte)78,(byte)32,(byte)51,(byte)49,(byte)32,(byte)102,(byte)111,(byte)117,(byte)110,(byte)100,(byte)32,(byte)64,(byte)32,(byte)52,(byte)50,(byte)52,(byte)53,(byte)32,(byte)72,(byte)122,(byte)44,(byte)32,(byte)50,(byte)49,(byte)32,(byte)83,(byte)78,(byte)82,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test3"); - byte[] payload = - new byte[] { - (byte) 73, - (byte) 78, - (byte) 70, - (byte) 79, - (byte) 58, - (byte) 32, - (byte) 68, - (byte) 105, - (byte) 115, - (byte) 97, - (byte) 98, - (byte) 108, - (byte) 105, - (byte) 110, - (byte) 103, - (byte) 32, - (byte) 99, - (byte) 104, - (byte) 97, - (byte) 110, - (byte) 110, - (byte) 101, - (byte) 108, - (byte) 32, - (byte) 48, - (byte) 32, - (byte) 40, - (byte) 80, - (byte) 82, - (byte) 78, - (byte) 32, - (byte) 49, - (byte) 49, - (byte) 41, - (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test3"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)68,(byte)105,(byte)115,(byte)97,(byte)98,(byte)108,(byte)105,(byte)110,(byte)103,(byte)32,(byte)99,(byte)104,(byte)97,(byte)110,(byte)110,(byte)101,(byte)108,(byte)32,(byte)48,(byte)32,(byte)40,(byte)80,(byte)82,(byte)78,(byte)32,(byte)49,(byte)49,(byte)41,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: Disabling channel 0 (PRN 11)\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: Disabling channel 0 (PRN 11)\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test4"); - byte[] payload = - new byte[] { - (byte) 73, (byte) 78, (byte) 70, (byte) 79, (byte) 58, (byte) 32, (byte) 97, - (byte) 99, (byte) 113, (byte) 58, (byte) 32, (byte) 80, (byte) 82, (byte) 78, - (byte) 32, (byte) 50, (byte) 32, (byte) 102, (byte) 111, (byte) 117, (byte) 110, - (byte) 100, (byte) 32, (byte) 64, (byte) 32, (byte) 51, (byte) 57, (byte) 57, - (byte) 54, (byte) 32, (byte) 72, (byte) 122, (byte) 44, (byte) 32, (byte) 50, - (byte) 48, (byte) 32, (byte) 83, (byte) 78, (byte) 82, (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test4"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)97,(byte)99,(byte)113,(byte)58,(byte)32,(byte)80,(byte)82,(byte)78,(byte)32,(byte)50,(byte)32,(byte)102,(byte)111,(byte)117,(byte)110,(byte)100,(byte)32,(byte)64,(byte)32,(byte)51,(byte)57,(byte)57,(byte)54,(byte)32,(byte)72,(byte)122,(byte)44,(byte)32,(byte)50,(byte)48,(byte)32,(byte)83,(byte)78,(byte)82,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test5"); - byte[] payload = - new byte[] { - (byte) 73, (byte) 78, (byte) 70, (byte) 79, (byte) 58, (byte) 32, (byte) 97, - (byte) 99, (byte) 113, (byte) 58, (byte) 32, (byte) 80, (byte) 82, (byte) 78, - (byte) 32, (byte) 52, (byte) 32, (byte) 102, (byte) 111, (byte) 117, (byte) 110, - (byte) 100, (byte) 32, (byte) 64, (byte) 32, (byte) 45, (byte) 55, (byte) 52, - (byte) 57, (byte) 50, (byte) 32, (byte) 72, (byte) 122, (byte) 44, (byte) 32, - (byte) 50, (byte) 48, (byte) 32, (byte) 83, (byte) 78, (byte) 82, (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test5"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)97,(byte)99,(byte)113,(byte)58,(byte)32,(byte)80,(byte)82,(byte)78,(byte)32,(byte)52,(byte)32,(byte)102,(byte)111,(byte)117,(byte)110,(byte)100,(byte)32,(byte)64,(byte)32,(byte)45,(byte)55,(byte)52,(byte)57,(byte)50,(byte)32,(byte)72,(byte)122,(byte)44,(byte)32,(byte)50,(byte)48,(byte)32,(byte)83,(byte)78,(byte)82,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test6"); - byte[] payload = - new byte[] { - (byte) 73, - (byte) 78, - (byte) 70, - (byte) 79, - (byte) 58, - (byte) 32, - (byte) 68, - (byte) 105, - (byte) 115, - (byte) 97, - (byte) 98, - (byte) 108, - (byte) 105, - (byte) 110, - (byte) 103, - (byte) 32, - (byte) 99, - (byte) 104, - (byte) 97, - (byte) 110, - (byte) 110, - (byte) 101, - (byte) 108, - (byte) 32, - (byte) 49, - (byte) 32, - (byte) 40, - (byte) 80, - (byte) 82, - (byte) 78, - (byte) 32, - (byte) 49, - (byte) 53, - (byte) 41, - (byte) 10, - }; - SBPMessage sbp = new SBPMessage(0x2222, 0x10, payload); - MsgPrintDep msg = new MsgPrintDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_logging_MsgPrintDepTest.test6"); + byte[] payload = new byte[] {(byte)73,(byte)78,(byte)70,(byte)79,(byte)58,(byte)32,(byte)68,(byte)105,(byte)115,(byte)97,(byte)98,(byte)108,(byte)105,(byte)110,(byte)103,(byte)32,(byte)99,(byte)104,(byte)97,(byte)110,(byte)110,(byte)101,(byte)108,(byte)32,(byte)49,(byte)32,(byte)40,(byte)80,(byte)82,(byte)78,(byte)32,(byte)49,(byte)53,(byte)41,(byte)10, }; + SBPMessage sbp = new SBPMessage( 0x2222, 0x10, payload ); + MsgPrintDep msg = new MsgPrintDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.text, "INFO: Disabling channel 1 (PRN 15)\n"); + org.junit.Assert.assertEquals(msg.text, "INFO: Disabling channel 1 (PRN 15)\n" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } diff --git a/java/test/auto_check_sbp_mag_MsgMagRawTest.java b/java/test/auto_check_sbp_mag_MsgMagRawTest.java index 1fa747878e..42e46195cc 100644 --- a/java/test/auto_check_sbp_mag_MsgMagRawTest.java +++ b/java/test/auto_check_sbp_mag_MsgMagRawTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/mag/test_MsgMagRaw.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/mag/test_MsgMagRaw.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.mag.MsgMagRaw; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_mag_MsgMagRawTest { @@ -27,30 +32,17 @@ public class auto_check_sbp_mag_MsgMagRawTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_mag_MsgMagRawTest.test1"); - byte[] payload = - new byte[] { - (byte) 173, - (byte) 227, - (byte) 158, - (byte) 198, - (byte) 206, - (byte) 98, - (byte) 3, - (byte) 230, - (byte) 2, - (byte) 110, - (byte) 229, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x902, payload); - MsgMagRaw msg = new MsgMagRaw(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_mag_MsgMagRawTest.test1"); + byte[] payload = new byte[] {(byte)173,(byte)227,(byte)158,(byte)198,(byte)206,(byte)98,(byte)3,(byte)230,(byte)2,(byte)110,(byte)229, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x902, payload ); + MsgMagRaw msg = new MsgMagRaw( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.mag_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mag_x + "' != '" + 866 + "'", value.equals(BigInteger.valueOf(866L))); + org.junit.Assert.assertTrue("'" + msg.mag_x + "' != '" + 866 + "'", value.equals(BigInteger.valueOf( 866L ) ) ); } else { value = value.longValue(); expected = 866L; @@ -58,8 +50,7 @@ public void test1() throws Throwable { } value = msg.mag_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mag_y + "' != '" + 742 + "'", value.equals(BigInteger.valueOf(742L))); + org.junit.Assert.assertTrue("'" + msg.mag_y + "' != '" + 742 + "'", value.equals(BigInteger.valueOf( 742L ) ) ); } else { value = value.longValue(); expected = 742L; @@ -67,9 +58,7 @@ public void test1() throws Throwable { } value = msg.mag_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mag_z + "' != '" + -6802 + "'", - value.equals(BigInteger.valueOf(-6802L))); + org.junit.Assert.assertTrue("'" + msg.mag_z + "' != '" + -6802 + "'", value.equals(BigInteger.valueOf( -6802L ) ) ); } else { value = value.longValue(); expected = -6802L; @@ -77,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 3332301741L + "'", - value.equals(new BigInteger("3332301741"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 3332301741L + "'", value.equals( new BigInteger( "3332301741" ) ) ); } else { value = value.longValue(); expected = 3332301741L; @@ -87,8 +74,7 @@ public void test1() throws Throwable { } value = msg.tow_f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_f + "' != '" + 206 + "'", value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.tow_f + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; diff --git a/java/test/auto_check_sbp_navigation_MsgAgeCorrectionsTest.java b/java/test/auto_check_sbp_navigation_MsgAgeCorrectionsTest.java index 9e1a6d7577..afc314d374 100644 --- a/java/test/auto_check_sbp_navigation_MsgAgeCorrectionsTest.java +++ b/java/test/auto_check_sbp_navigation_MsgAgeCorrectionsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgAgeCorrections.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgAgeCorrections.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgAgeCorrections; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgAgeCorrectionsTest { @@ -30,19 +34,15 @@ public class auto_check_sbp_navigation_MsgAgeCorrectionsTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgAgeCorrectionsTest.test1"); - byte[] payload = - new byte[] { - (byte) 100, (byte) 0, (byte) 0, (byte) 0, (byte) 30, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x210, payload); - MsgAgeCorrections msg = new MsgAgeCorrections(sbp); + byte[] payload = new byte[] {(byte)100,(byte)0,(byte)0,(byte)0,(byte)30,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x210, payload ); + MsgAgeCorrections msg = new MsgAgeCorrections( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.age; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.age + "' != '" + 30 + "'", value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.age + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -50,8 +50,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_navigation_MsgBaselineECEFDepATest.java b/java/test/auto_check_sbp_navigation_MsgBaselineECEFDepATest.java index cc8e347570..bc9a07ed9e 100644 --- a/java/test/auto_check_sbp_navigation_MsgBaselineECEFDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgBaselineECEFDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineECEFDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineECEFDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgBaselineECEFDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgBaselineECEFDepATest { @@ -30,38 +34,15 @@ public class auto_check_sbp_navigation_MsgBaselineECEFDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 21, - (byte) 48, - (byte) 255, - (byte) 255, - (byte) 52, - (byte) 117, - (byte) 255, - (byte) 255, - (byte) 216, - (byte) 211, - (byte) 254, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)21,(byte)48,(byte)255,(byte)255,(byte)52,(byte)117,(byte)255,(byte)255,(byte)216,(byte)211,(byte)254,(byte)255,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -69,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -78,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -97,9 +74,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -53227 + "'", - value.equals(BigInteger.valueOf(-53227L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -53227 + "'", value.equals(BigInteger.valueOf( -53227L ) ) ); } else { value = value.longValue(); expected = -53227L; @@ -107,9 +82,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -35532 + "'", - value.equals(BigInteger.valueOf(-35532L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -35532 + "'", value.equals(BigInteger.valueOf( -35532L ) ) ); } else { value = value.longValue(); expected = -35532L; @@ -117,9 +90,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -76840 + "'", - value.equals(BigInteger.valueOf(-76840L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -76840 + "'", value.equals(BigInteger.valueOf( -76840L ) ) ); } else { value = value.longValue(); expected = -76840L; @@ -133,38 +104,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 58, - (byte) 49, - (byte) 255, - (byte) 255, - (byte) 49, - (byte) 116, - (byte) 255, - (byte) 255, - (byte) 134, - (byte) 211, - (byte) 254, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)58,(byte)49,(byte)255,(byte)255,(byte)49,(byte)116,(byte)255,(byte)255,(byte)134,(byte)211,(byte)254,(byte)255,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -172,8 +120,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -181,8 +128,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -190,9 +136,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -200,9 +144,7 @@ public void test2() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -52934 + "'", - value.equals(BigInteger.valueOf(-52934L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -52934 + "'", value.equals(BigInteger.valueOf( -52934L ) ) ); } else { value = value.longValue(); expected = -52934L; @@ -210,9 +152,7 @@ public void test2() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -35791 + "'", - value.equals(BigInteger.valueOf(-35791L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -35791 + "'", value.equals(BigInteger.valueOf( -35791L ) ) ); } else { value = value.longValue(); expected = -35791L; @@ -220,9 +160,7 @@ public void test2() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -76922 + "'", - value.equals(BigInteger.valueOf(-76922L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -76922 + "'", value.equals(BigInteger.valueOf( -76922L ) ) ); } else { value = value.longValue(); expected = -76922L; @@ -236,38 +174,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 220, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 97, - (byte) 50, - (byte) 255, - (byte) 255, - (byte) 47, - (byte) 115, - (byte) 255, - (byte) 255, - (byte) 52, - (byte) 211, - (byte) 254, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)97,(byte)50,(byte)255,(byte)255,(byte)47,(byte)115,(byte)255,(byte)255,(byte)52,(byte)211,(byte)254,(byte)255,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -275,8 +190,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -284,8 +198,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -293,9 +206,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -303,9 +214,7 @@ public void test3() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -52639 + "'", - value.equals(BigInteger.valueOf(-52639L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -52639 + "'", value.equals(BigInteger.valueOf( -52639L ) ) ); } else { value = value.longValue(); expected = -52639L; @@ -313,9 +222,7 @@ public void test3() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -36049 + "'", - value.equals(BigInteger.valueOf(-36049L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -36049 + "'", value.equals(BigInteger.valueOf( -36049L ) ) ); } else { value = value.longValue(); expected = -36049L; @@ -323,9 +230,7 @@ public void test3() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -77004 + "'", - value.equals(BigInteger.valueOf(-77004L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -77004 + "'", value.equals(BigInteger.valueOf( -77004L ) ) ); } else { value = value.longValue(); expected = -77004L; @@ -339,38 +244,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 64, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 136, - (byte) 51, - (byte) 255, - (byte) 255, - (byte) 45, - (byte) 114, - (byte) 255, - (byte) 255, - (byte) 228, - (byte) 210, - (byte) 254, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)136,(byte)51,(byte)255,(byte)255,(byte)45,(byte)114,(byte)255,(byte)255,(byte)228,(byte)210,(byte)254,(byte)255,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -378,8 +260,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -387,8 +268,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -396,9 +276,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -406,9 +284,7 @@ public void test4() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -52344 + "'", - value.equals(BigInteger.valueOf(-52344L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -52344 + "'", value.equals(BigInteger.valueOf( -52344L ) ) ); } else { value = value.longValue(); expected = -52344L; @@ -416,9 +292,7 @@ public void test4() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -36307 + "'", - value.equals(BigInteger.valueOf(-36307L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -36307 + "'", value.equals(BigInteger.valueOf( -36307L ) ) ); } else { value = value.longValue(); expected = -36307L; @@ -426,9 +300,7 @@ public void test4() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -77084 + "'", - value.equals(BigInteger.valueOf(-77084L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -77084 + "'", value.equals(BigInteger.valueOf( -77084L ) ) ); } else { value = value.longValue(); expected = -77084L; @@ -442,38 +314,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 164, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 176, - (byte) 52, - (byte) 255, - (byte) 255, - (byte) 44, - (byte) 113, - (byte) 255, - (byte) 255, - (byte) 149, - (byte) 210, - (byte) 254, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)164,(byte)47,(byte)39,(byte)0,(byte)176,(byte)52,(byte)255,(byte)255,(byte)44,(byte)113,(byte)255,(byte)255,(byte)149,(byte)210,(byte)254,(byte)255,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -481,8 +330,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -490,8 +338,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -499,9 +346,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568100 + "'", - value.equals(BigInteger.valueOf(2568100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568100 + "'", value.equals(BigInteger.valueOf( 2568100L ) ) ); } else { value = value.longValue(); expected = 2568100L; @@ -509,9 +354,7 @@ public void test5() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -52048 + "'", - value.equals(BigInteger.valueOf(-52048L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -52048 + "'", value.equals(BigInteger.valueOf( -52048L ) ) ); } else { value = value.longValue(); expected = -52048L; @@ -519,9 +362,7 @@ public void test5() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -36564 + "'", - value.equals(BigInteger.valueOf(-36564L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -36564 + "'", value.equals(BigInteger.valueOf( -36564L ) ) ); } else { value = value.longValue(); expected = -36564L; @@ -529,9 +370,7 @@ public void test5() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -77163 + "'", - value.equals(BigInteger.valueOf(-77163L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -77163 + "'", value.equals(BigInteger.valueOf( -77163L ) ) ); } else { value = value.longValue(); expected = -77163L; @@ -545,38 +384,15 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 21, - (byte) 69, - (byte) 24, - (byte) 169, - (byte) 231, - (byte) 255, - (byte) 255, - (byte) 102, - (byte) 208, - (byte) 255, - (byte) 255, - (byte) 251, - (byte) 28, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)156,(byte)21,(byte)69,(byte)24,(byte)169,(byte)231,(byte)255,(byte)255,(byte)102,(byte)208,(byte)255,(byte)255,(byte)251,(byte)28,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -584,8 +400,7 @@ public void test6() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -593,8 +408,7 @@ public void test6() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -602,9 +416,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180700 + "'", - value.equals(BigInteger.valueOf(407180700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180700 + "'", value.equals(BigInteger.valueOf( 407180700L ) ) ); } else { value = value.longValue(); expected = 407180700L; @@ -612,8 +424,7 @@ public void test6() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -6231 + "'", value.equals(BigInteger.valueOf(-6231L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -6231 + "'", value.equals(BigInteger.valueOf( -6231L ) ) ); } else { value = value.longValue(); expected = -6231L; @@ -621,9 +432,7 @@ public void test6() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -12186 + "'", - value.equals(BigInteger.valueOf(-12186L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -12186 + "'", value.equals(BigInteger.valueOf( -12186L ) ) ); } else { value = value.longValue(); expected = -12186L; @@ -631,8 +440,7 @@ public void test6() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 7419 + "'", value.equals(BigInteger.valueOf(7419L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 7419 + "'", value.equals(BigInteger.valueOf( 7419L ) ) ); } else { value = value.longValue(); expected = 7419L; @@ -646,38 +454,15 @@ public void test6() throws Throwable { public void test7() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 22, - (byte) 69, - (byte) 24, - (byte) 169, - (byte) 231, - (byte) 255, - (byte) 255, - (byte) 103, - (byte) 208, - (byte) 255, - (byte) 255, - (byte) 252, - (byte) 28, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)22,(byte)69,(byte)24,(byte)169,(byte)231,(byte)255,(byte)255,(byte)103,(byte)208,(byte)255,(byte)255,(byte)252,(byte)28,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -685,8 +470,7 @@ public void test7() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -694,8 +478,7 @@ public void test7() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -703,9 +486,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180800 + "'", - value.equals(BigInteger.valueOf(407180800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180800 + "'", value.equals(BigInteger.valueOf( 407180800L ) ) ); } else { value = value.longValue(); expected = 407180800L; @@ -713,8 +494,7 @@ public void test7() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -6231 + "'", value.equals(BigInteger.valueOf(-6231L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -6231 + "'", value.equals(BigInteger.valueOf( -6231L ) ) ); } else { value = value.longValue(); expected = -6231L; @@ -722,9 +502,7 @@ public void test7() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -12185 + "'", - value.equals(BigInteger.valueOf(-12185L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -12185 + "'", value.equals(BigInteger.valueOf( -12185L ) ) ); } else { value = value.longValue(); expected = -12185L; @@ -732,8 +510,7 @@ public void test7() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 7420 + "'", value.equals(BigInteger.valueOf(7420L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 7420 + "'", value.equals(BigInteger.valueOf( 7420L ) ) ); } else { value = value.longValue(); expected = 7420L; @@ -747,38 +524,15 @@ public void test7() throws Throwable { public void test8() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 22, - (byte) 69, - (byte) 24, - (byte) 30, - (byte) 224, - (byte) 255, - (byte) 255, - (byte) 192, - (byte) 183, - (byte) 255, - (byte) 255, - (byte) 239, - (byte) 53, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)22,(byte)69,(byte)24,(byte)30,(byte)224,(byte)255,(byte)255,(byte)192,(byte)183,(byte)255,(byte)255,(byte)239,(byte)53,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -786,8 +540,7 @@ public void test8() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -795,8 +548,7 @@ public void test8() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -804,9 +556,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180900 + "'", - value.equals(BigInteger.valueOf(407180900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180900 + "'", value.equals(BigInteger.valueOf( 407180900L ) ) ); } else { value = value.longValue(); expected = 407180900L; @@ -814,8 +564,7 @@ public void test8() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -8162 + "'", value.equals(BigInteger.valueOf(-8162L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -8162 + "'", value.equals(BigInteger.valueOf( -8162L ) ) ); } else { value = value.longValue(); expected = -8162L; @@ -823,9 +572,7 @@ public void test8() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -18496 + "'", - value.equals(BigInteger.valueOf(-18496L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -18496 + "'", value.equals(BigInteger.valueOf( -18496L ) ) ); } else { value = value.longValue(); expected = -18496L; @@ -833,8 +580,7 @@ public void test8() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 13807 + "'", value.equals(BigInteger.valueOf(13807L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 13807 + "'", value.equals(BigInteger.valueOf( 13807L ) ) ); } else { value = value.longValue(); expected = 13807L; @@ -848,38 +594,15 @@ public void test8() throws Throwable { public void test9() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 200, - (byte) 22, - (byte) 69, - (byte) 24, - (byte) 28, - (byte) 224, - (byte) 255, - (byte) 255, - (byte) 191, - (byte) 183, - (byte) 255, - (byte) 255, - (byte) 242, - (byte) 53, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)200,(byte)22,(byte)69,(byte)24,(byte)28,(byte)224,(byte)255,(byte)255,(byte)191,(byte)183,(byte)255,(byte)255,(byte)242,(byte)53,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -887,8 +610,7 @@ public void test9() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -896,8 +618,7 @@ public void test9() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -905,9 +626,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181000 + "'", - value.equals(BigInteger.valueOf(407181000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181000 + "'", value.equals(BigInteger.valueOf( 407181000L ) ) ); } else { value = value.longValue(); expected = 407181000L; @@ -915,8 +634,7 @@ public void test9() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -8164 + "'", value.equals(BigInteger.valueOf(-8164L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -8164 + "'", value.equals(BigInteger.valueOf( -8164L ) ) ); } else { value = value.longValue(); expected = -8164L; @@ -924,9 +642,7 @@ public void test9() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -18497 + "'", - value.equals(BigInteger.valueOf(-18497L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -18497 + "'", value.equals(BigInteger.valueOf( -18497L ) ) ); } else { value = value.longValue(); expected = -18497L; @@ -934,8 +650,7 @@ public void test9() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 13810 + "'", value.equals(BigInteger.valueOf(13810L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 13810 + "'", value.equals(BigInteger.valueOf( 13810L ) ) ); } else { value = value.longValue(); expected = 13810L; @@ -949,38 +664,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 44, - (byte) 23, - (byte) 69, - (byte) 24, - (byte) 24, - (byte) 227, - (byte) 255, - (byte) 255, - (byte) 25, - (byte) 195, - (byte) 255, - (byte) 255, - (byte) 153, - (byte) 59, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)44,(byte)23,(byte)69,(byte)24,(byte)24,(byte)227,(byte)255,(byte)255,(byte)25,(byte)195,(byte)255,(byte)255,(byte)153,(byte)59,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -988,8 +680,7 @@ public void test10() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -997,8 +688,7 @@ public void test10() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1006,9 +696,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181100 + "'", - value.equals(BigInteger.valueOf(407181100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181100 + "'", value.equals(BigInteger.valueOf( 407181100L ) ) ); } else { value = value.longValue(); expected = 407181100L; @@ -1016,8 +704,7 @@ public void test10() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -7400 + "'", value.equals(BigInteger.valueOf(-7400L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -7400 + "'", value.equals(BigInteger.valueOf( -7400L ) ) ); } else { value = value.longValue(); expected = -7400L; @@ -1025,9 +712,7 @@ public void test10() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -15591 + "'", - value.equals(BigInteger.valueOf(-15591L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -15591 + "'", value.equals(BigInteger.valueOf( -15591L ) ) ); } else { value = value.longValue(); expected = -15591L; @@ -1035,8 +720,7 @@ public void test10() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 15257 + "'", value.equals(BigInteger.valueOf(15257L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 15257 + "'", value.equals(BigInteger.valueOf( 15257L ) ) ); } else { value = value.longValue(); expected = 15257L; @@ -1050,38 +734,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 144, - (byte) 23, - (byte) 69, - (byte) 24, - (byte) 23, - (byte) 227, - (byte) 255, - (byte) 255, - (byte) 25, - (byte) 195, - (byte) 255, - (byte) 255, - (byte) 153, - (byte) 59, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x202, payload); - MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA(sbp); + byte[] payload = new byte[] {(byte)144,(byte)23,(byte)69,(byte)24,(byte)23,(byte)227,(byte)255,(byte)255,(byte)25,(byte)195,(byte)255,(byte)255,(byte)153,(byte)59,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x202, payload ); + MsgBaselineECEFDepA msg = new MsgBaselineECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1089,8 +750,7 @@ public void test11() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1098,8 +758,7 @@ public void test11() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1107,9 +766,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181200 + "'", - value.equals(BigInteger.valueOf(407181200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181200 + "'", value.equals(BigInteger.valueOf( 407181200L ) ) ); } else { value = value.longValue(); expected = 407181200L; @@ -1117,8 +774,7 @@ public void test11() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -7401 + "'", value.equals(BigInteger.valueOf(-7401L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -7401 + "'", value.equals(BigInteger.valueOf( -7401L ) ) ); } else { value = value.longValue(); expected = -7401L; @@ -1126,9 +782,7 @@ public void test11() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -15591 + "'", - value.equals(BigInteger.valueOf(-15591L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -15591 + "'", value.equals(BigInteger.valueOf( -15591L ) ) ); } else { value = value.longValue(); expected = -15591L; @@ -1136,8 +790,7 @@ public void test11() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 15257 + "'", value.equals(BigInteger.valueOf(15257L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 15257 + "'", value.equals(BigInteger.valueOf( 15257L ) ) ); } else { value = value.longValue(); expected = 15257L; diff --git a/java/test/auto_check_sbp_navigation_MsgBaselineECEFTest.java b/java/test/auto_check_sbp_navigation_MsgBaselineECEFTest.java index ed2be6e18a..244ee9cc95 100644 --- a/java/test/auto_check_sbp_navigation_MsgBaselineECEFTest.java +++ b/java/test/auto_check_sbp_navigation_MsgBaselineECEFTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineECEF.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineECEF.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgBaselineECEF; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgBaselineECEFTest { @@ -30,21 +34,15 @@ public class auto_check_sbp_navigation_MsgBaselineECEFTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFTest.test1"); - byte[] payload = - new byte[] { - (byte) 40, (byte) 244, (byte) 122, (byte) 19, (byte) 150, (byte) 98, (byte) 238, - (byte) 255, (byte) 190, (byte) 64, (byte) 20, (byte) 0, (byte) 246, (byte) 163, - (byte) 9, (byte) 0, (byte) 0, (byte) 0, (byte) 14, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20b, payload); - MsgBaselineECEF msg = new MsgBaselineECEF(sbp); + byte[] payload = new byte[] {(byte)40,(byte)244,(byte)122,(byte)19,(byte)150,(byte)98,(byte)238,(byte)255,(byte)190,(byte)64,(byte)20,(byte)0,(byte)246,(byte)163,(byte)9,(byte)0,(byte)0,(byte)0,(byte)14,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20b, payload ); + MsgBaselineECEF msg = new MsgBaselineECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -52,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -61,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -70,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -80,9 +74,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1154410 + "'", - value.equals(BigInteger.valueOf(-1154410L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1154410 + "'", value.equals(BigInteger.valueOf( -1154410L ) ) ); } else { value = value.longValue(); expected = -1154410L; @@ -90,9 +82,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1327294 + "'", - value.equals(BigInteger.valueOf(1327294L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1327294 + "'", value.equals(BigInteger.valueOf( 1327294L ) ) ); } else { value = value.longValue(); expected = 1327294L; @@ -100,9 +90,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 631798 + "'", - value.equals(BigInteger.valueOf(631798L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 631798 + "'", value.equals(BigInteger.valueOf( 631798L ) ) ); } else { value = value.longValue(); expected = 631798L; @@ -116,21 +104,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFTest.test2"); - byte[] payload = - new byte[] { - (byte) 16, (byte) 248, (byte) 122, (byte) 19, (byte) 72, (byte) 99, (byte) 238, - (byte) 255, (byte) 191, (byte) 65, (byte) 20, (byte) 0, (byte) 138, (byte) 162, - (byte) 9, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20b, payload); - MsgBaselineECEF msg = new MsgBaselineECEF(sbp); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)72,(byte)99,(byte)238,(byte)255,(byte)191,(byte)65,(byte)20,(byte)0,(byte)138,(byte)162,(byte)9,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20b, payload ); + MsgBaselineECEF msg = new MsgBaselineECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -138,8 +120,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -147,8 +128,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -156,9 +136,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -166,9 +144,7 @@ public void test2() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1154232 + "'", - value.equals(BigInteger.valueOf(-1154232L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1154232 + "'", value.equals(BigInteger.valueOf( -1154232L ) ) ); } else { value = value.longValue(); expected = -1154232L; @@ -176,9 +152,7 @@ public void test2() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1327551 + "'", - value.equals(BigInteger.valueOf(1327551L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1327551 + "'", value.equals(BigInteger.valueOf( 1327551L ) ) ); } else { value = value.longValue(); expected = 1327551L; @@ -186,9 +160,7 @@ public void test2() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 631434 + "'", - value.equals(BigInteger.valueOf(631434L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 631434 + "'", value.equals(BigInteger.valueOf( 631434L ) ) ); } else { value = value.longValue(); expected = 631434L; @@ -202,21 +174,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFTest.test3"); - byte[] payload = - new byte[] { - (byte) 248, (byte) 251, (byte) 122, (byte) 19, (byte) 41, (byte) 99, (byte) 238, - (byte) 255, (byte) 181, (byte) 65, (byte) 20, (byte) 0, (byte) 148, (byte) 161, - (byte) 9, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20b, payload); - MsgBaselineECEF msg = new MsgBaselineECEF(sbp); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)41,(byte)99,(byte)238,(byte)255,(byte)181,(byte)65,(byte)20,(byte)0,(byte)148,(byte)161,(byte)9,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20b, payload ); + MsgBaselineECEF msg = new MsgBaselineECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -224,8 +190,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -233,8 +198,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -242,9 +206,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -252,9 +214,7 @@ public void test3() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1154263 + "'", - value.equals(BigInteger.valueOf(-1154263L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1154263 + "'", value.equals(BigInteger.valueOf( -1154263L ) ) ); } else { value = value.longValue(); expected = -1154263L; @@ -262,9 +222,7 @@ public void test3() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1327541 + "'", - value.equals(BigInteger.valueOf(1327541L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1327541 + "'", value.equals(BigInteger.valueOf( 1327541L ) ) ); } else { value = value.longValue(); expected = 1327541L; @@ -272,9 +230,7 @@ public void test3() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 631188 + "'", - value.equals(BigInteger.valueOf(631188L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 631188 + "'", value.equals(BigInteger.valueOf( 631188L ) ) ); } else { value = value.longValue(); expected = 631188L; @@ -288,38 +244,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFTest.test4"); - byte[] payload = - new byte[] { - (byte) 224, - (byte) 255, - (byte) 122, - (byte) 19, - (byte) 188, - (byte) 97, - (byte) 238, - (byte) 255, - (byte) 81, - (byte) 64, - (byte) 20, - (byte) 0, - (byte) 65, - (byte) 160, - (byte) 9, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20b, payload); - MsgBaselineECEF msg = new MsgBaselineECEF(sbp); + byte[] payload = new byte[] {(byte)224,(byte)255,(byte)122,(byte)19,(byte)188,(byte)97,(byte)238,(byte)255,(byte)81,(byte)64,(byte)20,(byte)0,(byte)65,(byte)160,(byte)9,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20b, payload ); + MsgBaselineECEF msg = new MsgBaselineECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -327,8 +260,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -336,8 +268,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -345,9 +276,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326828000 + "'", - value.equals(BigInteger.valueOf(326828000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326828000 + "'", value.equals(BigInteger.valueOf( 326828000L ) ) ); } else { value = value.longValue(); expected = 326828000L; @@ -355,9 +284,7 @@ public void test4() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1154628 + "'", - value.equals(BigInteger.valueOf(-1154628L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1154628 + "'", value.equals(BigInteger.valueOf( -1154628L ) ) ); } else { value = value.longValue(); expected = -1154628L; @@ -365,9 +292,7 @@ public void test4() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1327185 + "'", - value.equals(BigInteger.valueOf(1327185L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1327185 + "'", value.equals(BigInteger.valueOf( 1327185L ) ) ); } else { value = value.longValue(); expected = 1327185L; @@ -375,9 +300,7 @@ public void test4() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 630849 + "'", - value.equals(BigInteger.valueOf(630849L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 630849 + "'", value.equals(BigInteger.valueOf( 630849L ) ) ); } else { value = value.longValue(); expected = 630849L; @@ -391,21 +314,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineECEFTest.test5"); - byte[] payload = - new byte[] { - (byte) 200, (byte) 3, (byte) 123, (byte) 19, (byte) 189, (byte) 96, (byte) 238, - (byte) 255, (byte) 93, (byte) 63, (byte) 20, (byte) 0, (byte) 98, (byte) 159, - (byte) 9, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20b, payload); - MsgBaselineECEF msg = new MsgBaselineECEF(sbp); + byte[] payload = new byte[] {(byte)200,(byte)3,(byte)123,(byte)19,(byte)189,(byte)96,(byte)238,(byte)255,(byte)93,(byte)63,(byte)20,(byte)0,(byte)98,(byte)159,(byte)9,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20b, payload ); + MsgBaselineECEF msg = new MsgBaselineECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -413,8 +330,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -422,8 +338,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -431,9 +346,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326829000 + "'", - value.equals(BigInteger.valueOf(326829000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326829000 + "'", value.equals(BigInteger.valueOf( 326829000L ) ) ); } else { value = value.longValue(); expected = 326829000L; @@ -441,9 +354,7 @@ public void test5() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1154883 + "'", - value.equals(BigInteger.valueOf(-1154883L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1154883 + "'", value.equals(BigInteger.valueOf( -1154883L ) ) ); } else { value = value.longValue(); expected = -1154883L; @@ -451,9 +362,7 @@ public void test5() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1326941 + "'", - value.equals(BigInteger.valueOf(1326941L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1326941 + "'", value.equals(BigInteger.valueOf( 1326941L ) ) ); } else { value = value.longValue(); expected = 1326941L; @@ -461,9 +370,7 @@ public void test5() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 630626 + "'", - value.equals(BigInteger.valueOf(630626L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 630626 + "'", value.equals(BigInteger.valueOf( 630626L ) ) ); } else { value = value.longValue(); expected = 630626L; diff --git a/java/test/auto_check_sbp_navigation_MsgBaselineHeadingDepATest.java b/java/test/auto_check_sbp_navigation_MsgBaselineHeadingDepATest.java index 892a6b8942..b76db60bb3 100644 --- a/java/test/auto_check_sbp_navigation_MsgBaselineHeadingDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgBaselineHeadingDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineHeadingDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineHeadingDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgBaselineHeadingDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgBaselineHeadingDepATest { @@ -29,30 +33,16 @@ public class auto_check_sbp_navigation_MsgBaselineHeadingDepATest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_navigation_MsgBaselineHeadingDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 82, - (byte) 109, - (byte) 88, - (byte) 176, - (byte) 68, - (byte) 14, - (byte) 82, - (byte) 203, - (byte) 186, - (byte) 58, - }; - SBPMessage sbp = new SBPMessage(0xce7c, 0x207, payload); - MsgBaselineHeadingDepA msg = new MsgBaselineHeadingDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineHeadingDepATest.test1"); + byte[] payload = new byte[] {(byte)82,(byte)109,(byte)88,(byte)176,(byte)68,(byte)14,(byte)82,(byte)203,(byte)186,(byte)58, }; + SBPMessage sbp = new SBPMessage( 0xce7c, 0x207, payload ); + MsgBaselineHeadingDepA msg = new MsgBaselineHeadingDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 58 + "'", value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -60,9 +50,7 @@ public void test1() throws Throwable { } value = msg.heading; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.heading + "' != '" + 3411152452L + "'", - value.equals(new BigInteger("3411152452"))); + org.junit.Assert.assertTrue("'" + msg.heading + "' != '" + 3411152452L + "'", value.equals( new BigInteger( "3411152452" ) ) ); } else { value = value.longValue(); expected = 3411152452L; @@ -70,9 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -80,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2958585170L + "'", - value.equals(new BigInteger("2958585170"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2958585170L + "'", value.equals( new BigInteger( "2958585170" ) ) ); } else { value = value.longValue(); expected = 2958585170L; diff --git a/java/test/auto_check_sbp_navigation_MsgBaselineNEDDepATest.java b/java/test/auto_check_sbp_navigation_MsgBaselineNEDDepATest.java index 6f46bc6ed9..fc83421489 100644 --- a/java/test/auto_check_sbp_navigation_MsgBaselineNEDDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgBaselineNEDDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineNEDDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineNEDDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgBaselineNEDDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgBaselineNEDDepATest { @@ -30,40 +34,15 @@ public class auto_check_sbp_navigation_MsgBaselineNEDDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 243, - (byte) 134, - (byte) 254, - (byte) 255, - (byte) 234, - (byte) 153, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)243,(byte)134,(byte)254,(byte)255,(byte)234,(byte)153,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -71,9 +50,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -26134 + "'", - value.equals(BigInteger.valueOf(-26134L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -26134 + "'", value.equals(BigInteger.valueOf( -26134L ) ) ); } else { value = value.longValue(); expected = -26134L; @@ -81,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -90,9 +66,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -100,9 +74,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -96525 + "'", - value.equals(BigInteger.valueOf(-96525L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -96525 + "'", value.equals(BigInteger.valueOf( -96525L ) ) ); } else { value = value.longValue(); expected = -96525L; @@ -110,8 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -119,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -129,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -145,40 +112,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 139, - (byte) 134, - (byte) 254, - (byte) 255, - (byte) 109, - (byte) 155, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)139,(byte)134,(byte)254,(byte)255,(byte)109,(byte)155,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -186,9 +128,7 @@ public void test2() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -25747 + "'", - value.equals(BigInteger.valueOf(-25747L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -25747 + "'", value.equals(BigInteger.valueOf( -25747L ) ) ); } else { value = value.longValue(); expected = -25747L; @@ -196,8 +136,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -205,9 +144,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -215,9 +152,7 @@ public void test2() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -96629 + "'", - value.equals(BigInteger.valueOf(-96629L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -96629 + "'", value.equals(BigInteger.valueOf( -96629L ) ) ); } else { value = value.longValue(); expected = -96629L; @@ -225,8 +160,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -234,9 +168,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -244,9 +176,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -260,40 +190,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 220, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 37, - (byte) 134, - (byte) 254, - (byte) 255, - (byte) 240, - (byte) 156, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)37,(byte)134,(byte)254,(byte)255,(byte)240,(byte)156,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -301,9 +206,7 @@ public void test3() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -25360 + "'", - value.equals(BigInteger.valueOf(-25360L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -25360 + "'", value.equals(BigInteger.valueOf( -25360L ) ) ); } else { value = value.longValue(); expected = -25360L; @@ -311,8 +214,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -320,9 +222,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -330,9 +230,7 @@ public void test3() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -96731 + "'", - value.equals(BigInteger.valueOf(-96731L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -96731 + "'", value.equals(BigInteger.valueOf( -96731L ) ) ); } else { value = value.longValue(); expected = -96731L; @@ -340,8 +238,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -349,9 +246,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -359,9 +254,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -375,40 +268,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 64, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 193, - (byte) 133, - (byte) 254, - (byte) 255, - (byte) 115, - (byte) 158, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)193,(byte)133,(byte)254,(byte)255,(byte)115,(byte)158,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -416,9 +284,7 @@ public void test4() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -24973 + "'", - value.equals(BigInteger.valueOf(-24973L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -24973 + "'", value.equals(BigInteger.valueOf( -24973L ) ) ); } else { value = value.longValue(); expected = -24973L; @@ -426,8 +292,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -435,9 +300,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -445,9 +308,7 @@ public void test4() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -96831 + "'", - value.equals(BigInteger.valueOf(-96831L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -96831 + "'", value.equals(BigInteger.valueOf( -96831L ) ) ); } else { value = value.longValue(); expected = -96831L; @@ -455,8 +316,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -464,9 +324,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -474,9 +332,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -490,40 +346,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 164, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 93, - (byte) 133, - (byte) 254, - (byte) 255, - (byte) 246, - (byte) 159, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)164,(byte)47,(byte)39,(byte)0,(byte)93,(byte)133,(byte)254,(byte)255,(byte)246,(byte)159,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -531,9 +362,7 @@ public void test5() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -24586 + "'", - value.equals(BigInteger.valueOf(-24586L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -24586 + "'", value.equals(BigInteger.valueOf( -24586L ) ) ); } else { value = value.longValue(); expected = -24586L; @@ -541,8 +370,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -550,9 +378,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -560,9 +386,7 @@ public void test5() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -96931 + "'", - value.equals(BigInteger.valueOf(-96931L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -96931 + "'", value.equals(BigInteger.valueOf( -96931L ) ) ); } else { value = value.longValue(); expected = -96931L; @@ -570,8 +394,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -579,9 +402,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568100 + "'", - value.equals(BigInteger.valueOf(2568100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568100 + "'", value.equals(BigInteger.valueOf( 2568100L ) ) ); } else { value = value.longValue(); expected = 2568100L; @@ -589,9 +410,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -605,23 +424,15 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 156, (byte) 21, (byte) 69, (byte) 24, (byte) 130, (byte) 246, (byte) 255, - (byte) 255, (byte) 241, (byte) 4, (byte) 0, (byte) 0, (byte) 35, (byte) 196, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)156,(byte)21,(byte)69,(byte)24,(byte)130,(byte)246,(byte)255,(byte)255,(byte)241,(byte)4,(byte)0,(byte)0,(byte)35,(byte)196,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -15325 + "'", - value.equals(BigInteger.valueOf(-15325L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -15325 + "'", value.equals(BigInteger.valueOf( -15325L ) ) ); } else { value = value.longValue(); expected = -15325L; @@ -629,8 +440,7 @@ public void test6() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 1265 + "'", value.equals(BigInteger.valueOf(1265L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 1265 + "'", value.equals(BigInteger.valueOf( 1265L ) ) ); } else { value = value.longValue(); expected = 1265L; @@ -638,8 +448,7 @@ public void test6() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -647,9 +456,7 @@ public void test6() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -657,8 +464,7 @@ public void test6() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -2430 + "'", value.equals(BigInteger.valueOf(-2430L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -2430 + "'", value.equals(BigInteger.valueOf( -2430L ) ) ); } else { value = value.longValue(); expected = -2430L; @@ -666,8 +472,7 @@ public void test6() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -675,9 +480,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180700 + "'", - value.equals(BigInteger.valueOf(407180700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180700 + "'", value.equals(BigInteger.valueOf( 407180700L ) ) ); } else { value = value.longValue(); expected = 407180700L; @@ -685,9 +488,7 @@ public void test6() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -701,23 +502,15 @@ public void test6() throws Throwable { public void test7() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 22, (byte) 69, (byte) 24, (byte) 130, (byte) 246, (byte) 255, - (byte) 255, (byte) 241, (byte) 4, (byte) 0, (byte) 0, (byte) 35, (byte) 196, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)22,(byte)69,(byte)24,(byte)130,(byte)246,(byte)255,(byte)255,(byte)241,(byte)4,(byte)0,(byte)0,(byte)35,(byte)196,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -15325 + "'", - value.equals(BigInteger.valueOf(-15325L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -15325 + "'", value.equals(BigInteger.valueOf( -15325L ) ) ); } else { value = value.longValue(); expected = -15325L; @@ -725,8 +518,7 @@ public void test7() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 1265 + "'", value.equals(BigInteger.valueOf(1265L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 1265 + "'", value.equals(BigInteger.valueOf( 1265L ) ) ); } else { value = value.longValue(); expected = 1265L; @@ -734,8 +526,7 @@ public void test7() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -743,9 +534,7 @@ public void test7() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -753,8 +542,7 @@ public void test7() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -2430 + "'", value.equals(BigInteger.valueOf(-2430L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -2430 + "'", value.equals(BigInteger.valueOf( -2430L ) ) ); } else { value = value.longValue(); expected = -2430L; @@ -762,8 +550,7 @@ public void test7() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -771,9 +558,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180800 + "'", - value.equals(BigInteger.valueOf(407180800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180800 + "'", value.equals(BigInteger.valueOf( 407180800L ) ) ); } else { value = value.longValue(); expected = 407180800L; @@ -781,9 +566,7 @@ public void test7() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -797,23 +580,15 @@ public void test7() throws Throwable { public void test8() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 100, (byte) 22, (byte) 69, (byte) 24, (byte) 32, (byte) 251, (byte) 255, - (byte) 255, (byte) 199, (byte) 11, (byte) 0, (byte) 0, (byte) 57, (byte) 161, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)22,(byte)69,(byte)24,(byte)32,(byte)251,(byte)255,(byte)255,(byte)199,(byte)11,(byte)0,(byte)0,(byte)57,(byte)161,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -24263 + "'", - value.equals(BigInteger.valueOf(-24263L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -24263 + "'", value.equals(BigInteger.valueOf( -24263L ) ) ); } else { value = value.longValue(); expected = -24263L; @@ -821,8 +596,7 @@ public void test8() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3015 + "'", value.equals(BigInteger.valueOf(3015L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3015 + "'", value.equals(BigInteger.valueOf( 3015L ) ) ); } else { value = value.longValue(); expected = 3015L; @@ -830,8 +604,7 @@ public void test8() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -839,9 +612,7 @@ public void test8() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -849,8 +620,7 @@ public void test8() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -1248 + "'", value.equals(BigInteger.valueOf(-1248L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -1248 + "'", value.equals(BigInteger.valueOf( -1248L ) ) ); } else { value = value.longValue(); expected = -1248L; @@ -858,8 +628,7 @@ public void test8() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -867,9 +636,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407180900 + "'", - value.equals(BigInteger.valueOf(407180900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407180900 + "'", value.equals(BigInteger.valueOf( 407180900L ) ) ); } else { value = value.longValue(); expected = 407180900L; @@ -877,9 +644,7 @@ public void test8() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -893,23 +658,15 @@ public void test8() throws Throwable { public void test9() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 200, (byte) 22, (byte) 69, (byte) 24, (byte) 33, (byte) 251, (byte) 255, - (byte) 255, (byte) 199, (byte) 11, (byte) 0, (byte) 0, (byte) 54, (byte) 161, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)200,(byte)22,(byte)69,(byte)24,(byte)33,(byte)251,(byte)255,(byte)255,(byte)199,(byte)11,(byte)0,(byte)0,(byte)54,(byte)161,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -24266 + "'", - value.equals(BigInteger.valueOf(-24266L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -24266 + "'", value.equals(BigInteger.valueOf( -24266L ) ) ); } else { value = value.longValue(); expected = -24266L; @@ -917,8 +674,7 @@ public void test9() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3015 + "'", value.equals(BigInteger.valueOf(3015L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3015 + "'", value.equals(BigInteger.valueOf( 3015L ) ) ); } else { value = value.longValue(); expected = 3015L; @@ -926,8 +682,7 @@ public void test9() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -935,9 +690,7 @@ public void test9() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -945,8 +698,7 @@ public void test9() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -1247 + "'", value.equals(BigInteger.valueOf(-1247L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -1247 + "'", value.equals(BigInteger.valueOf( -1247L ) ) ); } else { value = value.longValue(); expected = -1247L; @@ -954,8 +706,7 @@ public void test9() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -963,9 +714,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181000 + "'", - value.equals(BigInteger.valueOf(407181000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181000 + "'", value.equals(BigInteger.valueOf( 407181000L ) ) ); } else { value = value.longValue(); expected = 407181000L; @@ -973,9 +722,7 @@ public void test9() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -989,23 +736,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 44, (byte) 23, (byte) 69, (byte) 24, (byte) 110, (byte) 6, (byte) 0, - (byte) 0, (byte) 55, (byte) 8, (byte) 0, (byte) 0, (byte) 160, (byte) 166, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)44,(byte)23,(byte)69,(byte)24,(byte)110,(byte)6,(byte)0,(byte)0,(byte)55,(byte)8,(byte)0,(byte)0,(byte)160,(byte)166,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -22880 + "'", - value.equals(BigInteger.valueOf(-22880L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -22880 + "'", value.equals(BigInteger.valueOf( -22880L ) ) ); } else { value = value.longValue(); expected = -22880L; @@ -1013,8 +752,7 @@ public void test10() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 2103 + "'", value.equals(BigInteger.valueOf(2103L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 2103 + "'", value.equals(BigInteger.valueOf( 2103L ) ) ); } else { value = value.longValue(); expected = 2103L; @@ -1022,8 +760,7 @@ public void test10() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1031,9 +768,7 @@ public void test10() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1041,8 +776,7 @@ public void test10() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 1646 + "'", value.equals(BigInteger.valueOf(1646L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 1646 + "'", value.equals(BigInteger.valueOf( 1646L ) ) ); } else { value = value.longValue(); expected = 1646L; @@ -1050,8 +784,7 @@ public void test10() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1059,9 +792,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181100 + "'", - value.equals(BigInteger.valueOf(407181100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181100 + "'", value.equals(BigInteger.valueOf( 407181100L ) ) ); } else { value = value.longValue(); expected = 407181100L; @@ -1069,9 +800,7 @@ public void test10() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1085,23 +814,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 144, (byte) 23, (byte) 69, (byte) 24, (byte) 110, (byte) 6, (byte) 0, - (byte) 0, (byte) 54, (byte) 8, (byte) 0, (byte) 0, (byte) 160, (byte) 166, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x203, payload); - MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA(sbp); + byte[] payload = new byte[] {(byte)144,(byte)23,(byte)69,(byte)24,(byte)110,(byte)6,(byte)0,(byte)0,(byte)54,(byte)8,(byte)0,(byte)0,(byte)160,(byte)166,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x203, payload ); + MsgBaselineNEDDepA msg = new MsgBaselineNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -22880 + "'", - value.equals(BigInteger.valueOf(-22880L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -22880 + "'", value.equals(BigInteger.valueOf( -22880L ) ) ); } else { value = value.longValue(); expected = -22880L; @@ -1109,8 +830,7 @@ public void test11() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 2102 + "'", value.equals(BigInteger.valueOf(2102L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 2102 + "'", value.equals(BigInteger.valueOf( 2102L ) ) ); } else { value = value.longValue(); expected = 2102L; @@ -1118,8 +838,7 @@ public void test11() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1127,9 +846,7 @@ public void test11() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1137,8 +854,7 @@ public void test11() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 1646 + "'", value.equals(BigInteger.valueOf(1646L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 1646 + "'", value.equals(BigInteger.valueOf( 1646L ) ) ); } else { value = value.longValue(); expected = 1646L; @@ -1146,8 +862,7 @@ public void test11() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1155,9 +870,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407181200 + "'", - value.equals(BigInteger.valueOf(407181200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407181200 + "'", value.equals(BigInteger.valueOf( 407181200L ) ) ); } else { value = value.longValue(); expected = 407181200L; @@ -1165,9 +878,7 @@ public void test11() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgBaselineNEDTest.java b/java/test/auto_check_sbp_navigation_MsgBaselineNEDTest.java index 7f53b30224..92536683fb 100644 --- a/java/test/auto_check_sbp_navigation_MsgBaselineNEDTest.java +++ b/java/test/auto_check_sbp_navigation_MsgBaselineNEDTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineNED.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgBaselineNED.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgBaselineNED; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgBaselineNEDTest { @@ -30,40 +34,15 @@ public class auto_check_sbp_navigation_MsgBaselineNEDTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDTest.test1"); - byte[] payload = - new byte[] { - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 201, - (byte) 115, - (byte) 12, - (byte) 0, - (byte) 179, - (byte) 88, - (byte) 230, - (byte) 255, - (byte) 153, - (byte) 125, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 14, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20c, payload); - MsgBaselineNED msg = new MsgBaselineNED(sbp); + byte[] payload = new byte[] {(byte)40,(byte)244,(byte)122,(byte)19,(byte)201,(byte)115,(byte)12,(byte)0,(byte)179,(byte)88,(byte)230,(byte)255,(byte)153,(byte)125,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)14,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20c, payload ); + MsgBaselineNED msg = new MsgBaselineNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 32153 + "'", value.equals(BigInteger.valueOf(32153L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 32153 + "'", value.equals(BigInteger.valueOf( 32153L ) ) ); } else { value = value.longValue(); expected = 32153L; @@ -71,9 +50,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1681229 + "'", - value.equals(BigInteger.valueOf(-1681229L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1681229 + "'", value.equals(BigInteger.valueOf( -1681229L ) ) ); } else { value = value.longValue(); expected = -1681229L; @@ -81,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -90,9 +66,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -100,9 +74,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 816073 + "'", - value.equals(BigInteger.valueOf(816073L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 816073 + "'", value.equals(BigInteger.valueOf( 816073L ) ) ); } else { value = value.longValue(); expected = 816073L; @@ -110,8 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -119,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -129,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -145,40 +112,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDTest.test2"); - byte[] payload = - new byte[] { - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 98, - (byte) 115, - (byte) 12, - (byte) 0, - (byte) 194, - (byte) 88, - (byte) 230, - (byte) 255, - (byte) 110, - (byte) 127, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20c, payload); - MsgBaselineNED msg = new MsgBaselineNED(sbp); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)98,(byte)115,(byte)12,(byte)0,(byte)194,(byte)88,(byte)230,(byte)255,(byte)110,(byte)127,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20c, payload ); + MsgBaselineNED msg = new MsgBaselineNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 32622 + "'", value.equals(BigInteger.valueOf(32622L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 32622 + "'", value.equals(BigInteger.valueOf( 32622L ) ) ); } else { value = value.longValue(); expected = 32622L; @@ -186,9 +128,7 @@ public void test2() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1681214 + "'", - value.equals(BigInteger.valueOf(-1681214L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1681214 + "'", value.equals(BigInteger.valueOf( -1681214L ) ) ); } else { value = value.longValue(); expected = -1681214L; @@ -196,8 +136,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -205,9 +144,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -215,9 +152,7 @@ public void test2() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 815970 + "'", - value.equals(BigInteger.valueOf(815970L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 815970 + "'", value.equals(BigInteger.valueOf( 815970L ) ) ); } else { value = value.longValue(); expected = 815970L; @@ -225,8 +160,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -234,9 +168,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -244,9 +176,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -260,40 +190,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDTest.test3"); - byte[] payload = - new byte[] { - (byte) 248, - (byte) 251, - (byte) 122, - (byte) 19, - (byte) 143, - (byte) 114, - (byte) 12, - (byte) 0, - (byte) 173, - (byte) 88, - (byte) 230, - (byte) 255, - (byte) 238, - (byte) 127, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20c, payload); - MsgBaselineNED msg = new MsgBaselineNED(sbp); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)143,(byte)114,(byte)12,(byte)0,(byte)173,(byte)88,(byte)230,(byte)255,(byte)238,(byte)127,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20c, payload ); + MsgBaselineNED msg = new MsgBaselineNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 32750 + "'", value.equals(BigInteger.valueOf(32750L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 32750 + "'", value.equals(BigInteger.valueOf( 32750L ) ) ); } else { value = value.longValue(); expected = 32750L; @@ -301,9 +206,7 @@ public void test3() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1681235 + "'", - value.equals(BigInteger.valueOf(-1681235L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1681235 + "'", value.equals(BigInteger.valueOf( -1681235L ) ) ); } else { value = value.longValue(); expected = -1681235L; @@ -311,8 +214,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -320,9 +222,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -330,9 +230,7 @@ public void test3() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 815759 + "'", - value.equals(BigInteger.valueOf(815759L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 815759 + "'", value.equals(BigInteger.valueOf( 815759L ) ) ); } else { value = value.longValue(); expected = 815759L; @@ -340,8 +238,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -349,9 +246,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -359,9 +254,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -375,40 +268,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDTest.test4"); - byte[] payload = - new byte[] { - (byte) 224, - (byte) 255, - (byte) 122, - (byte) 19, - (byte) 86, - (byte) 112, - (byte) 12, - (byte) 0, - (byte) 51, - (byte) 88, - (byte) 230, - (byte) 255, - (byte) 47, - (byte) 127, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20c, payload); - MsgBaselineNED msg = new MsgBaselineNED(sbp); + byte[] payload = new byte[] {(byte)224,(byte)255,(byte)122,(byte)19,(byte)86,(byte)112,(byte)12,(byte)0,(byte)51,(byte)88,(byte)230,(byte)255,(byte)47,(byte)127,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20c, payload ); + MsgBaselineNED msg = new MsgBaselineNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 32559 + "'", value.equals(BigInteger.valueOf(32559L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 32559 + "'", value.equals(BigInteger.valueOf( 32559L ) ) ); } else { value = value.longValue(); expected = 32559L; @@ -416,9 +284,7 @@ public void test4() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1681357 + "'", - value.equals(BigInteger.valueOf(-1681357L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1681357 + "'", value.equals(BigInteger.valueOf( -1681357L ) ) ); } else { value = value.longValue(); expected = -1681357L; @@ -426,8 +292,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -435,9 +300,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -445,9 +308,7 @@ public void test4() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 815190 + "'", - value.equals(BigInteger.valueOf(815190L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 815190 + "'", value.equals(BigInteger.valueOf( 815190L ) ) ); } else { value = value.longValue(); expected = 815190L; @@ -455,8 +316,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -464,9 +324,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326828000 + "'", - value.equals(BigInteger.valueOf(326828000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326828000 + "'", value.equals(BigInteger.valueOf( 326828000L ) ) ); } else { value = value.longValue(); expected = 326828000L; @@ -474,9 +332,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -490,40 +346,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgBaselineNEDTest.test5"); - byte[] payload = - new byte[] { - (byte) 200, - (byte) 3, - (byte) 123, - (byte) 19, - (byte) 214, - (byte) 110, - (byte) 12, - (byte) 0, - (byte) 220, - (byte) 87, - (byte) 230, - (byte) 255, - (byte) 165, - (byte) 126, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20c, payload); - MsgBaselineNED msg = new MsgBaselineNED(sbp); + byte[] payload = new byte[] {(byte)200,(byte)3,(byte)123,(byte)19,(byte)214,(byte)110,(byte)12,(byte)0,(byte)220,(byte)87,(byte)230,(byte)255,(byte)165,(byte)126,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20c, payload ); + MsgBaselineNED msg = new MsgBaselineNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 32421 + "'", value.equals(BigInteger.valueOf(32421L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 32421 + "'", value.equals(BigInteger.valueOf( 32421L ) ) ); } else { value = value.longValue(); expected = 32421L; @@ -531,9 +362,7 @@ public void test5() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1681444 + "'", - value.equals(BigInteger.valueOf(-1681444L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1681444 + "'", value.equals(BigInteger.valueOf( -1681444L ) ) ); } else { value = value.longValue(); expected = -1681444L; @@ -541,8 +370,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -550,9 +378,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -560,9 +386,7 @@ public void test5() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 814806 + "'", - value.equals(BigInteger.valueOf(814806L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 814806 + "'", value.equals(BigInteger.valueOf( 814806L ) ) ); } else { value = value.longValue(); expected = 814806L; @@ -570,8 +394,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -579,9 +402,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326829000 + "'", - value.equals(BigInteger.valueOf(326829000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326829000 + "'", value.equals(BigInteger.valueOf( 326829000L ) ) ); } else { value = value.longValue(); expected = 326829000L; @@ -589,9 +410,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgDopsDepATest.java b/java/test/auto_check_sbp_navigation_MsgDopsDepATest.java index 1396d834c6..b18f2705d8 100644 --- a/java/test/auto_check_sbp_navigation_MsgDopsDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgDopsDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgDopsDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgDopsDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgDopsDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgDopsDepATest { @@ -27,21 +32,17 @@ public class auto_check_sbp_navigation_MsgDopsDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 8, (byte) 48, (byte) 39, (byte) 0, (byte) 180, (byte) 0, (byte) 190, - (byte) 0, (byte) 170, (byte) 0, (byte) 160, (byte) 0, (byte) 150, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test1"); + byte[] payload = new byte[] {(byte)8,(byte)48,(byte)39,(byte)0,(byte)180,(byte)0,(byte)190,(byte)0,(byte)170,(byte)0,(byte)160,(byte)0,(byte)150,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -49,8 +50,7 @@ public void test1() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -58,8 +58,7 @@ public void test1() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -67,8 +66,7 @@ public void test1() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -76,9 +74,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568200 + "'", - value.equals(BigInteger.valueOf(2568200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568200 + "'", value.equals(BigInteger.valueOf( 2568200L ) ) ); } else { value = value.longValue(); expected = 2568200L; @@ -86,8 +82,7 @@ public void test1() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -99,21 +94,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 240, (byte) 51, (byte) 39, (byte) 0, (byte) 180, (byte) 0, (byte) 190, - (byte) 0, (byte) 170, (byte) 0, (byte) 160, (byte) 0, (byte) 150, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test2"); + byte[] payload = new byte[] {(byte)240,(byte)51,(byte)39,(byte)0,(byte)180,(byte)0,(byte)190,(byte)0,(byte)170,(byte)0,(byte)160,(byte)0,(byte)150,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -121,8 +112,7 @@ public void test2() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -130,8 +120,7 @@ public void test2() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -139,8 +128,7 @@ public void test2() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -148,9 +136,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2569200 + "'", - value.equals(BigInteger.valueOf(2569200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2569200 + "'", value.equals(BigInteger.valueOf( 2569200L ) ) ); } else { value = value.longValue(); expected = 2569200L; @@ -158,8 +144,7 @@ public void test2() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -171,21 +156,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 216, (byte) 55, (byte) 39, (byte) 0, (byte) 180, (byte) 0, (byte) 190, - (byte) 0, (byte) 170, (byte) 0, (byte) 160, (byte) 0, (byte) 150, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test3"); + byte[] payload = new byte[] {(byte)216,(byte)55,(byte)39,(byte)0,(byte)180,(byte)0,(byte)190,(byte)0,(byte)170,(byte)0,(byte)160,(byte)0,(byte)150,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -193,8 +174,7 @@ public void test3() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -202,8 +182,7 @@ public void test3() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -211,8 +190,7 @@ public void test3() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -220,9 +198,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2570200 + "'", - value.equals(BigInteger.valueOf(2570200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2570200 + "'", value.equals(BigInteger.valueOf( 2570200L ) ) ); } else { value = value.longValue(); expected = 2570200L; @@ -230,8 +206,7 @@ public void test3() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -243,21 +218,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 212, (byte) 157, (byte) 67, (byte) 24, (byte) 247, (byte) 0, (byte) 215, - (byte) 0, (byte) 123, (byte) 0, (byte) 17, (byte) 1, (byte) 44, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test4"); + byte[] payload = new byte[] {(byte)212,(byte)157,(byte)67,(byte)24,(byte)247,(byte)0,(byte)215,(byte)0,(byte)123,(byte)0,(byte)17,(byte)1,(byte)44,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 247 + "'", value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -265,8 +236,7 @@ public void test4() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 273 + "'", value.equals(BigInteger.valueOf(273L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 273 + "'", value.equals(BigInteger.valueOf( 273L ) ) ); } else { value = value.longValue(); expected = 273L; @@ -274,8 +244,7 @@ public void test4() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 215 + "'", value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -283,8 +252,7 @@ public void test4() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 123 + "'", value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -292,9 +260,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -302,8 +268,7 @@ public void test4() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 44 + "'", value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -315,22 +280,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 255, (byte) 255, (byte) 255, - (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test5"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 65535 + "'", - value.equals(BigInteger.valueOf(65535L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 65535 + "'", value.equals(BigInteger.valueOf( 65535L ) ) ); } else { value = value.longValue(); expected = 65535L; @@ -338,8 +298,7 @@ public void test5() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -347,9 +306,7 @@ public void test5() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 65535 + "'", - value.equals(BigInteger.valueOf(65535L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 65535 + "'", value.equals(BigInteger.valueOf( 65535L ) ) ); } else { value = value.longValue(); expected = 65535L; @@ -357,8 +314,7 @@ public void test5() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -366,8 +322,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -375,8 +330,7 @@ public void test5() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -388,21 +342,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 128, (byte) 165, (byte) 68, (byte) 24, (byte) 92, (byte) 1, (byte) 56, - (byte) 1, (byte) 155, (byte) 0, (byte) 125, (byte) 2, (byte) 113, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test6"); + byte[] payload = new byte[] {(byte)128,(byte)165,(byte)68,(byte)24,(byte)92,(byte)1,(byte)56,(byte)1,(byte)155,(byte)0,(byte)125,(byte)2,(byte)113,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf(348L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf( 348L ) ) ); } else { value = value.longValue(); expected = 348L; @@ -410,8 +360,7 @@ public void test6() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf(637L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf( 637L ) ) ); } else { value = value.longValue(); expected = 637L; @@ -419,8 +368,7 @@ public void test6() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 312 + "'", value.equals(BigInteger.valueOf(312L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 312 + "'", value.equals(BigInteger.valueOf( 312L ) ) ); } else { value = value.longValue(); expected = 312L; @@ -428,8 +376,7 @@ public void test6() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -437,9 +384,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407152000 + "'", - value.equals(BigInteger.valueOf(407152000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407152000 + "'", value.equals(BigInteger.valueOf( 407152000L ) ) ); } else { value = value.longValue(); expected = 407152000L; @@ -447,8 +392,7 @@ public void test6() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 113 + "'", value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -460,21 +404,17 @@ public void test6() throws Throwable { @Test public void test7() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 104, (byte) 169, (byte) 68, (byte) 24, (byte) 92, (byte) 1, (byte) 55, - (byte) 1, (byte) 155, (byte) 0, (byte) 125, (byte) 2, (byte) 113, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test7"); + byte[] payload = new byte[] {(byte)104,(byte)169,(byte)68,(byte)24,(byte)92,(byte)1,(byte)55,(byte)1,(byte)155,(byte)0,(byte)125,(byte)2,(byte)113,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf(348L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf( 348L ) ) ); } else { value = value.longValue(); expected = 348L; @@ -482,8 +422,7 @@ public void test7() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf(637L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf( 637L ) ) ); } else { value = value.longValue(); expected = 637L; @@ -491,8 +430,7 @@ public void test7() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf(311L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf( 311L ) ) ); } else { value = value.longValue(); expected = 311L; @@ -500,8 +438,7 @@ public void test7() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -509,9 +446,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407153000 + "'", - value.equals(BigInteger.valueOf(407153000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407153000 + "'", value.equals(BigInteger.valueOf( 407153000L ) ) ); } else { value = value.longValue(); expected = 407153000L; @@ -519,8 +454,7 @@ public void test7() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 113 + "'", value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -532,21 +466,17 @@ public void test7() throws Throwable { @Test public void test8() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 80, (byte) 173, (byte) 68, (byte) 24, (byte) 92, (byte) 1, (byte) 55, - (byte) 1, (byte) 155, (byte) 0, (byte) 125, (byte) 2, (byte) 112, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test8"); + byte[] payload = new byte[] {(byte)80,(byte)173,(byte)68,(byte)24,(byte)92,(byte)1,(byte)55,(byte)1,(byte)155,(byte)0,(byte)125,(byte)2,(byte)112,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf(348L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf( 348L ) ) ); } else { value = value.longValue(); expected = 348L; @@ -554,8 +484,7 @@ public void test8() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf(637L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf( 637L ) ) ); } else { value = value.longValue(); expected = 637L; @@ -563,8 +492,7 @@ public void test8() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf(311L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf( 311L ) ) ); } else { value = value.longValue(); expected = 311L; @@ -572,8 +500,7 @@ public void test8() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -581,9 +508,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407154000 + "'", - value.equals(BigInteger.valueOf(407154000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407154000 + "'", value.equals(BigInteger.valueOf( 407154000L ) ) ); } else { value = value.longValue(); expected = 407154000L; @@ -591,8 +516,7 @@ public void test8() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 112 + "'", value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -604,21 +528,17 @@ public void test8() throws Throwable { @Test public void test9() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 56, (byte) 177, (byte) 68, (byte) 24, (byte) 92, (byte) 1, (byte) 55, - (byte) 1, (byte) 155, (byte) 0, (byte) 125, (byte) 2, (byte) 112, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x206, payload); - MsgDopsDepA msg = new MsgDopsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsDepATest.test9"); + byte[] payload = new byte[] {(byte)56,(byte)177,(byte)68,(byte)24,(byte)92,(byte)1,(byte)55,(byte)1,(byte)155,(byte)0,(byte)125,(byte)2,(byte)112,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x206, payload ); + MsgDopsDepA msg = new MsgDopsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf(348L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 348 + "'", value.equals(BigInteger.valueOf( 348L ) ) ); } else { value = value.longValue(); expected = 348L; @@ -626,8 +546,7 @@ public void test9() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf(637L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 637 + "'", value.equals(BigInteger.valueOf( 637L ) ) ); } else { value = value.longValue(); expected = 637L; @@ -635,8 +554,7 @@ public void test9() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf(311L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 311 + "'", value.equals(BigInteger.valueOf( 311L ) ) ); } else { value = value.longValue(); expected = 311L; @@ -644,8 +562,7 @@ public void test9() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -653,9 +570,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407155000 + "'", - value.equals(BigInteger.valueOf(407155000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407155000 + "'", value.equals(BigInteger.valueOf( 407155000L ) ) ); } else { value = value.longValue(); expected = 407155000L; @@ -663,8 +578,7 @@ public void test9() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 112 + "'", value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; diff --git a/java/test/auto_check_sbp_navigation_MsgDopsTest.java b/java/test/auto_check_sbp_navigation_MsgDopsTest.java index fecef75691..13738a3984 100644 --- a/java/test/auto_check_sbp_navigation_MsgDopsTest.java +++ b/java/test/auto_check_sbp_navigation_MsgDopsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgDops.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgDops.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgDops; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgDopsTest { @@ -27,34 +32,17 @@ public class auto_check_sbp_navigation_MsgDopsTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsTest.test1"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 6, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x208, payload); - MsgDops msg = new MsgDops(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgDopsTest.test1"); + byte[] payload = new byte[] {(byte)100,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)6,(byte)0,(byte)5,(byte)0,(byte)5,(byte)0,(byte)5,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x208, payload ); + MsgDops msg = new MsgDops( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -62,8 +50,7 @@ public void test1() throws Throwable { } value = msg.gdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gdop + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.gdop + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -71,8 +58,7 @@ public void test1() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -80,8 +66,7 @@ public void test1() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -89,8 +74,7 @@ public void test1() throws Throwable { } value = msg.tdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.tdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -98,8 +82,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -107,8 +90,7 @@ public void test1() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; diff --git a/java/test/auto_check_sbp_navigation_MsgGPSTimeDepATest.java b/java/test/auto_check_sbp_navigation_MsgGPSTimeDepATest.java index 4fc292d5e3..2af8ee8f5b 100644 --- a/java/test/auto_check_sbp_navigation_MsgGPSTimeDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgGPSTimeDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTimeDepA.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTimeDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgGPSTimeDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgGPSTimeDepATest { @@ -30,29 +34,15 @@ public class auto_check_sbp_navigation_MsgGPSTimeDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 251, - (byte) 6, - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)251,(byte)6,(byte)120,(byte)46,(byte)39,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -60,9 +50,7 @@ public void test1() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -70,9 +58,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -80,8 +66,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -95,29 +80,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 251, - (byte) 6, - (byte) 220, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)251,(byte)6,(byte)220,(byte)46,(byte)39,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -125,9 +96,7 @@ public void test2() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -135,9 +104,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -145,8 +112,7 @@ public void test2() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -160,29 +126,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 251, - (byte) 6, - (byte) 64, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)251,(byte)6,(byte)64,(byte)47,(byte)39,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -190,9 +142,7 @@ public void test3() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -200,9 +150,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -210,8 +158,7 @@ public void test3() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -225,29 +172,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 251, - (byte) 6, - (byte) 164, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)251,(byte)6,(byte)164,(byte)47,(byte)39,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -255,9 +188,7 @@ public void test4() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -265,9 +196,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568100 + "'", - value.equals(BigInteger.valueOf(2568100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568100 + "'", value.equals(BigInteger.valueOf( 2568100L ) ) ); } else { value = value.longValue(); expected = 2568100L; @@ -275,8 +204,7 @@ public void test4() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -290,29 +218,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 251, - (byte) 6, - (byte) 8, - (byte) 48, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)251,(byte)6,(byte)8,(byte)48,(byte)39,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -320,9 +234,7 @@ public void test5() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -330,9 +242,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568200 + "'", - value.equals(BigInteger.valueOf(2568200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568200 + "'", value.equals(BigInteger.valueOf( 2568200L ) ) ); } else { value = value.longValue(); expected = 2568200L; @@ -340,8 +250,7 @@ public void test5() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -355,29 +264,15 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 212, - (byte) 157, - (byte) 67, - (byte) 24, - (byte) 111, - (byte) 147, - (byte) 252, - (byte) 255, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)212,(byte)157,(byte)67,(byte)24,(byte)111,(byte)147,(byte)252,(byte)255,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -385,9 +280,7 @@ public void test6() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + -224401 + "'", - value.equals(BigInteger.valueOf(-224401L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + -224401 + "'", value.equals(BigInteger.valueOf( -224401L ) ) ); } else { value = value.longValue(); expected = -224401L; @@ -395,9 +288,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -405,8 +296,7 @@ public void test6() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -420,29 +310,15 @@ public void test6() throws Throwable { public void test7() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 56, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 109, - (byte) 103, - (byte) 3, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)56,(byte)158,(byte)67,(byte)24,(byte)109,(byte)103,(byte)3,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -450,9 +326,7 @@ public void test7() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 223085 + "'", - value.equals(BigInteger.valueOf(223085L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 223085 + "'", value.equals(BigInteger.valueOf( 223085L ) ) ); } else { value = value.longValue(); expected = 223085L; @@ -460,9 +334,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -470,8 +342,7 @@ public void test7() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -485,29 +356,15 @@ public void test7() throws Throwable { public void test8() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 156, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 233, - (byte) 152, - (byte) 252, - (byte) 255, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)156,(byte)158,(byte)67,(byte)24,(byte)233,(byte)152,(byte)252,(byte)255,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -515,9 +372,7 @@ public void test8() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + -222999 + "'", - value.equals(BigInteger.valueOf(-222999L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + -222999 + "'", value.equals(BigInteger.valueOf( -222999L ) ) ); } else { value = value.longValue(); expected = -222999L; @@ -525,9 +380,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084700 + "'", - value.equals(BigInteger.valueOf(407084700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084700 + "'", value.equals(BigInteger.valueOf( 407084700L ) ) ); } else { value = value.longValue(); expected = 407084700L; @@ -535,8 +388,7 @@ public void test8() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -550,29 +402,15 @@ public void test8() throws Throwable { public void test9() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 240, - (byte) 154, - (byte) 3, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)0,(byte)159,(byte)67,(byte)24,(byte)240,(byte)154,(byte)3,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -580,9 +418,7 @@ public void test9() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 236272 + "'", - value.equals(BigInteger.valueOf(236272L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 236272 + "'", value.equals(BigInteger.valueOf( 236272L ) ) ); } else { value = value.longValue(); expected = 236272L; @@ -590,9 +426,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -600,8 +434,7 @@ public void test9() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -615,29 +448,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 100, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 144, - (byte) 101, - (byte) 252, - (byte) 255, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)100,(byte)159,(byte)67,(byte)24,(byte)144,(byte)101,(byte)252,(byte)255,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -645,9 +464,7 @@ public void test10() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + -236144 + "'", - value.equals(BigInteger.valueOf(-236144L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + -236144 + "'", value.equals(BigInteger.valueOf( -236144L ) ) ); } else { value = value.longValue(); expected = -236144L; @@ -655,9 +472,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084900 + "'", - value.equals(BigInteger.valueOf(407084900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084900 + "'", value.equals(BigInteger.valueOf( 407084900L ) ) ); } else { value = value.longValue(); expected = 407084900L; @@ -665,8 +480,7 @@ public void test10() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -680,29 +494,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 7, - (byte) 46, - (byte) 162, - (byte) 68, - (byte) 24, - (byte) 205, - (byte) 230, - (byte) 250, - (byte) 255, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x100, payload); - MsgGPSTimeDepA msg = new MsgGPSTimeDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)7,(byte)46,(byte)162,(byte)68,(byte)24,(byte)205,(byte)230,(byte)250,(byte)255,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x100, payload ); + MsgGPSTimeDepA msg = new MsgGPSTimeDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -710,9 +510,7 @@ public void test11() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + -334131 + "'", - value.equals(BigInteger.valueOf(-334131L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + -334131 + "'", value.equals(BigInteger.valueOf( -334131L ) ) ); } else { value = value.longValue(); expected = -334131L; @@ -720,9 +518,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407151150 + "'", - value.equals(BigInteger.valueOf(407151150L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407151150 + "'", value.equals(BigInteger.valueOf( 407151150L ) ) ); } else { value = value.longValue(); expected = 407151150L; @@ -730,8 +526,7 @@ public void test11() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; diff --git a/java/test/auto_check_sbp_navigation_MsgGPSTimeGNSSTest.java b/java/test/auto_check_sbp_navigation_MsgGPSTimeGNSSTest.java index 85c75ea84e..3ed1c4c36d 100644 --- a/java/test/auto_check_sbp_navigation_MsgGPSTimeGNSSTest.java +++ b/java/test/auto_check_sbp_navigation_MsgGPSTimeGNSSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTimeGNSS.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTimeGNSS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgGPSTimeGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgGPSTimeGNSSTest { @@ -30,29 +34,15 @@ public class auto_check_sbp_navigation_MsgGPSTimeGNSSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeGNSSTest.test1"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 244, - (byte) 139, - (byte) 2, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x104, payload); - MsgGPSTimeGnss msg = new MsgGPSTimeGnss(sbp); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)40,(byte)244,(byte)122,(byte)19,(byte)244,(byte)139,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x104, payload ); + MsgGPSTimeGnss msg = new MsgGPSTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -60,9 +50,7 @@ public void test1() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 166900 + "'", - value.equals(BigInteger.valueOf(166900L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 166900 + "'", value.equals(BigInteger.valueOf( 166900L ) ) ); } else { value = value.longValue(); expected = 166900L; @@ -70,9 +58,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -80,8 +66,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -95,29 +80,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeGNSSTest.test2"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 28, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 126, - (byte) 234, - (byte) 3, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x104, payload); - MsgGPSTimeGnss msg = new MsgGPSTimeGnss(sbp); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)28,(byte)246,(byte)122,(byte)19,(byte)126,(byte)234,(byte)3,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x104, payload ); + MsgGPSTimeGnss msg = new MsgGPSTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -125,9 +96,7 @@ public void test2() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 256638 + "'", - value.equals(BigInteger.valueOf(256638L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 256638 + "'", value.equals(BigInteger.valueOf( 256638L ) ) ); } else { value = value.longValue(); expected = 256638L; @@ -135,9 +104,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825500 + "'", - value.equals(BigInteger.valueOf(326825500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825500 + "'", value.equals(BigInteger.valueOf( 326825500L ) ) ); } else { value = value.longValue(); expected = 326825500L; @@ -145,8 +112,7 @@ public void test2() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -160,29 +126,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeGNSSTest.test3"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 129, - (byte) 12, - (byte) 4, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x104, payload); - MsgGPSTimeGnss msg = new MsgGPSTimeGnss(sbp); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)16,(byte)248,(byte)122,(byte)19,(byte)129,(byte)12,(byte)4,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x104, payload ); + MsgGPSTimeGnss msg = new MsgGPSTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -190,9 +142,7 @@ public void test3() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 265345 + "'", - value.equals(BigInteger.valueOf(265345L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 265345 + "'", value.equals(BigInteger.valueOf( 265345L ) ) ); } else { value = value.longValue(); expected = 265345L; @@ -200,9 +150,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -210,8 +158,7 @@ public void test3() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -225,29 +172,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeGNSSTest.test4"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 4, - (byte) 250, - (byte) 122, - (byte) 19, - (byte) 137, - (byte) 204, - (byte) 4, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x104, payload); - MsgGPSTimeGnss msg = new MsgGPSTimeGnss(sbp); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)4,(byte)250,(byte)122,(byte)19,(byte)137,(byte)204,(byte)4,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x104, payload ); + MsgGPSTimeGnss msg = new MsgGPSTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -255,9 +188,7 @@ public void test4() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 314505 + "'", - value.equals(BigInteger.valueOf(314505L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 314505 + "'", value.equals(BigInteger.valueOf( 314505L ) ) ); } else { value = value.longValue(); expected = 314505L; @@ -265,9 +196,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826500 + "'", - value.equals(BigInteger.valueOf(326826500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826500 + "'", value.equals(BigInteger.valueOf( 326826500L ) ) ); } else { value = value.longValue(); expected = 326826500L; @@ -275,8 +204,7 @@ public void test4() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -290,29 +218,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeGNSSTest.test5"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 248, - (byte) 251, - (byte) 122, - (byte) 19, - (byte) 181, - (byte) 137, - (byte) 5, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x104, payload); - MsgGPSTimeGnss msg = new MsgGPSTimeGnss(sbp); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)248,(byte)251,(byte)122,(byte)19,(byte)181,(byte)137,(byte)5,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x104, payload ); + MsgGPSTimeGnss msg = new MsgGPSTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -320,9 +234,7 @@ public void test5() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 362933 + "'", - value.equals(BigInteger.valueOf(362933L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 362933 + "'", value.equals(BigInteger.valueOf( 362933L ) ) ); } else { value = value.longValue(); expected = 362933L; @@ -330,9 +242,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -340,8 +250,7 @@ public void test5() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; diff --git a/java/test/auto_check_sbp_navigation_MsgGPSTimeTest.java b/java/test/auto_check_sbp_navigation_MsgGPSTimeTest.java index 00c6e13033..ed5e1db535 100644 --- a/java/test/auto_check_sbp_navigation_MsgGPSTimeTest.java +++ b/java/test/auto_check_sbp_navigation_MsgGPSTimeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTime.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgGPSTime.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgGPSTime; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgGPSTimeTest { @@ -27,30 +32,17 @@ public class auto_check_sbp_navigation_MsgGPSTimeTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test1"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 244, - (byte) 139, - (byte) 2, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x102, payload); - MsgGPSTime msg = new MsgGPSTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test1"); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)40,(byte)244,(byte)122,(byte)19,(byte)244,(byte)139,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x102, payload ); + MsgGPSTime msg = new MsgGPSTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -58,9 +50,7 @@ public void test1() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 166900 + "'", - value.equals(BigInteger.valueOf(166900L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 166900 + "'", value.equals(BigInteger.valueOf( 166900L ) ) ); } else { value = value.longValue(); expected = 166900L; @@ -68,9 +58,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -78,8 +66,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -91,30 +78,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test2"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 28, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 126, - (byte) 234, - (byte) 3, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x102, payload); - MsgGPSTime msg = new MsgGPSTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test2"); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)28,(byte)246,(byte)122,(byte)19,(byte)126,(byte)234,(byte)3,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x102, payload ); + MsgGPSTime msg = new MsgGPSTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -122,9 +96,7 @@ public void test2() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 256638 + "'", - value.equals(BigInteger.valueOf(256638L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 256638 + "'", value.equals(BigInteger.valueOf( 256638L ) ) ); } else { value = value.longValue(); expected = 256638L; @@ -132,9 +104,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825500 + "'", - value.equals(BigInteger.valueOf(326825500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825500 + "'", value.equals(BigInteger.valueOf( 326825500L ) ) ); } else { value = value.longValue(); expected = 326825500L; @@ -142,8 +112,7 @@ public void test2() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -155,30 +124,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test3"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 129, - (byte) 12, - (byte) 4, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x102, payload); - MsgGPSTime msg = new MsgGPSTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test3"); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)16,(byte)248,(byte)122,(byte)19,(byte)129,(byte)12,(byte)4,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x102, payload ); + MsgGPSTime msg = new MsgGPSTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -186,9 +142,7 @@ public void test3() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 265345 + "'", - value.equals(BigInteger.valueOf(265345L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 265345 + "'", value.equals(BigInteger.valueOf( 265345L ) ) ); } else { value = value.longValue(); expected = 265345L; @@ -196,9 +150,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -206,8 +158,7 @@ public void test3() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -219,30 +170,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test4"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 4, - (byte) 250, - (byte) 122, - (byte) 19, - (byte) 137, - (byte) 204, - (byte) 4, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x102, payload); - MsgGPSTime msg = new MsgGPSTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test4"); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)4,(byte)250,(byte)122,(byte)19,(byte)137,(byte)204,(byte)4,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x102, payload ); + MsgGPSTime msg = new MsgGPSTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -250,9 +188,7 @@ public void test4() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 314505 + "'", - value.equals(BigInteger.valueOf(314505L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 314505 + "'", value.equals(BigInteger.valueOf( 314505L ) ) ); } else { value = value.longValue(); expected = 314505L; @@ -260,9 +196,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826500 + "'", - value.equals(BigInteger.valueOf(326826500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826500 + "'", value.equals(BigInteger.valueOf( 326826500L ) ) ); } else { value = value.longValue(); expected = 326826500L; @@ -270,8 +204,7 @@ public void test4() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; @@ -283,30 +216,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test5"); - byte[] payload = - new byte[] { - (byte) 128, - (byte) 7, - (byte) 248, - (byte) 251, - (byte) 122, - (byte) 19, - (byte) 181, - (byte) 137, - (byte) 5, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x102, payload); - MsgGPSTime msg = new MsgGPSTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgGPSTimeTest.test5"); + byte[] payload = new byte[] {(byte)128,(byte)7,(byte)248,(byte)251,(byte)122,(byte)19,(byte)181,(byte)137,(byte)5,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x102, payload ); + MsgGPSTime msg = new MsgGPSTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -314,9 +234,7 @@ public void test5() throws Throwable { } value = msg.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns_residual + "' != '" + 362933 + "'", - value.equals(BigInteger.valueOf(362933L))); + org.junit.Assert.assertTrue("'" + msg.ns_residual + "' != '" + 362933 + "'", value.equals(BigInteger.valueOf( 362933L ) ) ); } else { value = value.longValue(); expected = 362933L; @@ -324,9 +242,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -334,8 +250,7 @@ public void test5() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf(1920L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 1920 + "'", value.equals(BigInteger.valueOf( 1920L ) ) ); } else { value = value.longValue(); expected = 1920L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosECEFCovGNSSTest.java b/java/test/auto_check_sbp_navigation_MsgPosECEFCovGNSSTest.java index 3186fca2ad..bf150d39a1 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosECEFCovGNSSTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosECEFCovGNSSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFCovGNSS.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFCovGNSS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosECEFCovGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosECEFCovGNSSTest { @@ -30,65 +34,9 @@ public class auto_check_sbp_navigation_MsgPosECEFCovGNSSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFCovGNSSTest.test1"); - byte[] payload = - new byte[] { - (byte) 24, - (byte) 229, - (byte) 233, - (byte) 29, - (byte) 52, - (byte) 254, - (byte) 158, - (byte) 218, - (byte) 42, - (byte) 142, - (byte) 68, - (byte) 193, - (byte) 69, - (byte) 162, - (byte) 89, - (byte) 91, - (byte) 34, - (byte) 68, - (byte) 80, - (byte) 193, - (byte) 131, - (byte) 21, - (byte) 176, - (byte) 129, - (byte) 239, - (byte) 174, - (byte) 77, - (byte) 65, - (byte) 158, - (byte) 232, - (byte) 30, - (byte) 60, - (byte) 218, - (byte) 221, - (byte) 20, - (byte) 60, - (byte) 129, - (byte) 136, - (byte) 198, - (byte) 187, - (byte) 205, - (byte) 120, - (byte) 166, - (byte) 60, - (byte) 5, - (byte) 166, - (byte) 35, - (byte) 188, - (byte) 122, - (byte) 177, - (byte) 115, - (byte) 60, - (byte) 18, - (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x234, payload); - MsgPosECEFCovGnss msg = new MsgPosECEFCovGnss(sbp); + byte[] payload = new byte[] {(byte)24,(byte)229,(byte)233,(byte)29,(byte)52,(byte)254,(byte)158,(byte)218,(byte)42,(byte)142,(byte)68,(byte)193,(byte)69,(byte)162,(byte)89,(byte)91,(byte)34,(byte)68,(byte)80,(byte)193,(byte)131,(byte)21,(byte)176,(byte)129,(byte)239,(byte)174,(byte)77,(byte)65,(byte)158,(byte)232,(byte)30,(byte)60,(byte)218,(byte)221,(byte)20,(byte)60,(byte)129,(byte)136,(byte)198,(byte)187,(byte)205,(byte)120,(byte)166,(byte)60,(byte)5,(byte)166,(byte)35,(byte)188,(byte)122,(byte)177,(byte)115,(byte)60,(byte)18,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x234, payload ); + MsgPosECEFCovGnss msg = new MsgPosECEFCovGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -100,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_z_z, 1.48738566786050797e-02, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -109,8 +56,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -118,9 +64,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosECEFCovTest.java b/java/test/auto_check_sbp_navigation_MsgPosECEFCovTest.java index 8b3c539e55..f21e572b19 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosECEFCovTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosECEFCovTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFCov.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFCov.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosECEFCov; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosECEFCovTest { @@ -27,66 +32,11 @@ public class auto_check_sbp_navigation_MsgPosECEFCovTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFCovTest.test1"); - byte[] payload = - new byte[] { - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 24, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 16, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 64, - (byte) 4, - (byte) 5, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x214, payload); - MsgPosECEFCov msg = new MsgPosECEFCov(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFCovTest.test1"); + byte[] payload = new byte[] {(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)24,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)240,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)16,(byte)64,(byte)0,(byte)0,(byte)0,(byte)65,(byte)0,(byte)0,(byte)224,(byte)64,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)192,(byte)64,(byte)0,(byte)0,(byte)0,(byte)65,(byte)0,(byte)0,(byte)160,(byte)64,(byte)4,(byte)5, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x214, payload ); + MsgPosECEFCov msg = new MsgPosECEFCov( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -98,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_z_z, 5.00000000000000000e+00, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -107,8 +56,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -116,8 +64,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosECEFDepATest.java b/java/test/auto_check_sbp_navigation_MsgPosECEFDepATest.java index 5cf64f116f..4b4363fb27 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosECEFDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosECEFDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFDepA.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosECEFDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosECEFDepATest { @@ -30,23 +34,15 @@ public class auto_check_sbp_navigation_MsgPosECEFDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, (byte) 46, (byte) 39, (byte) 0, (byte) 195, (byte) 122, (byte) 175, - (byte) 75, (byte) 33, (byte) 154, (byte) 68, (byte) 193, (byte) 164, (byte) 14, - (byte) 230, (byte) 176, (byte) 231, (byte) 95, (byte) 80, (byte) 193, (byte) 78, - (byte) 220, (byte) 22, (byte) 253, (byte) 254, (byte) 105, (byte) 77, (byte) 65, - (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)195,(byte)122,(byte)175,(byte)75,(byte)33,(byte)154,(byte)68,(byte)193,(byte)164,(byte)14,(byte)230,(byte)176,(byte)231,(byte)95,(byte)80,(byte)193,(byte)78,(byte)220,(byte)22,(byte)253,(byte)254,(byte)105,(byte)77,(byte)65,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -54,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -63,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -72,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -91,23 +83,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 20, (byte) 46, (byte) 39, (byte) 0, (byte) 212, (byte) 196, (byte) 12, - (byte) 42, (byte) 34, (byte) 154, (byte) 68, (byte) 193, (byte) 9, (byte) 113, - (byte) 112, (byte) 123, (byte) 231, (byte) 95, (byte) 80, (byte) 193, (byte) 54, - (byte) 97, (byte) 38, (byte) 192, (byte) 254, (byte) 105, (byte) 77, (byte) 65, - (byte) 0, (byte) 0, (byte) 9, (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)212,(byte)196,(byte)12,(byte)42,(byte)34,(byte)154,(byte)68,(byte)193,(byte)9,(byte)113,(byte)112,(byte)123,(byte)231,(byte)95,(byte)80,(byte)193,(byte)54,(byte)97,(byte)38,(byte)192,(byte)254,(byte)105,(byte)77,(byte)65,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -115,8 +99,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -124,8 +107,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -133,9 +115,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -152,23 +132,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 120, (byte) 46, (byte) 39, (byte) 0, (byte) 112, (byte) 97, (byte) 39, - (byte) 190, (byte) 34, (byte) 154, (byte) 68, (byte) 193, (byte) 230, (byte) 43, - (byte) 119, (byte) 115, (byte) 231, (byte) 95, (byte) 80, (byte) 193, (byte) 50, - (byte) 199, (byte) 76, (byte) 66, (byte) 254, (byte) 105, (byte) 77, (byte) 65, - (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)112,(byte)97,(byte)39,(byte)190,(byte)34,(byte)154,(byte)68,(byte)193,(byte)230,(byte)43,(byte)119,(byte)115,(byte)231,(byte)95,(byte)80,(byte)193,(byte)50,(byte)199,(byte)76,(byte)66,(byte)254,(byte)105,(byte)77,(byte)65,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -176,8 +148,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -185,8 +156,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -194,9 +164,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -213,50 +181,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 194, - (byte) 82, - (byte) 121, - (byte) 4, - (byte) 34, - (byte) 154, - (byte) 68, - (byte) 193, - (byte) 223, - (byte) 186, - (byte) 1, - (byte) 140, - (byte) 231, - (byte) 95, - (byte) 80, - (byte) 193, - (byte) 176, - (byte) 152, - (byte) 147, - (byte) 181, - (byte) 254, - (byte) 105, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)194,(byte)82,(byte)121,(byte)4,(byte)34,(byte)154,(byte)68,(byte)193,(byte)223,(byte)186,(byte)1,(byte)140,(byte)231,(byte)95,(byte)80,(byte)193,(byte)176,(byte)152,(byte)147,(byte)181,(byte)254,(byte)105,(byte)77,(byte)65,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -264,8 +197,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -273,8 +205,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -282,9 +213,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -301,50 +230,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 220, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 216, - (byte) 41, - (byte) 227, - (byte) 254, - (byte) 33, - (byte) 154, - (byte) 68, - (byte) 193, - (byte) 9, - (byte) 151, - (byte) 154, - (byte) 124, - (byte) 231, - (byte) 95, - (byte) 80, - (byte) 193, - (byte) 1, - (byte) 183, - (byte) 214, - (byte) 139, - (byte) 255, - (byte) 105, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)216,(byte)41,(byte)227,(byte)254,(byte)33,(byte)154,(byte)68,(byte)193,(byte)9,(byte)151,(byte)154,(byte)124,(byte)231,(byte)95,(byte)80,(byte)193,(byte)1,(byte)183,(byte)214,(byte)139,(byte)255,(byte)105,(byte)77,(byte)65,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -352,8 +246,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -361,8 +254,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -370,9 +262,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -389,50 +279,15 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 212, - (byte) 157, - (byte) 67, - (byte) 24, - (byte) 153, - (byte) 222, - (byte) 105, - (byte) 1, - (byte) 252, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 254, - (byte) 247, - (byte) 52, - (byte) 112, - (byte) 74, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 164, - (byte) 207, - (byte) 47, - (byte) 146, - (byte) 44, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)212,(byte)157,(byte)67,(byte)24,(byte)153,(byte)222,(byte)105,(byte)1,(byte)252,(byte)161,(byte)68,(byte)193,(byte)254,(byte)247,(byte)52,(byte)112,(byte)74,(byte)67,(byte)80,(byte)193,(byte)164,(byte)207,(byte)47,(byte)146,(byte)44,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -440,8 +295,7 @@ public void test6() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -449,8 +303,7 @@ public void test6() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -458,9 +311,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -477,50 +328,15 @@ public void test6() throws Throwable { public void test7() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 56, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 215, - (byte) 184, - (byte) 223, - (byte) 246, - (byte) 251, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 36, - (byte) 126, - (byte) 17, - (byte) 39, - (byte) 74, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 19, - (byte) 179, - (byte) 70, - (byte) 80, - (byte) 44, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)215,(byte)184,(byte)223,(byte)246,(byte)251,(byte)161,(byte)68,(byte)193,(byte)36,(byte)126,(byte)17,(byte)39,(byte)74,(byte)67,(byte)80,(byte)193,(byte)19,(byte)179,(byte)70,(byte)80,(byte)44,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -528,8 +344,7 @@ public void test7() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -537,8 +352,7 @@ public void test7() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -546,9 +360,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -565,50 +377,15 @@ public void test7() throws Throwable { public void test8() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 73, - (byte) 74, - (byte) 214, - (byte) 148, - (byte) 251, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 213, - (byte) 151, - (byte) 184, - (byte) 215, - (byte) 73, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 110, - (byte) 99, - (byte) 38, - (byte) 164, - (byte) 43, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)156,(byte)158,(byte)67,(byte)24,(byte)73,(byte)74,(byte)214,(byte)148,(byte)251,(byte)161,(byte)68,(byte)193,(byte)213,(byte)151,(byte)184,(byte)215,(byte)73,(byte)67,(byte)80,(byte)193,(byte)110,(byte)99,(byte)38,(byte)164,(byte)43,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -616,8 +393,7 @@ public void test8() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -625,8 +401,7 @@ public void test8() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -634,9 +409,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084700 + "'", - value.equals(BigInteger.valueOf(407084700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084700 + "'", value.equals(BigInteger.valueOf( 407084700L ) ) ); } else { value = value.longValue(); expected = 407084700L; @@ -653,50 +426,15 @@ public void test8() throws Throwable { public void test9() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 177, - (byte) 111, - (byte) 112, - (byte) 45, - (byte) 252, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 213, - (byte) 168, - (byte) 198, - (byte) 253, - (byte) 73, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 245, - (byte) 12, - (byte) 228, - (byte) 12, - (byte) 44, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)177,(byte)111,(byte)112,(byte)45,(byte)252,(byte)161,(byte)68,(byte)193,(byte)213,(byte)168,(byte)198,(byte)253,(byte)73,(byte)67,(byte)80,(byte)193,(byte)245,(byte)12,(byte)228,(byte)12,(byte)44,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -704,8 +442,7 @@ public void test9() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -713,8 +450,7 @@ public void test9() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -722,9 +458,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -741,50 +475,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 67, - (byte) 231, - (byte) 72, - (byte) 165, - (byte) 251, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 150, - (byte) 210, - (byte) 36, - (byte) 212, - (byte) 73, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 234, - (byte) 33, - (byte) 25, - (byte) 189, - (byte) 43, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)159,(byte)67,(byte)24,(byte)67,(byte)231,(byte)72,(byte)165,(byte)251,(byte)161,(byte)68,(byte)193,(byte)150,(byte)210,(byte)36,(byte)212,(byte)73,(byte)67,(byte)80,(byte)193,(byte)234,(byte)33,(byte)25,(byte)189,(byte)43,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -792,8 +491,7 @@ public void test10() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -801,8 +499,7 @@ public void test10() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -810,9 +507,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084900 + "'", - value.equals(BigInteger.valueOf(407084900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084900 + "'", value.equals(BigInteger.valueOf( 407084900L ) ) ); } else { value = value.longValue(); expected = 407084900L; @@ -829,50 +524,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 162, - (byte) 68, - (byte) 24, - (byte) 224, - (byte) 72, - (byte) 131, - (byte) 215, - (byte) 251, - (byte) 161, - (byte) 68, - (byte) 193, - (byte) 180, - (byte) 123, - (byte) 222, - (byte) 94, - (byte) 74, - (byte) 67, - (byte) 80, - (byte) 193, - (byte) 191, - (byte) 3, - (byte) 131, - (byte) 193, - (byte) 45, - (byte) 163, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 5, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x200, payload); - MsgPosECEFDepA msg = new MsgPosECEFDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)162,(byte)68,(byte)24,(byte)224,(byte)72,(byte)131,(byte)215,(byte)251,(byte)161,(byte)68,(byte)193,(byte)180,(byte)123,(byte)222,(byte)94,(byte)74,(byte)67,(byte)80,(byte)193,(byte)191,(byte)3,(byte)131,(byte)193,(byte)45,(byte)163,(byte)77,(byte)65,(byte)0,(byte)0,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x200, payload ); + MsgPosECEFDepA msg = new MsgPosECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -880,8 +540,7 @@ public void test11() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -889,8 +548,7 @@ public void test11() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -898,9 +556,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407151150 + "'", - value.equals(BigInteger.valueOf(407151150L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407151150 + "'", value.equals(BigInteger.valueOf( 407151150L ) ) ); } else { value = value.longValue(); expected = 407151150L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosECEFGNSSTest.java b/java/test/auto_check_sbp_navigation_MsgPosECEFGNSSTest.java index 72fc3557fa..b7b467c758 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosECEFGNSSTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosECEFGNSSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFGNSS.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEFGNSS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosECEFGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosECEFGNSSTest { @@ -30,24 +34,15 @@ public class auto_check_sbp_navigation_MsgPosECEFGNSSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFGNSSTest.test1"); - byte[] payload = - new byte[] { - (byte) 24, (byte) 229, (byte) 233, (byte) 29, (byte) 52, (byte) 254, (byte) 158, - (byte) 218, (byte) 42, (byte) 142, (byte) 68, (byte) 193, (byte) 69, (byte) 162, - (byte) 89, (byte) 91, (byte) 34, (byte) 68, (byte) 80, (byte) 193, (byte) 131, - (byte) 21, (byte) 176, (byte) 129, (byte) 239, (byte) 174, (byte) 77, (byte) 65, - (byte) 182, (byte) 0, (byte) 18, (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x229, payload); - MsgPosECEFGnss msg = new MsgPosECEFGnss(sbp); + byte[] payload = new byte[] {(byte)24,(byte)229,(byte)233,(byte)29,(byte)52,(byte)254,(byte)158,(byte)218,(byte)42,(byte)142,(byte)68,(byte)193,(byte)69,(byte)162,(byte)89,(byte)91,(byte)34,(byte)68,(byte)80,(byte)193,(byte)131,(byte)21,(byte)176,(byte)129,(byte)239,(byte)174,(byte)77,(byte)65,(byte)182,(byte)0,(byte)18,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x229, payload ); + MsgPosECEFGnss msg = new MsgPosECEFGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -55,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -64,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -73,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosECEFTest.java b/java/test/auto_check_sbp_navigation_MsgPosECEFTest.java index d7243838b8..b9eb981406 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosECEFTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosECEFTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEF.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosECEF.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosECEF; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosECEFTest { @@ -27,51 +32,17 @@ public class auto_check_sbp_navigation_MsgPosECEFTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test1"); - byte[] payload = - new byte[] { - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 73, - (byte) 29, - (byte) 46, - (byte) 132, - (byte) 182, - (byte) 122, - (byte) 68, - (byte) 193, - (byte) 219, - (byte) 192, - (byte) 29, - (byte) 176, - (byte) 121, - (byte) 119, - (byte) 80, - (byte) 193, - (byte) 83, - (byte) 11, - (byte) 210, - (byte) 90, - (byte) 79, - (byte) 75, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x209, payload); - MsgPosECEF msg = new MsgPosECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test1"); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)73,(byte)29,(byte)46,(byte)132,(byte)182,(byte)122,(byte)68,(byte)193,(byte)219,(byte)192,(byte)29,(byte)176,(byte)121,(byte)119,(byte)80,(byte)193,(byte)83,(byte)11,(byte)210,(byte)90,(byte)79,(byte)75,(byte)77,(byte)65,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x209, payload ); + MsgPosECEF msg = new MsgPosECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -79,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -88,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -97,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -114,51 +81,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test2"); - byte[] payload = - new byte[] { - (byte) 248, - (byte) 251, - (byte) 122, - (byte) 19, - (byte) 103, - (byte) 106, - (byte) 57, - (byte) 136, - (byte) 182, - (byte) 122, - (byte) 68, - (byte) 193, - (byte) 176, - (byte) 242, - (byte) 200, - (byte) 176, - (byte) 121, - (byte) 119, - (byte) 80, - (byte) 193, - (byte) 244, - (byte) 135, - (byte) 97, - (byte) 59, - (byte) 79, - (byte) 75, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x209, payload); - MsgPosECEF msg = new MsgPosECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test2"); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)103,(byte)106,(byte)57,(byte)136,(byte)182,(byte)122,(byte)68,(byte)193,(byte)176,(byte)242,(byte)200,(byte)176,(byte)121,(byte)119,(byte)80,(byte)193,(byte)244,(byte)135,(byte)97,(byte)59,(byte)79,(byte)75,(byte)77,(byte)65,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x209, payload ); + MsgPosECEF msg = new MsgPosECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -166,8 +99,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -175,8 +107,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -184,9 +115,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -201,51 +130,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test3"); - byte[] payload = - new byte[] { - (byte) 224, - (byte) 255, - (byte) 122, - (byte) 19, - (byte) 101, - (byte) 179, - (byte) 242, - (byte) 182, - (byte) 182, - (byte) 122, - (byte) 68, - (byte) 193, - (byte) 130, - (byte) 196, - (byte) 145, - (byte) 199, - (byte) 121, - (byte) 119, - (byte) 80, - (byte) 193, - (byte) 212, - (byte) 10, - (byte) 253, - (byte) 15, - (byte) 79, - (byte) 75, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x209, payload); - MsgPosECEF msg = new MsgPosECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test3"); + byte[] payload = new byte[] {(byte)224,(byte)255,(byte)122,(byte)19,(byte)101,(byte)179,(byte)242,(byte)182,(byte)182,(byte)122,(byte)68,(byte)193,(byte)130,(byte)196,(byte)145,(byte)199,(byte)121,(byte)119,(byte)80,(byte)193,(byte)212,(byte)10,(byte)253,(byte)15,(byte)79,(byte)75,(byte)77,(byte)65,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x209, payload ); + MsgPosECEF msg = new MsgPosECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -253,8 +148,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -262,8 +156,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -271,9 +164,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326828000 + "'", - value.equals(BigInteger.valueOf(326828000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326828000 + "'", value.equals(BigInteger.valueOf( 326828000L ) ) ); } else { value = value.longValue(); expected = 326828000L; @@ -288,51 +179,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test4"); - byte[] payload = - new byte[] { - (byte) 200, - (byte) 3, - (byte) 123, - (byte) 19, - (byte) 146, - (byte) 214, - (byte) 132, - (byte) 215, - (byte) 182, - (byte) 122, - (byte) 68, - (byte) 193, - (byte) 213, - (byte) 68, - (byte) 49, - (byte) 215, - (byte) 121, - (byte) 119, - (byte) 80, - (byte) 193, - (byte) 71, - (byte) 34, - (byte) 110, - (byte) 243, - (byte) 78, - (byte) 75, - (byte) 77, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x209, payload); - MsgPosECEF msg = new MsgPosECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosECEFTest.test4"); + byte[] payload = new byte[] {(byte)200,(byte)3,(byte)123,(byte)19,(byte)146,(byte)214,(byte)132,(byte)215,(byte)182,(byte)122,(byte)68,(byte)193,(byte)213,(byte)68,(byte)49,(byte)215,(byte)121,(byte)119,(byte)80,(byte)193,(byte)71,(byte)34,(byte)110,(byte)243,(byte)78,(byte)75,(byte)77,(byte)65,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x209, payload ); + MsgPosECEF msg = new MsgPosECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -340,8 +197,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -349,8 +205,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -358,9 +213,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326829000 + "'", - value.equals(BigInteger.valueOf(326829000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326829000 + "'", value.equals(BigInteger.valueOf( 326829000L ) ) ); } else { value = value.longValue(); expected = 326829000L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLLHCovTest.java b/java/test/auto_check_sbp_navigation_MsgPosLLHCovTest.java index 8de8213444..daa232f734 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLLHCovTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLLHCovTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLHCov.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLHCov.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLHCov; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLLHCovTest { @@ -27,66 +32,11 @@ public class auto_check_sbp_navigation_MsgPosLLHCovTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHCovTest.test1"); - byte[] payload = - new byte[] { - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 28, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 5, - (byte) 5, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x211, payload); - MsgPosLLHCov msg = new MsgPosLLHCov(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHCovTest.test1"); + byte[] payload = new byte[] {(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)28,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)224,(byte)64,(byte)0,(byte)0,(byte)160,(byte)64,(byte)0,(byte)0,(byte)0,(byte)65,(byte)0,(byte)0,(byte)192,(byte)64,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)0,(byte)64,(byte)5,(byte)5, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x211, payload ); + MsgPosLLHCov msg = new MsgPosLLHCov( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -98,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_n_n, 7.00000000000000000e+00, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -110,8 +59,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, 7.00000000000000000e+00, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -119,8 +67,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLLHDepATest.java b/java/test/auto_check_sbp_navigation_MsgPosLLHDepATest.java index 59bd5d2e78..a3a92c133a 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLLHDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLLHDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLHDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLHDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLHDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLLHDepATest { @@ -27,53 +32,17 @@ public class auto_check_sbp_navigation_MsgPosLLHDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 250, - (byte) 29, - (byte) 226, - (byte) 186, - (byte) 235, - (byte) 182, - (byte) 66, - (byte) 64, - (byte) 19, - (byte) 203, - (byte) 51, - (byte) 196, - (byte) 24, - (byte) 139, - (byte) 94, - (byte) 192, - (byte) 31, - (byte) 157, - (byte) 160, - (byte) 232, - (byte) 122, - (byte) 115, - (byte) 81, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test1"); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)250,(byte)29,(byte)226,(byte)186,(byte)235,(byte)182,(byte)66,(byte)64,(byte)19,(byte)203,(byte)51,(byte)196,(byte)24,(byte)139,(byte)94,(byte)192,(byte)31,(byte)157,(byte)160,(byte)232,(byte)122,(byte)115,(byte)81,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -81,9 +50,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -94,8 +61,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22173386622027735e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -103,9 +69,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -113,9 +77,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -127,24 +89,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 20, (byte) 46, (byte) 39, (byte) 0, (byte) 161, (byte) 51, (byte) 75, - (byte) 148, (byte) 235, (byte) 182, (byte) 66, (byte) 64, (byte) 36, (byte) 41, - (byte) 246, (byte) 30, (byte) 25, (byte) 139, (byte) 94, (byte) 192, (byte) 254, - (byte) 218, (byte) 49, (byte) 127, (byte) 10, (byte) 108, (byte) 81, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 9, (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test2"); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)161,(byte)51,(byte)75,(byte)148,(byte)235,(byte)182,(byte)66,(byte)64,(byte)36,(byte)41,(byte)246,(byte)30,(byte)25,(byte)139,(byte)94,(byte)192,(byte)254,(byte)218,(byte)49,(byte)127,(byte)10,(byte)108,(byte)81,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -152,9 +107,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -165,8 +118,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22173408260718645e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -174,9 +126,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -184,9 +134,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -198,24 +146,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 120, (byte) 46, (byte) 39, (byte) 0, (byte) 56, (byte) 214, (byte) 210, - (byte) 65, (byte) 235, (byte) 182, (byte) 66, (byte) 64, (byte) 13, (byte) 46, - (byte) 132, (byte) 80, (byte) 25, (byte) 139, (byte) 94, (byte) 192, (byte) 22, - (byte) 143, (byte) 46, (byte) 234, (byte) 191, (byte) 95, (byte) 81, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test3"); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)56,(byte)214,(byte)210,(byte)65,(byte)235,(byte)182,(byte)66,(byte)64,(byte)13,(byte)46,(byte)132,(byte)80,(byte)25,(byte)139,(byte)94,(byte)192,(byte)22,(byte)143,(byte)46,(byte)234,(byte)191,(byte)95,(byte)81,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -223,9 +164,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -236,8 +175,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22173420075494690e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -245,9 +183,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -255,9 +191,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -269,53 +203,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 251, - (byte) 117, - (byte) 115, - (byte) 140, - (byte) 235, - (byte) 182, - (byte) 66, - (byte) 64, - (byte) 152, - (byte) 134, - (byte) 167, - (byte) 12, - (byte) 25, - (byte) 139, - (byte) 94, - (byte) 192, - (byte) 160, - (byte) 22, - (byte) 137, - (byte) 253, - (byte) 4, - (byte) 108, - (byte) 81, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test4"); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)251,(byte)117,(byte)115,(byte)140,(byte)235,(byte)182,(byte)66,(byte)64,(byte)152,(byte)134,(byte)167,(byte)12,(byte)25,(byte)139,(byte)94,(byte)192,(byte)160,(byte)22,(byte)137,(byte)253,(byte)4,(byte)108,(byte)81,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -323,9 +221,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -336,8 +232,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22173403895949718e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -345,9 +240,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -355,9 +248,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -369,24 +260,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 220, (byte) 46, (byte) 39, (byte) 0, (byte) 51, (byte) 124, (byte) 88, - (byte) 251, (byte) 235, (byte) 182, (byte) 66, (byte) 64, (byte) 153, (byte) 5, - (byte) 250, (byte) 16, (byte) 25, (byte) 139, (byte) 94, (byte) 192, (byte) 146, - (byte) 60, (byte) 187, (byte) 219, (byte) 152, (byte) 161, (byte) 81, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test5"); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)51,(byte)124,(byte)88,(byte)251,(byte)235,(byte)182,(byte)66,(byte)64,(byte)153,(byte)5,(byte)250,(byte)16,(byte)25,(byte)139,(byte)94,(byte)192,(byte)146,(byte)60,(byte)187,(byte)219,(byte)152,(byte)161,(byte)81,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -394,9 +278,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -407,8 +289,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22173404926454523e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -416,9 +297,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -426,9 +305,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -440,53 +317,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 212, - (byte) 157, - (byte) 67, - (byte) 24, - (byte) 8, - (byte) 23, - (byte) 228, - (byte) 8, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 156, - (byte) 174, - (byte) 42, - (byte) 194, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 153, - (byte) 23, - (byte) 72, - (byte) 47, - (byte) 196, - (byte) 40, - (byte) 16, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test6"); + byte[] payload = new byte[] {(byte)212,(byte)157,(byte)67,(byte)24,(byte)8,(byte)23,(byte)228,(byte)8,(byte)151,(byte)225,(byte)66,(byte)64,(byte)156,(byte)174,(byte)42,(byte)194,(byte)230,(byte)152,(byte)94,(byte)192,(byte)153,(byte)23,(byte)72,(byte)47,(byte)196,(byte)40,(byte)16,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -494,9 +335,7 @@ public void test6() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -507,8 +346,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389084378892619e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -516,9 +354,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -526,9 +362,7 @@ public void test6() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -540,53 +374,17 @@ public void test6() throws Throwable { @Test public void test7() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 56, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 220, - (byte) 109, - (byte) 212, - (byte) 24, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 159, - (byte) 231, - (byte) 254, - (byte) 219, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 128, - (byte) 151, - (byte) 67, - (byte) 19, - (byte) 233, - (byte) 105, - (byte) 7, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test7"); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)220,(byte)109,(byte)212,(byte)24,(byte)151,(byte)225,(byte)66,(byte)64,(byte)159,(byte)231,(byte)254,(byte)219,(byte)230,(byte)152,(byte)94,(byte)192,(byte)128,(byte)151,(byte)67,(byte)19,(byte)233,(byte)105,(byte)7,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -594,9 +392,7 @@ public void test7() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -607,8 +403,7 @@ public void test7() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389090537004890e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -616,9 +411,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -626,9 +419,7 @@ public void test7() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -640,53 +431,17 @@ public void test7() throws Throwable { @Test public void test8() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 13, - (byte) 91, - (byte) 237, - (byte) 11, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 75, - (byte) 113, - (byte) 210, - (byte) 220, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 37, - (byte) 6, - (byte) 145, - (byte) 188, - (byte) 89, - (byte) 112, - (byte) 238, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test8"); + byte[] payload = new byte[] {(byte)156,(byte)158,(byte)67,(byte)24,(byte)13,(byte)91,(byte)237,(byte)11,(byte)151,(byte)225,(byte)66,(byte)64,(byte)75,(byte)113,(byte)210,(byte)220,(byte)230,(byte)152,(byte)94,(byte)192,(byte)37,(byte)6,(byte)145,(byte)188,(byte)89,(byte)112,(byte)238,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -694,9 +449,7 @@ public void test8() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -707,8 +460,7 @@ public void test8() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389090734014800e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -716,9 +468,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084700 + "'", - value.equals(BigInteger.valueOf(407084700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084700 + "'", value.equals(BigInteger.valueOf( 407084700L ) ) ); } else { value = value.longValue(); expected = 407084700L; @@ -726,9 +476,7 @@ public void test8() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -740,53 +488,17 @@ public void test8() throws Throwable { @Test public void test9() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 51, - (byte) 183, - (byte) 5, - (byte) 8, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 13, - (byte) 226, - (byte) 148, - (byte) 253, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 187, - (byte) 27, - (byte) 11, - (byte) 32, - (byte) 69, - (byte) 213, - (byte) 2, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test9"); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)51,(byte)183,(byte)5,(byte)8,(byte)151,(byte)225,(byte)66,(byte)64,(byte)13,(byte)226,(byte)148,(byte)253,(byte)230,(byte)152,(byte)94,(byte)192,(byte)187,(byte)27,(byte)11,(byte)32,(byte)69,(byte)213,(byte)2,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -794,9 +506,7 @@ public void test9() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -807,8 +517,7 @@ public void test9() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389098544496122e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -816,9 +525,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -826,9 +533,7 @@ public void test9() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -842,52 +547,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 22, - (byte) 77, - (byte) 146, - (byte) 22, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 64, - (byte) 134, - (byte) 105, - (byte) 227, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 37, - (byte) 99, - (byte) 114, - (byte) 72, - (byte) 31, - (byte) 103, - (byte) 241, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)159,(byte)67,(byte)24,(byte)22,(byte)77,(byte)146,(byte)22,(byte)151,(byte)225,(byte)66,(byte)64,(byte)64,(byte)134,(byte)105,(byte)227,(byte)230,(byte)152,(byte)94,(byte)192,(byte)37,(byte)99,(byte)114,(byte)72,(byte)31,(byte)103,(byte)241,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -895,9 +563,7 @@ public void test10() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -908,8 +574,7 @@ public void test10() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389092305232225e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -917,9 +582,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084900 + "'", - value.equals(BigInteger.valueOf(407084900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084900 + "'", value.equals(BigInteger.valueOf( 407084900L ) ) ); } else { value = value.longValue(); expected = 407084900L; @@ -927,9 +590,7 @@ public void test10() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -943,52 +604,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 162, - (byte) 68, - (byte) 24, - (byte) 124, - (byte) 245, - (byte) 46, - (byte) 169, - (byte) 151, - (byte) 225, - (byte) 66, - (byte) 64, - (byte) 135, - (byte) 149, - (byte) 234, - (byte) 187, - (byte) 230, - (byte) 152, - (byte) 94, - (byte) 192, - (byte) 194, - (byte) 201, - (byte) 115, - (byte) 145, - (byte) 166, - (byte) 175, - (byte) 20, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 5, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x201, payload); - MsgPosLLHDepA msg = new MsgPosLLHDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)162,(byte)68,(byte)24,(byte)124,(byte)245,(byte)46,(byte)169,(byte)151,(byte)225,(byte)66,(byte)64,(byte)135,(byte)149,(byte)234,(byte)187,(byte)230,(byte)152,(byte)94,(byte)192,(byte)194,(byte)201,(byte)115,(byte)145,(byte)166,(byte)175,(byte)20,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x201, payload ); + MsgPosLLHDepA msg = new MsgPosLLHDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -996,9 +620,7 @@ public void test11() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1009,8 +631,7 @@ public void test11() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22389082888685252e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1018,9 +639,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407151150 + "'", - value.equals(BigInteger.valueOf(407151150L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407151150 + "'", value.equals(BigInteger.valueOf( 407151150L ) ) ); } else { value = value.longValue(); expected = 407151150L; @@ -1028,9 +647,7 @@ public void test11() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLLHTest.java b/java/test/auto_check_sbp_navigation_MsgPosLLHTest.java index 5687df4be5..50e3a90049 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLLHTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLLHTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLH.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLLH.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLH; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLLHTest { @@ -27,53 +32,17 @@ public class auto_check_sbp_navigation_MsgPosLLHTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test1"); - byte[] payload = - new byte[] { - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 201, - (byte) 106, - (byte) 155, - (byte) 186, - (byte) 42, - (byte) 160, - (byte) 66, - (byte) 64, - (byte) 168, - (byte) 109, - (byte) 26, - (byte) 225, - (byte) 0, - (byte) 120, - (byte) 94, - (byte) 192, - (byte) 130, - (byte) 102, - (byte) 237, - (byte) 230, - (byte) 43, - (byte) 54, - (byte) 60, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 14, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20a, payload); - MsgPosLLH msg = new MsgPosLLH(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test1"); + byte[] payload = new byte[] {(byte)40,(byte)244,(byte)122,(byte)19,(byte)201,(byte)106,(byte)155,(byte)186,(byte)42,(byte)160,(byte)66,(byte)64,(byte)168,(byte)109,(byte)26,(byte)225,(byte)0,(byte)120,(byte)94,(byte)192,(byte)130,(byte)102,(byte)237,(byte)230,(byte)43,(byte)54,(byte)60,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)14,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20a, payload ); + MsgPosLLH msg = new MsgPosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -81,9 +50,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -94,8 +61,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.21875053668793612e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -103,9 +69,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -113,9 +77,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -127,24 +89,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test2"); - byte[] payload = - new byte[] { - (byte) 16, (byte) 248, (byte) 122, (byte) 19, (byte) 52, (byte) 177, (byte) 251, - (byte) 178, (byte) 42, (byte) 160, (byte) 66, (byte) 64, (byte) 237, (byte) 22, - (byte) 97, (byte) 224, (byte) 0, (byte) 120, (byte) 94, (byte) 192, (byte) 107, - (byte) 188, (byte) 109, (byte) 90, (byte) 247, (byte) 189, (byte) 59, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20a, payload); - MsgPosLLH msg = new MsgPosLLH(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test2"); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)52,(byte)177,(byte)251,(byte)178,(byte)42,(byte)160,(byte)66,(byte)64,(byte)237,(byte)22,(byte)97,(byte)224,(byte)0,(byte)120,(byte)94,(byte)192,(byte)107,(byte)188,(byte)109,(byte)90,(byte)247,(byte)189,(byte)59,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20a, payload ); + MsgPosLLH msg = new MsgPosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -152,9 +107,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -165,8 +118,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.21875053496183412e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -174,9 +126,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -184,9 +134,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -198,24 +146,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test3"); - byte[] payload = - new byte[] { - (byte) 248, (byte) 251, (byte) 122, (byte) 19, (byte) 135, (byte) 66, (byte) 9, - (byte) 163, (byte) 42, (byte) 160, (byte) 66, (byte) 64, (byte) 146, (byte) 8, - (byte) 99, (byte) 225, (byte) 0, (byte) 120, (byte) 94, (byte) 192, (byte) 45, - (byte) 181, (byte) 143, (byte) 219, (byte) 28, (byte) 157, (byte) 59, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20a, payload); - MsgPosLLH msg = new MsgPosLLH(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test3"); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)135,(byte)66,(byte)9,(byte)163,(byte)42,(byte)160,(byte)66,(byte)64,(byte)146,(byte)8,(byte)99,(byte)225,(byte)0,(byte)120,(byte)94,(byte)192,(byte)45,(byte)181,(byte)143,(byte)219,(byte)28,(byte)157,(byte)59,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20a, payload ); + MsgPosLLH msg = new MsgPosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -223,9 +164,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -236,8 +175,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.21875053736412411e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -245,9 +183,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -255,9 +191,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -269,24 +203,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test4"); - byte[] payload = - new byte[] { - (byte) 224, (byte) 255, (byte) 122, (byte) 19, (byte) 18, (byte) 44, (byte) 253, - (byte) 119, (byte) 42, (byte) 160, (byte) 66, (byte) 64, (byte) 48, (byte) 109, - (byte) 39, (byte) 231, (byte) 0, (byte) 120, (byte) 94, (byte) 192, (byte) 185, - (byte) 76, (byte) 48, (byte) 17, (byte) 119, (byte) 205, (byte) 59, (byte) 64, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20a, payload); - MsgPosLLH msg = new MsgPosLLH(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test4"); + byte[] payload = new byte[] {(byte)224,(byte)255,(byte)122,(byte)19,(byte)18,(byte)44,(byte)253,(byte)119,(byte)42,(byte)160,(byte)66,(byte)64,(byte)48,(byte)109,(byte)39,(byte)231,(byte)0,(byte)120,(byte)94,(byte)192,(byte)185,(byte)76,(byte)48,(byte)17,(byte)119,(byte)205,(byte)59,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20a, payload ); + MsgPosLLH msg = new MsgPosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -294,9 +221,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -307,8 +232,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.21875055111410575e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -316,9 +240,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326828000 + "'", - value.equals(BigInteger.valueOf(326828000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326828000 + "'", value.equals(BigInteger.valueOf( 326828000L ) ) ); } else { value = value.longValue(); expected = 326828000L; @@ -326,9 +248,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -340,53 +260,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test5"); - byte[] payload = - new byte[] { - (byte) 200, - (byte) 3, - (byte) 123, - (byte) 19, - (byte) 225, - (byte) 237, - (byte) 238, - (byte) 90, - (byte) 42, - (byte) 160, - (byte) 66, - (byte) 64, - (byte) 59, - (byte) 143, - (byte) 70, - (byte) 235, - (byte) 0, - (byte) 120, - (byte) 94, - (byte) 192, - (byte) 101, - (byte) 106, - (byte) 249, - (byte) 224, - (byte) 131, - (byte) 240, - (byte) 59, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20a, payload); - MsgPosLLH msg = new MsgPosLLH(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLLHTest.test5"); + byte[] payload = new byte[] {(byte)200,(byte)3,(byte)123,(byte)19,(byte)225,(byte)237,(byte)238,(byte)90,(byte)42,(byte)160,(byte)66,(byte)64,(byte)59,(byte)143,(byte)70,(byte)235,(byte)0,(byte)120,(byte)94,(byte)192,(byte)101,(byte)106,(byte)249,(byte)224,(byte)131,(byte)240,(byte)59,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20a, payload ); + MsgPosLLH msg = new MsgPosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -394,9 +278,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -407,8 +289,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.21875056094079739e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -416,9 +297,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326829000 + "'", - value.equals(BigInteger.valueOf(326829000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326829000 + "'", value.equals(BigInteger.valueOf( 326829000L ) ) ); } else { value = value.longValue(); expected = 326829000L; @@ -426,9 +305,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLlhAccTest.java b/java/test/auto_check_sbp_navigation_MsgPosLlhAccTest.java index a8d5d940db..99a0855a33 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLlhAccTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLlhAccTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhAcc.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhAcc.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLHAcc; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLlhAccTest { @@ -27,88 +32,18 @@ public class auto_check_sbp_navigation_MsgPosLlhAccTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLlhAccTest.test1"); - byte[] payload = - new byte[] { - (byte) 39, - (byte) 120, - (byte) 110, - (byte) 18, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 139, - (byte) 189, - (byte) 64, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 25, - (byte) 151, - (byte) 192, - (byte) 64, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 161, - (byte) 176, - (byte) 64, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 101, - (byte) 179, - (byte) 64, - (byte) 51, - (byte) 163, - (byte) 22, - (byte) 69, - (byte) 154, - (byte) 25, - (byte) 173, - (byte) 69, - (byte) 102, - (byte) 134, - (byte) 243, - (byte) 68, - (byte) 154, - (byte) 201, - (byte) 196, - (byte) 69, - (byte) 205, - (byte) 224, - (byte) 0, - (byte) 70, - (byte) 51, - (byte) 35, - (byte) 72, - (byte) 69, - (byte) 51, - (byte) 99, - (byte) 31, - (byte) 69, - (byte) 95, - (byte) 27, - (byte) 72, - }; - SBPMessage sbp = new SBPMessage(0x1c02, 0x218, payload); - MsgPosLLHAcc msg = new MsgPosLLHAcc(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLlhAccTest.test1"); + byte[] payload = new byte[] {(byte)39,(byte)120,(byte)110,(byte)18,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)139,(byte)189,(byte)64,(byte)154,(byte)153,(byte)153,(byte)153,(byte)25,(byte)151,(byte)192,(byte)64,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)161,(byte)176,(byte)64,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)101,(byte)179,(byte)64,(byte)51,(byte)163,(byte)22,(byte)69,(byte)154,(byte)25,(byte)173,(byte)69,(byte)102,(byte)134,(byte)243,(byte)68,(byte)154,(byte)201,(byte)196,(byte)69,(byte)205,(byte)224,(byte)0,(byte)70,(byte)51,(byte)35,(byte)72,(byte)69,(byte)51,(byte)99,(byte)31,(byte)69,(byte)95,(byte)27,(byte)72, }; + SBPMessage sbp = new SBPMessage( 0x1c02, 0x218, payload ); + MsgPosLLHAcc msg = new MsgPosLLHAcc( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.at_accuracy, 6.29720019531250000e+03, DELTA); value = msg.confidence_and_geoid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.confidence_and_geoid + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.confidence_and_geoid + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -117,8 +52,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.ct_accuracy, 1.94819995117187500e+03, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -133,8 +67,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, 8.49420000000000073e+03, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 27 + "'", value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -143,9 +76,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.orthometric_height, 4.96519999999999982e+03, DELTA); value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 309229607 + "'", - value.equals(BigInteger.valueOf(309229607L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 309229607 + "'", value.equals(BigInteger.valueOf( 309229607L ) ) ); } else { value = value.longValue(); expected = 309229607L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLlhCovGnssTest.java b/java/test/auto_check_sbp_navigation_MsgPosLlhCovGnssTest.java index 022cc536e8..337142f1bc 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLlhCovGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLlhCovGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhCovGnss.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhCovGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLHCovGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLlhCovGnssTest { @@ -30,65 +34,9 @@ public class auto_check_sbp_navigation_MsgPosLlhCovGnssTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLlhCovGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 24, - (byte) 229, - (byte) 233, - (byte) 29, - (byte) 73, - (byte) 123, - (byte) 28, - (byte) 207, - (byte) 101, - (byte) 234, - (byte) 66, - (byte) 64, - (byte) 100, - (byte) 168, - (byte) 19, - (byte) 20, - (byte) 86, - (byte) 146, - (byte) 94, - (byte) 192, - (byte) 214, - (byte) 198, - (byte) 35, - (byte) 120, - (byte) 209, - (byte) 100, - (byte) 49, - (byte) 192, - (byte) 12, - (byte) 102, - (byte) 245, - (byte) 59, - (byte) 6, - (byte) 181, - (byte) 192, - (byte) 185, - (byte) 168, - (byte) 79, - (byte) 243, - (byte) 58, - (byte) 96, - (byte) 60, - (byte) 148, - (byte) 59, - (byte) 253, - (byte) 58, - (byte) 93, - (byte) 186, - (byte) 159, - (byte) 174, - (byte) 6, - (byte) 61, - (byte) 18, - (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x231, payload); - MsgPosLLHCovGnss msg = new MsgPosLLHCovGnss(sbp); + byte[] payload = new byte[] {(byte)24,(byte)229,(byte)233,(byte)29,(byte)73,(byte)123,(byte)28,(byte)207,(byte)101,(byte)234,(byte)66,(byte)64,(byte)100,(byte)168,(byte)19,(byte)20,(byte)86,(byte)146,(byte)94,(byte)192,(byte)214,(byte)198,(byte)35,(byte)120,(byte)209,(byte)100,(byte)49,(byte)192,(byte)12,(byte)102,(byte)245,(byte)59,(byte)6,(byte)181,(byte)192,(byte)185,(byte)168,(byte)79,(byte)243,(byte)58,(byte)96,(byte)60,(byte)148,(byte)59,(byte)253,(byte)58,(byte)93,(byte)186,(byte)159,(byte)174,(byte)6,(byte)61,(byte)18,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x231, payload ); + MsgPosLLHCovGnss msg = new MsgPosLLHCovGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -100,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_n_n, 7.48897157609462738e-03, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -112,8 +59,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22286503810116812e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -121,9 +67,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; diff --git a/java/test/auto_check_sbp_navigation_MsgPosLlhGnssTest.java b/java/test/auto_check_sbp_navigation_MsgPosLlhGnssTest.java index b65652e794..01e3a49800 100644 --- a/java/test/auto_check_sbp_navigation_MsgPosLlhGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPosLlhGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhGnss.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPosLlhGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPosLLHGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPosLlhGnssTest { @@ -27,53 +32,17 @@ public class auto_check_sbp_navigation_MsgPosLlhGnssTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLlhGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 24, - (byte) 229, - (byte) 233, - (byte) 29, - (byte) 73, - (byte) 123, - (byte) 28, - (byte) 207, - (byte) 101, - (byte) 234, - (byte) 66, - (byte) 64, - (byte) 100, - (byte) 168, - (byte) 19, - (byte) 20, - (byte) 86, - (byte) 146, - (byte) 94, - (byte) 192, - (byte) 214, - (byte) 198, - (byte) 35, - (byte) 120, - (byte) 209, - (byte) 100, - (byte) 49, - (byte) 192, - (byte) 87, - (byte) 0, - (byte) 181, - (byte) 0, - (byte) 18, - (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x22a, payload); - MsgPosLLHGnss msg = new MsgPosLLHGnss(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPosLlhGnssTest.test1"); + byte[] payload = new byte[] {(byte)24,(byte)229,(byte)233,(byte)29,(byte)73,(byte)123,(byte)28,(byte)207,(byte)101,(byte)234,(byte)66,(byte)64,(byte)100,(byte)168,(byte)19,(byte)20,(byte)86,(byte)146,(byte)94,(byte)192,(byte)214,(byte)198,(byte)35,(byte)120,(byte)209,(byte)100,(byte)49,(byte)192,(byte)87,(byte)0,(byte)181,(byte)0,(byte)18,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x22a, payload ); + MsgPosLLHGnss msg = new MsgPosLLHGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -81,9 +50,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -94,8 +61,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, -1.22286503810116812e+02, DELTA); value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -103,9 +69,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; @@ -113,9 +77,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; diff --git a/java/test/auto_check_sbp_navigation_MsgPoseRelativeTest.java b/java/test/auto_check_sbp_navigation_MsgPoseRelativeTest.java index a9cc77cbdb..7232de084f 100644 --- a/java/test/auto_check_sbp_navigation_MsgPoseRelativeTest.java +++ b/java/test/auto_check_sbp_navigation_MsgPoseRelativeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPoseRelative.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgPoseRelative.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgPoseRelative; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgPoseRelativeTest { @@ -30,101 +34,9 @@ public class auto_check_sbp_navigation_MsgPoseRelativeTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgPoseRelativeTest.test1"); - byte[] payload = - new byte[] { - (byte) 86, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 86, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 172, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 76, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 38, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 100, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 100, - (byte) 3, - (byte) 200, - (byte) 204, - (byte) 252, - (byte) 168, - (byte) 157, - (byte) 255, - (byte) 115, - (byte) 53, - (byte) 186, - (byte) 144, - (byte) 190, - (byte) 48, - (byte) 34, - (byte) 37, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 5, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x245, payload); - MsgPoseRelative msg = new MsgPoseRelative(sbp); + byte[] payload = new byte[] {(byte)86,(byte)4,(byte)0,(byte)0,(byte)0,(byte)86,(byte)4,(byte)0,(byte)0,(byte)172,(byte)8,(byte)0,(byte)0,(byte)76,(byte)4,(byte)0,(byte)0,(byte)38,(byte)2,(byte)0,(byte)0,(byte)100,(byte)0,(byte)0,(byte)0,(byte)100,(byte)3,(byte)200,(byte)204,(byte)252,(byte)168,(byte)157,(byte)255,(byte)115,(byte)53,(byte)186,(byte)144,(byte)190,(byte)48,(byte)34,(byte)37,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)5, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x245, payload ); + MsgPoseRelative msg = new MsgPoseRelative( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -142,8 +54,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_r_z_z, 1.00000000000000000e+00, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -151,8 +62,7 @@ public void test1() throws Throwable { } value = msg.sensor_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sensor_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sensor_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -160,9 +70,7 @@ public void test1() throws Throwable { } value = msg.timestamp_1; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.timestamp_1 + "' != '" + 1110 + "'", - value.equals(BigInteger.valueOf(1110L))); + org.junit.Assert.assertTrue("'" + msg.timestamp_1 + "' != '" + 1110 + "'", value.equals(BigInteger.valueOf( 1110L ) ) ); } else { value = value.longValue(); expected = 1110L; @@ -170,9 +78,7 @@ public void test1() throws Throwable { } value = msg.timestamp_2; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.timestamp_2 + "' != '" + 2220 + "'", - value.equals(BigInteger.valueOf(2220L))); + org.junit.Assert.assertTrue("'" + msg.timestamp_2 + "' != '" + 2220 + "'", value.equals(BigInteger.valueOf( 2220L ) ) ); } else { value = value.longValue(); expected = 2220L; @@ -180,8 +86,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 1110 + "'", value.equals(BigInteger.valueOf(1110L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 1110 + "'", value.equals(BigInteger.valueOf( 1110L ) ) ); } else { value = value.longValue(); expected = 1110L; @@ -189,9 +94,7 @@ public void test1() throws Throwable { } value = msg.trans[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.trans[0] + "' != '" + 1100 + "'", - value.equals(BigInteger.valueOf(1100L))); + org.junit.Assert.assertTrue("'" + msg.trans[0] + "' != '" + 1100 + "'", value.equals(BigInteger.valueOf( 1100L ) ) ); } else { value = value.longValue(); expected = 1100L; @@ -199,9 +102,7 @@ public void test1() throws Throwable { } value = msg.trans[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.trans[1] + "' != '" + 550 + "'", - value.equals(BigInteger.valueOf(550L))); + org.junit.Assert.assertTrue("'" + msg.trans[1] + "' != '" + 550 + "'", value.equals(BigInteger.valueOf( 550L ) ) ); } else { value = value.longValue(); expected = 550L; @@ -209,9 +110,7 @@ public void test1() throws Throwable { } value = msg.trans[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.trans[2] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.trans[2] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -219,9 +118,7 @@ public void test1() throws Throwable { } value = msg.w; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.w + "' != '" + -859307164 + "'", - value.equals(BigInteger.valueOf(-859307164L))); + org.junit.Assert.assertTrue("'" + msg.w + "' != '" + -859307164 + "'", value.equals(BigInteger.valueOf( -859307164L ) ) ); } else { value = value.longValue(); expected = -859307164L; @@ -229,9 +126,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -6444804 + "'", - value.equals(BigInteger.valueOf(-6444804L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -6444804 + "'", value.equals(BigInteger.valueOf( -6444804L ) ) ); } else { value = value.longValue(); expected = -6444804L; @@ -239,9 +134,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -1866844813 + "'", - value.equals(BigInteger.valueOf(-1866844813L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -1866844813 + "'", value.equals(BigInteger.valueOf( -1866844813L ) ) ); } else { value = value.longValue(); expected = -1866844813L; @@ -249,9 +142,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 622997694 + "'", - value.equals(BigInteger.valueOf(622997694L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 622997694 + "'", value.equals(BigInteger.valueOf( 622997694L ) ) ); } else { value = value.longValue(); expected = 622997694L; diff --git a/java/test/auto_check_sbp_navigation_MsgProtectionLevelDepATest.java b/java/test/auto_check_sbp_navigation_MsgProtectionLevelDepATest.java index ceb1643259..aaafec0c8c 100644 --- a/java/test/auto_check_sbp_navigation_MsgProtectionLevelDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgProtectionLevelDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgProtectionLevelDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgProtectionLevelDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgProtectionLevelDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgProtectionLevelDepATest { @@ -29,53 +33,16 @@ public class auto_check_sbp_navigation_MsgProtectionLevelDepATest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_navigation_MsgProtectionLevelDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 52, - (byte) 126, - (byte) 69, - (byte) 185, - (byte) 47, - (byte) 85, - (byte) 4, - (byte) 139, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 244, - (byte) 190, - (byte) 64, - (byte) 102, - (byte) 102, - (byte) 102, - (byte) 102, - (byte) 102, - (byte) 204, - (byte) 168, - (byte) 64, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 25, - (byte) 39, - (byte) 192, - (byte) 64, - (byte) 248, - }; - SBPMessage sbp = new SBPMessage(0x1694, 0x216, payload); - MsgProtectionLevelDepA msg = new MsgProtectionLevelDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgProtectionLevelDepATest.test1"); + byte[] payload = new byte[] {(byte)52,(byte)126,(byte)69,(byte)185,(byte)47,(byte)85,(byte)4,(byte)139,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)244,(byte)190,(byte)64,(byte)102,(byte)102,(byte)102,(byte)102,(byte)102,(byte)204,(byte)168,(byte)64,(byte)154,(byte)153,(byte)153,(byte)153,(byte)25,(byte)39,(byte)192,(byte)64,(byte)248, }; + SBPMessage sbp = new SBPMessage( 0x1694, 0x216, payload ); + MsgProtectionLevelDepA msg = new MsgProtectionLevelDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 248 + "'", value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -84,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.height, 8.27020000000000073e+03, DELTA); value = msg.hpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hpl + "' != '" + 35588 + "'", - value.equals(BigInteger.valueOf(35588L))); + org.junit.Assert.assertTrue("'" + msg.hpl + "' != '" + 35588 + "'", value.equals(BigInteger.valueOf( 35588L ) ) ); } else { value = value.longValue(); expected = 35588L; @@ -96,9 +61,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, 3.17419999999999982e+03, DELTA); value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 3108339252L + "'", - value.equals(new BigInteger("3108339252"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 3108339252L + "'", value.equals( new BigInteger( "3108339252" ) ) ); } else { value = value.longValue(); expected = 3108339252L; @@ -106,9 +69,7 @@ public void test1() throws Throwable { } value = msg.vpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vpl + "' != '" + 21807 + "'", - value.equals(BigInteger.valueOf(21807L))); + org.junit.Assert.assertTrue("'" + msg.vpl + "' != '" + 21807 + "'", value.equals(BigInteger.valueOf( 21807L ) ) ); } else { value = value.longValue(); expected = 21807L; diff --git a/java/test/auto_check_sbp_navigation_MsgProtectionLevelTest.java b/java/test/auto_check_sbp_navigation_MsgProtectionLevelTest.java index 1d0c2a96e3..3ec37c9c7c 100644 --- a/java/test/auto_check_sbp_navigation_MsgProtectionLevelTest.java +++ b/java/test/auto_check_sbp_navigation_MsgProtectionLevelTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgProtectionLevel.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgProtectionLevel.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgProtectionLevel; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgProtectionLevelTest { @@ -30,95 +34,15 @@ public class auto_check_sbp_navigation_MsgProtectionLevelTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgProtectionLevelTest.test1"); - byte[] payload = - new byte[] { - (byte) 110, - (byte) 84, - (byte) 4, - (byte) 242, - (byte) 46, - (byte) 51, - (byte) 53, - (byte) 160, - (byte) 89, - (byte) 84, - (byte) 167, - (byte) 41, - (byte) 57, - (byte) 21, - (byte) 217, - (byte) 244, - (byte) 61, - (byte) 161, - (byte) 83, - (byte) 104, - (byte) 140, - (byte) 137, - (byte) 90, - (byte) 246, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 170, - (byte) 180, - (byte) 64, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 25, - (byte) 88, - (byte) 195, - (byte) 64, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 51, - (byte) 195, - (byte) 121, - (byte) 64, - (byte) 231, - (byte) 251, - (byte) 38, - (byte) 221, - (byte) 208, - (byte) 183, - (byte) 167, - (byte) 80, - (byte) 223, - (byte) 26, - (byte) 97, - (byte) 164, - (byte) 45, - (byte) 46, - (byte) 186, - (byte) 60, - (byte) 235, - (byte) 227, - (byte) 183, - (byte) 160, - (byte) 187, - (byte) 93, - (byte) 116, - (byte) 224, - (byte) 105, - (byte) 40, - (byte) 32, - (byte) 33, - }; - SBPMessage sbp = new SBPMessage(0x032d, 0x217, payload); - MsgProtectionLevel msg = new MsgProtectionLevel(sbp); + byte[] payload = new byte[] {(byte)110,(byte)84,(byte)4,(byte)242,(byte)46,(byte)51,(byte)53,(byte)160,(byte)89,(byte)84,(byte)167,(byte)41,(byte)57,(byte)21,(byte)217,(byte)244,(byte)61,(byte)161,(byte)83,(byte)104,(byte)140,(byte)137,(byte)90,(byte)246,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)170,(byte)180,(byte)64,(byte)154,(byte)153,(byte)153,(byte)153,(byte)25,(byte)88,(byte)195,(byte)64,(byte)51,(byte)51,(byte)51,(byte)51,(byte)51,(byte)195,(byte)121,(byte)64,(byte)231,(byte)251,(byte)38,(byte)221,(byte)208,(byte)183,(byte)167,(byte)80,(byte)223,(byte)26,(byte)97,(byte)164,(byte)45,(byte)46,(byte)186,(byte)60,(byte)235,(byte)227,(byte)183,(byte)160,(byte)187,(byte)93,(byte)116,(byte)224,(byte)105,(byte)40,(byte)32,(byte)33, }; + SBPMessage sbp = new SBPMessage( 0x032d, 0x217, payload ); + MsgProtectionLevel msg = new MsgProtectionLevel( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.atpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.atpl + "' != '" + 10663 + "'", - value.equals(BigInteger.valueOf(10663L))); + org.junit.Assert.assertTrue("'" + msg.atpl + "' != '" + 10663 + "'", value.equals(BigInteger.valueOf( 10663L ) ) ); } else { value = value.longValue(); expected = 10663L; @@ -126,9 +50,7 @@ public void test1() throws Throwable { } value = msg.ctpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ctpl + "' != '" + 5433 + "'", - value.equals(BigInteger.valueOf(5433L))); + org.junit.Assert.assertTrue("'" + msg.ctpl + "' != '" + 5433 + "'", value.equals(BigInteger.valueOf( 5433L ) ) ); } else { value = value.longValue(); expected = 5433L; @@ -136,9 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 555755625 + "'", - value.equals(BigInteger.valueOf(555755625L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 555755625 + "'", value.equals(BigInteger.valueOf( 555755625L ) ) ); } else { value = value.longValue(); expected = 555755625L; @@ -146,9 +66,7 @@ public void test1() throws Throwable { } value = msg.heading; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.heading + "' != '" + -529244741 + "'", - value.equals(BigInteger.valueOf(-529244741L))); + org.junit.Assert.assertTrue("'" + msg.heading + "' != '" + -529244741 + "'", value.equals(BigInteger.valueOf( -529244741L ) ) ); } else { value = value.longValue(); expected = -529244741L; @@ -157,9 +75,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.height, 4.12199999999999989e+02, DELTA); value = msg.hopl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hopl + "' != '" + 26707 + "'", - value.equals(BigInteger.valueOf(26707L))); + org.junit.Assert.assertTrue("'" + msg.hopl + "' != '" + 26707 + "'", value.equals(BigInteger.valueOf( 26707L ) ) ); } else { value = value.longValue(); expected = 26707L; @@ -167,9 +83,7 @@ public void test1() throws Throwable { } value = msg.hpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hpl + "' != '" + 41013 + "'", - value.equals(BigInteger.valueOf(41013L))); + org.junit.Assert.assertTrue("'" + msg.hpl + "' != '" + 41013 + "'", value.equals(BigInteger.valueOf( 41013L ) ) ); } else { value = value.longValue(); expected = 41013L; @@ -177,9 +91,7 @@ public void test1() throws Throwable { } value = msg.hvpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hvpl + "' != '" + 62681 + "'", - value.equals(BigInteger.valueOf(62681L))); + org.junit.Assert.assertTrue("'" + msg.hvpl + "' != '" + 62681 + "'", value.equals(BigInteger.valueOf( 62681L ) ) ); } else { value = value.longValue(); expected = 62681L; @@ -189,9 +101,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.lon, 9.90420000000000073e+03, DELTA); value = msg.pitch; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pitch + "' != '" + -1598561301 + "'", - value.equals(BigInteger.valueOf(-1598561301L))); + org.junit.Assert.assertTrue("'" + msg.pitch + "' != '" + -1598561301 + "'", value.equals(BigInteger.valueOf( -1598561301L ) ) ); } else { value = value.longValue(); expected = -1598561301L; @@ -199,9 +109,7 @@ public void test1() throws Throwable { } value = msg.popl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.popl + "' != '" + 35212 + "'", - value.equals(BigInteger.valueOf(35212L))); + org.junit.Assert.assertTrue("'" + msg.popl + "' != '" + 35212 + "'", value.equals(BigInteger.valueOf( 35212L ) ) ); } else { value = value.longValue(); expected = 35212L; @@ -209,9 +117,7 @@ public void test1() throws Throwable { } value = msg.roll; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.roll + "' != '" + 1018834477 + "'", - value.equals(BigInteger.valueOf(1018834477L))); + org.junit.Assert.assertTrue("'" + msg.roll + "' != '" + 1018834477 + "'", value.equals(BigInteger.valueOf( 1018834477L ) ) ); } else { value = value.longValue(); expected = 1018834477L; @@ -219,9 +125,7 @@ public void test1() throws Throwable { } value = msg.ropl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ropl + "' != '" + 63066 + "'", - value.equals(BigInteger.valueOf(63066L))); + org.junit.Assert.assertTrue("'" + msg.ropl + "' != '" + 63066 + "'", value.equals(BigInteger.valueOf( 63066L ) ) ); } else { value = value.longValue(); expected = 63066L; @@ -229,9 +133,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 4060370030L + "'", - value.equals(new BigInteger("4060370030"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 4060370030L + "'", value.equals( new BigInteger( "4060370030" ) ) ); } else { value = value.longValue(); expected = 4060370030L; @@ -239,9 +141,7 @@ public void test1() throws Throwable { } value = msg.v_x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_x + "' != '" + -584647705 + "'", - value.equals(BigInteger.valueOf(-584647705L))); + org.junit.Assert.assertTrue("'" + msg.v_x + "' != '" + -584647705 + "'", value.equals(BigInteger.valueOf( -584647705L ) ) ); } else { value = value.longValue(); expected = -584647705L; @@ -249,9 +149,7 @@ public void test1() throws Throwable { } value = msg.v_y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_y + "' != '" + 1353168848 + "'", - value.equals(BigInteger.valueOf(1353168848L))); + org.junit.Assert.assertTrue("'" + msg.v_y + "' != '" + 1353168848 + "'", value.equals(BigInteger.valueOf( 1353168848L ) ) ); } else { value = value.longValue(); expected = 1353168848L; @@ -259,9 +157,7 @@ public void test1() throws Throwable { } value = msg.v_z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_z + "' != '" + -1537140001 + "'", - value.equals(BigInteger.valueOf(-1537140001L))); + org.junit.Assert.assertTrue("'" + msg.v_z + "' != '" + -1537140001 + "'", value.equals(BigInteger.valueOf( -1537140001L ) ) ); } else { value = value.longValue(); expected = -1537140001L; @@ -269,9 +165,7 @@ public void test1() throws Throwable { } value = msg.vpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vpl + "' != '" + 21593 + "'", - value.equals(BigInteger.valueOf(21593L))); + org.junit.Assert.assertTrue("'" + msg.vpl + "' != '" + 21593 + "'", value.equals(BigInteger.valueOf( 21593L ) ) ); } else { value = value.longValue(); expected = 21593L; @@ -279,9 +173,7 @@ public void test1() throws Throwable { } value = msg.vvpl; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vvpl + "' != '" + 41277 + "'", - value.equals(BigInteger.valueOf(41277L))); + org.junit.Assert.assertTrue("'" + msg.vvpl + "' != '" + 41277 + "'", value.equals(BigInteger.valueOf( 41277L ) ) ); } else { value = value.longValue(); expected = 41277L; @@ -289,9 +181,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 13102 + "'", - value.equals(BigInteger.valueOf(13102L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 13102 + "'", value.equals(BigInteger.valueOf( 13102L ) ) ); } else { value = value.longValue(); expected = 13102L; diff --git a/java/test/auto_check_sbp_navigation_MsgReferenceFrameParamTest.java b/java/test/auto_check_sbp_navigation_MsgReferenceFrameParamTest.java index 845a5765e7..69fa519cea 100644 Binary files a/java/test/auto_check_sbp_navigation_MsgReferenceFrameParamTest.java and b/java/test/auto_check_sbp_navigation_MsgReferenceFrameParamTest.java differ diff --git a/java/test/auto_check_sbp_navigation_MsgUTCLeapSecondTest.java b/java/test/auto_check_sbp_navigation_MsgUTCLeapSecondTest.java index f9154c446f..40d92f8f18 100644 --- a/java/test/auto_check_sbp_navigation_MsgUTCLeapSecondTest.java +++ b/java/test/auto_check_sbp_navigation_MsgUTCLeapSecondTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCLeapSecond.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCLeapSecond.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgUtcLeapSecond; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgUTCLeapSecondTest { @@ -30,21 +34,15 @@ public class auto_check_sbp_navigation_MsgUTCLeapSecondTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgUTCLeapSecondTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 2, (byte) 0, (byte) 3, (byte) 4, (byte) 5, (byte) 0, - (byte) 6, (byte) 0, (byte) 7, (byte) 0, (byte) 8, (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x023A, payload); - MsgUtcLeapSecond msg = new MsgUtcLeapSecond(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)2,(byte)0,(byte)3,(byte)4,(byte)5,(byte)0,(byte)6,(byte)0,(byte)7,(byte)0,(byte)8,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x023A, payload ); + MsgUtcLeapSecond msg = new MsgUtcLeapSecond( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.count_after; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.count_after + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.count_after + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -52,9 +50,7 @@ public void test1() throws Throwable { } value = msg.count_before; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.count_before + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.count_before + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -62,8 +58,7 @@ public void test1() throws Throwable { } value = msg.ref_dn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ref_dn + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.ref_dn + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -71,8 +66,7 @@ public void test1() throws Throwable { } value = msg.ref_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ref_wn + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.ref_wn + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -80,9 +74,7 @@ public void test1() throws Throwable { } value = msg.reserved_0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved_0 + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.reserved_0 + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -90,9 +82,7 @@ public void test1() throws Throwable { } value = msg.reserved_1; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved_1 + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.reserved_1 + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -100,9 +90,7 @@ public void test1() throws Throwable { } value = msg.reserved_2; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved_2 + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.reserved_2 + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -110,9 +98,7 @@ public void test1() throws Throwable { } value = msg.reserved_3; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved_3 + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.reserved_3 + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -120,9 +106,7 @@ public void test1() throws Throwable { } value = msg.reserved_4; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved_4 + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.reserved_4 + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; diff --git a/java/test/auto_check_sbp_navigation_MsgUTCTimeGNSSTest.java b/java/test/auto_check_sbp_navigation_MsgUTCTimeGNSSTest.java index 281af4df40..28b5705df0 100644 --- a/java/test/auto_check_sbp_navigation_MsgUTCTimeGNSSTest.java +++ b/java/test/auto_check_sbp_navigation_MsgUTCTimeGNSSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCTimeGNSS.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCTimeGNSS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgUtcTimeGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgUTCTimeGNSSTest { @@ -30,21 +34,15 @@ public class auto_check_sbp_navigation_MsgUTCTimeGNSSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgUTCTimeGNSSTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 24, (byte) 229, (byte) 233, (byte) 29, (byte) 229, (byte) 7, - (byte) 4, (byte) 9, (byte) 19, (byte) 24, (byte) 9, (byte) 0, (byte) 8, - (byte) 175, (byte) 47, - }; - SBPMessage sbp = new SBPMessage(0x315, 0x105, payload); - MsgUtcTimeGnss msg = new MsgUtcTimeGnss(sbp); + byte[] payload = new byte[] {(byte)1,(byte)24,(byte)229,(byte)233,(byte)29,(byte)229,(byte)7,(byte)4,(byte)9,(byte)19,(byte)24,(byte)9,(byte)0,(byte)8,(byte)175,(byte)47, }; + SBPMessage sbp = new SBPMessage( 0x315, 0x105, payload ); + MsgUtcTimeGnss msg = new MsgUtcTimeGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.day; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.day + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.day + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -52,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -61,8 +58,7 @@ public void test1() throws Throwable { } value = msg.hours; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hours + "' != '" + 19 + "'", value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.hours + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -70,8 +66,7 @@ public void test1() throws Throwable { } value = msg.minutes; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.minutes + "' != '" + 24 + "'", value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.minutes + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -79,8 +74,7 @@ public void test1() throws Throwable { } value = msg.month; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.month + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.month + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -88,9 +82,7 @@ public void test1() throws Throwable { } value = msg.ns; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns + "' != '" + 800000000 + "'", - value.equals(BigInteger.valueOf(800000000L))); + org.junit.Assert.assertTrue("'" + msg.ns + "' != '" + 800000000 + "'", value.equals(BigInteger.valueOf( 800000000L ) ) ); } else { value = value.longValue(); expected = 800000000L; @@ -98,8 +90,7 @@ public void test1() throws Throwable { } value = msg.seconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.seconds + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.seconds + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -107,9 +98,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; @@ -117,9 +106,7 @@ public void test1() throws Throwable { } value = msg.year; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.year + "' != '" + 2021 + "'", - value.equals(BigInteger.valueOf(2021L))); + org.junit.Assert.assertTrue("'" + msg.year + "' != '" + 2021 + "'", value.equals(BigInteger.valueOf( 2021L ) ) ); } else { value = value.longValue(); expected = 2021L; diff --git a/java/test/auto_check_sbp_navigation_MsgUTCTimeTest.java b/java/test/auto_check_sbp_navigation_MsgUTCTimeTest.java index d0030b53a3..a83b47783f 100644 --- a/java/test/auto_check_sbp_navigation_MsgUTCTimeTest.java +++ b/java/test/auto_check_sbp_navigation_MsgUTCTimeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCTime.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgUTCTime.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgUtcTime; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgUTCTimeTest { @@ -27,22 +32,17 @@ public class auto_check_sbp_navigation_MsgUTCTimeTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgUTCTimeTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 24, (byte) 229, (byte) 233, (byte) 29, (byte) 229, (byte) 7, - (byte) 4, (byte) 9, (byte) 19, (byte) 24, (byte) 9, (byte) 0, (byte) 8, - (byte) 175, (byte) 47, - }; - SBPMessage sbp = new SBPMessage(0x315, 0x103, payload); - MsgUtcTime msg = new MsgUtcTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgUTCTimeTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)24,(byte)229,(byte)233,(byte)29,(byte)229,(byte)7,(byte)4,(byte)9,(byte)19,(byte)24,(byte)9,(byte)0,(byte)8,(byte)175,(byte)47, }; + SBPMessage sbp = new SBPMessage( 0x315, 0x103, payload ); + MsgUtcTime msg = new MsgUtcTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.day; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.day + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.day + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -50,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -59,8 +58,7 @@ public void test1() throws Throwable { } value = msg.hours; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hours + "' != '" + 19 + "'", value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.hours + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -68,8 +66,7 @@ public void test1() throws Throwable { } value = msg.minutes; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.minutes + "' != '" + 24 + "'", value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.minutes + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -77,8 +74,7 @@ public void test1() throws Throwable { } value = msg.month; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.month + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.month + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -86,9 +82,7 @@ public void test1() throws Throwable { } value = msg.ns; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ns + "' != '" + 800000000 + "'", - value.equals(BigInteger.valueOf(800000000L))); + org.junit.Assert.assertTrue("'" + msg.ns + "' != '" + 800000000 + "'", value.equals(BigInteger.valueOf( 800000000L ) ) ); } else { value = value.longValue(); expected = 800000000L; @@ -96,8 +90,7 @@ public void test1() throws Throwable { } value = msg.seconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.seconds + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.seconds + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -105,9 +98,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867800 + "'", - value.equals(BigInteger.valueOf(501867800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867800 + "'", value.equals(BigInteger.valueOf( 501867800L ) ) ); } else { value = value.longValue(); expected = 501867800L; @@ -115,9 +106,7 @@ public void test1() throws Throwable { } value = msg.year; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.year + "' != '" + 2021 + "'", - value.equals(BigInteger.valueOf(2021L))); + org.junit.Assert.assertTrue("'" + msg.year + "' != '" + 2021 + "'", value.equals(BigInteger.valueOf( 2021L ) ) ); } else { value = value.longValue(); expected = 2021L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelBodyTest.java b/java/test/auto_check_sbp_navigation_MsgVelBodyTest.java index dc3b552fdb..9fb2f4a4b6 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelBodyTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelBodyTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelBody.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelBody.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelBody; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelBodyTest { @@ -27,54 +32,11 @@ public class auto_check_sbp_navigation_MsgVelBodyTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelBodyTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 3, - (byte) 8, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x213, payload); - MsgVelBody msg = new MsgVelBody(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelBodyTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)0,(byte)0,(byte)4,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)160,(byte)64,(byte)0,(byte)0,(byte)224,(byte)64,(byte)0,(byte)0,(byte)224,(byte)64,(byte)0,(byte)0,(byte)64,(byte)64,(byte)0,(byte)0,(byte)0,(byte)64,(byte)3,(byte)8, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x213, payload ); + MsgVelBody msg = new MsgVelBody( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -86,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_z_z, 2.00000000000000000e+00, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -95,8 +56,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -104,8 +64,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -113,8 +72,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -122,8 +80,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -131,8 +88,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelCogTest.java b/java/test/auto_check_sbp_navigation_MsgVelCogTest.java index c19df71a5c..c7bb06c4d6 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelCogTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelCogTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelCog.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelCog.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelCog; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelCogTest { @@ -27,24 +32,17 @@ public class auto_check_sbp_navigation_MsgVelCogTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test1"); - byte[] payload = - new byte[] { - (byte) 48, (byte) 246, (byte) 122, (byte) 19, (byte) 232, (byte) 3, (byte) 0, - (byte) 0, (byte) 208, (byte) 7, (byte) 0, (byte) 0, (byte) 184, (byte) 11, - (byte) 0, (byte) 0, (byte) 160, (byte) 15, (byte) 0, (byte) 0, (byte) 136, - (byte) 19, (byte) 0, (byte) 0, (byte) 112, (byte) 23, (byte) 0, (byte) 0, - (byte) 62, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0x21C, payload); - MsgVelCog msg = new MsgVelCog(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test1"); + byte[] payload = new byte[] {(byte)48,(byte)246,(byte)122,(byte)19,(byte)232,(byte)3,(byte)0,(byte)0,(byte)208,(byte)7,(byte)0,(byte)0,(byte)184,(byte)11,(byte)0,(byte)0,(byte)160,(byte)15,(byte)0,(byte)0,(byte)136,(byte)19,(byte)0,(byte)0,(byte)112,(byte)23,(byte)0,(byte)0,(byte)62,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0x21C, payload ); + MsgVelCog msg = new MsgVelCog( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog + "' != '" + 1000 + "'", value.equals(BigInteger.valueOf(1000L))); + org.junit.Assert.assertTrue("'" + msg.cog + "' != '" + 1000 + "'", value.equals(BigInteger.valueOf( 1000L ) ) ); } else { value = value.longValue(); expected = 1000L; @@ -52,9 +50,7 @@ public void test1() throws Throwable { } value = msg.cog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog_accuracy + "' != '" + 4000 + "'", - value.equals(BigInteger.valueOf(4000L))); + org.junit.Assert.assertTrue("'" + msg.cog_accuracy + "' != '" + 4000 + "'", value.equals(BigInteger.valueOf( 4000L ) ) ); } else { value = value.longValue(); expected = 4000L; @@ -62,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 62 + "'", value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -71,8 +66,7 @@ public void test1() throws Throwable { } value = msg.sog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog + "' != '" + 2000 + "'", value.equals(BigInteger.valueOf(2000L))); + org.junit.Assert.assertTrue("'" + msg.sog + "' != '" + 2000 + "'", value.equals(BigInteger.valueOf( 2000L ) ) ); } else { value = value.longValue(); expected = 2000L; @@ -80,9 +74,7 @@ public void test1() throws Throwable { } value = msg.sog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog_accuracy + "' != '" + 5000 + "'", - value.equals(BigInteger.valueOf(5000L))); + org.junit.Assert.assertTrue("'" + msg.sog_accuracy + "' != '" + 5000 + "'", value.equals(BigInteger.valueOf( 5000L ) ) ); } else { value = value.longValue(); expected = 5000L; @@ -90,9 +82,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825520 + "'", - value.equals(BigInteger.valueOf(326825520L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825520 + "'", value.equals(BigInteger.valueOf( 326825520L ) ) ); } else { value = value.longValue(); expected = 326825520L; @@ -100,9 +90,7 @@ public void test1() throws Throwable { } value = msg.v_up; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up + "' != '" + 3000 + "'", - value.equals(BigInteger.valueOf(3000L))); + org.junit.Assert.assertTrue("'" + msg.v_up + "' != '" + 3000 + "'", value.equals(BigInteger.valueOf( 3000L ) ) ); } else { value = value.longValue(); expected = 3000L; @@ -110,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_up_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up_accuracy + "' != '" + 6000 + "'", - value.equals(BigInteger.valueOf(6000L))); + org.junit.Assert.assertTrue("'" + msg.v_up_accuracy + "' != '" + 6000 + "'", value.equals(BigInteger.valueOf( 6000L ) ) ); } else { value = value.longValue(); expected = 6000L; @@ -124,24 +110,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test2"); - byte[] payload = - new byte[] { - (byte) 48, (byte) 246, (byte) 122, (byte) 19, (byte) 123, (byte) 0, (byte) 0, - (byte) 0, (byte) 200, (byte) 1, (byte) 0, (byte) 0, (byte) 24, (byte) 252, - (byte) 255, (byte) 255, (byte) 0, (byte) 149, (byte) 186, (byte) 10, (byte) 100, - (byte) 0, (byte) 0, (byte) 0, (byte) 100, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0x21C, payload); - MsgVelCog msg = new MsgVelCog(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test2"); + byte[] payload = new byte[] {(byte)48,(byte)246,(byte)122,(byte)19,(byte)123,(byte)0,(byte)0,(byte)0,(byte)200,(byte)1,(byte)0,(byte)0,(byte)24,(byte)252,(byte)255,(byte)255,(byte)0,(byte)149,(byte)186,(byte)10,(byte)100,(byte)0,(byte)0,(byte)0,(byte)100,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0x21C, payload ); + MsgVelCog msg = new MsgVelCog( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog + "' != '" + 123 + "'", value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.cog + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -149,9 +128,7 @@ public void test2() throws Throwable { } value = msg.cog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog_accuracy + "' != '" + 180000000 + "'", - value.equals(BigInteger.valueOf(180000000L))); + org.junit.Assert.assertTrue("'" + msg.cog_accuracy + "' != '" + 180000000 + "'", value.equals(BigInteger.valueOf( 180000000L ) ) ); } else { value = value.longValue(); expected = 180000000L; @@ -159,8 +136,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -168,8 +144,7 @@ public void test2() throws Throwable { } value = msg.sog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog + "' != '" + 456 + "'", value.equals(BigInteger.valueOf(456L))); + org.junit.Assert.assertTrue("'" + msg.sog + "' != '" + 456 + "'", value.equals(BigInteger.valueOf( 456L ) ) ); } else { value = value.longValue(); expected = 456L; @@ -177,9 +152,7 @@ public void test2() throws Throwable { } value = msg.sog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog_accuracy + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.sog_accuracy + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -187,9 +160,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825520 + "'", - value.equals(BigInteger.valueOf(326825520L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825520 + "'", value.equals(BigInteger.valueOf( 326825520L ) ) ); } else { value = value.longValue(); expected = 326825520L; @@ -197,9 +168,7 @@ public void test2() throws Throwable { } value = msg.v_up; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up + "' != '" + -1000 + "'", - value.equals(BigInteger.valueOf(-1000L))); + org.junit.Assert.assertTrue("'" + msg.v_up + "' != '" + -1000 + "'", value.equals(BigInteger.valueOf( -1000L ) ) ); } else { value = value.longValue(); expected = -1000L; @@ -207,9 +176,7 @@ public void test2() throws Throwable { } value = msg.v_up_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up_accuracy + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.v_up_accuracy + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -221,49 +188,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test3"); - byte[] payload = - new byte[] { - (byte) 48, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0x21C, payload); - MsgVelCog msg = new MsgVelCog(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelCogTest.test3"); + byte[] payload = new byte[] {(byte)48,(byte)246,(byte)122,(byte)19,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0x21C, payload ); + MsgVelCog msg = new MsgVelCog( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.cog + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -271,9 +206,7 @@ public void test3() throws Throwable { } value = msg.cog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cog_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.cog_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -281,8 +214,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -290,8 +222,7 @@ public void test3() throws Throwable { } value = msg.sog; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sog + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -299,9 +230,7 @@ public void test3() throws Throwable { } value = msg.sog_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sog_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sog_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -309,9 +238,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825520 + "'", - value.equals(BigInteger.valueOf(326825520L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825520 + "'", value.equals(BigInteger.valueOf( 326825520L ) ) ); } else { value = value.longValue(); expected = 326825520L; @@ -319,8 +246,7 @@ public void test3() throws Throwable { } value = msg.v_up; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_up + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -328,9 +254,7 @@ public void test3() throws Throwable { } value = msg.v_up_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_up_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_up_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelECEFCovTest.java b/java/test/auto_check_sbp_navigation_MsgVelECEFCovTest.java index a82823c7b3..87c2f52b8f 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelECEFCovTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelECEFCovTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEFCov.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEFCov.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelECEFCov; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelECEFCovTest { @@ -27,54 +32,11 @@ public class auto_check_sbp_navigation_MsgVelECEFCovTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFCovTest.test1"); - byte[] payload = - new byte[] { - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 6, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 3, - (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x215, payload); - MsgVelECEFCov msg = new MsgVelECEFCov(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFCovTest.test1"); + byte[] payload = new byte[] {(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)6,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)64,(byte)64,(byte)3,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x215, payload ); + MsgVelECEFCov msg = new MsgVelECEFCov( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -86,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_z_z, 3.00000000000000000e+00, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -95,8 +56,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -104,8 +64,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -113,8 +72,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -122,8 +80,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -131,8 +88,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelECEFDepATest.java b/java/test/auto_check_sbp_navigation_MsgVelECEFDepATest.java index 96471a90a1..3ceab2ff0d 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelECEFDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelECEFDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEFDepA.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEFDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelECEFDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelECEFDepATest { @@ -30,38 +34,15 @@ public class auto_check_sbp_navigation_MsgVelECEFDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 218, - (byte) 11, - (byte) 0, - (byte) 0, - (byte) 134, - (byte) 245, - (byte) 255, - (byte) 255, - (byte) 163, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)218,(byte)11,(byte)0,(byte)0,(byte)134,(byte)245,(byte)255,(byte)255,(byte)163,(byte)252,(byte)255,(byte)255,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -69,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -78,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -97,8 +74,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 3034 + "'", value.equals(BigInteger.valueOf(3034L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 3034 + "'", value.equals(BigInteger.valueOf( 3034L ) ) ); } else { value = value.longValue(); expected = 3034L; @@ -106,8 +82,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -2682 + "'", value.equals(BigInteger.valueOf(-2682L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -2682 + "'", value.equals(BigInteger.valueOf( -2682L ) ) ); } else { value = value.longValue(); expected = -2682L; @@ -115,8 +90,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -861 + "'", value.equals(BigInteger.valueOf(-861L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -861 + "'", value.equals(BigInteger.valueOf( -861L ) ) ); } else { value = value.longValue(); expected = -861L; @@ -130,21 +104,15 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 120, (byte) 46, (byte) 39, (byte) 0, (byte) 68, (byte) 11, (byte) 0, - (byte) 0, (byte) 24, (byte) 246, (byte) 255, (byte) 255, (byte) 220, (byte) 252, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)68,(byte)11,(byte)0,(byte)0,(byte)24,(byte)246,(byte)255,(byte)255,(byte)220,(byte)252,(byte)255,(byte)255,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -152,8 +120,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -161,8 +128,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -170,9 +136,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -180,8 +144,7 @@ public void test2() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 2884 + "'", value.equals(BigInteger.valueOf(2884L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 2884 + "'", value.equals(BigInteger.valueOf( 2884L ) ) ); } else { value = value.longValue(); expected = 2884L; @@ -189,8 +152,7 @@ public void test2() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -2536 + "'", value.equals(BigInteger.valueOf(-2536L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -2536 + "'", value.equals(BigInteger.valueOf( -2536L ) ) ); } else { value = value.longValue(); expected = -2536L; @@ -198,8 +160,7 @@ public void test2() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -804 + "'", value.equals(BigInteger.valueOf(-804L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -804 + "'", value.equals(BigInteger.valueOf( -804L ) ) ); } else { value = value.longValue(); expected = -804L; @@ -213,21 +174,15 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 220, (byte) 46, (byte) 39, (byte) 0, (byte) 21, (byte) 11, (byte) 0, - (byte) 0, (byte) 77, (byte) 246, (byte) 255, (byte) 255, (byte) 247, (byte) 252, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)21,(byte)11,(byte)0,(byte)0,(byte)77,(byte)246,(byte)255,(byte)255,(byte)247,(byte)252,(byte)255,(byte)255,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -235,8 +190,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -244,8 +198,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -253,9 +206,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -263,8 +214,7 @@ public void test3() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 2837 + "'", value.equals(BigInteger.valueOf(2837L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 2837 + "'", value.equals(BigInteger.valueOf( 2837L ) ) ); } else { value = value.longValue(); expected = 2837L; @@ -272,8 +222,7 @@ public void test3() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -2483 + "'", value.equals(BigInteger.valueOf(-2483L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -2483 + "'", value.equals(BigInteger.valueOf( -2483L ) ) ); } else { value = value.longValue(); expected = -2483L; @@ -281,8 +230,7 @@ public void test3() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -777 + "'", value.equals(BigInteger.valueOf(-777L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -777 + "'", value.equals(BigInteger.valueOf( -777L ) ) ); } else { value = value.longValue(); expected = -777L; @@ -296,21 +244,15 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 64, (byte) 47, (byte) 39, (byte) 0, (byte) 121, (byte) 11, (byte) 0, - (byte) 0, (byte) 2, (byte) 246, (byte) 255, (byte) 255, (byte) 234, (byte) 252, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)121,(byte)11,(byte)0,(byte)0,(byte)2,(byte)246,(byte)255,(byte)255,(byte)234,(byte)252,(byte)255,(byte)255,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -318,8 +260,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -327,8 +268,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -336,9 +276,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -346,8 +284,7 @@ public void test4() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 2937 + "'", value.equals(BigInteger.valueOf(2937L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 2937 + "'", value.equals(BigInteger.valueOf( 2937L ) ) ); } else { value = value.longValue(); expected = 2937L; @@ -355,8 +292,7 @@ public void test4() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -2558 + "'", value.equals(BigInteger.valueOf(-2558L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -2558 + "'", value.equals(BigInteger.valueOf( -2558L ) ) ); } else { value = value.longValue(); expected = -2558L; @@ -364,8 +300,7 @@ public void test4() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -790 + "'", value.equals(BigInteger.valueOf(-790L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -790 + "'", value.equals(BigInteger.valueOf( -790L ) ) ); } else { value = value.longValue(); expected = -790L; @@ -379,21 +314,15 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 164, (byte) 47, (byte) 39, (byte) 0, (byte) 31, (byte) 11, (byte) 0, - (byte) 0, (byte) 93, (byte) 246, (byte) 255, (byte) 255, (byte) 16, (byte) 253, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 9, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)164,(byte)47,(byte)39,(byte)0,(byte)31,(byte)11,(byte)0,(byte)0,(byte)93,(byte)246,(byte)255,(byte)255,(byte)16,(byte)253,(byte)255,(byte)255,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -401,8 +330,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -410,8 +338,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -419,9 +346,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568100 + "'", - value.equals(BigInteger.valueOf(2568100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568100 + "'", value.equals(BigInteger.valueOf( 2568100L ) ) ); } else { value = value.longValue(); expected = 2568100L; @@ -429,8 +354,7 @@ public void test5() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 2847 + "'", value.equals(BigInteger.valueOf(2847L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 2847 + "'", value.equals(BigInteger.valueOf( 2847L ) ) ); } else { value = value.longValue(); expected = 2847L; @@ -438,8 +362,7 @@ public void test5() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -2467 + "'", value.equals(BigInteger.valueOf(-2467L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -2467 + "'", value.equals(BigInteger.valueOf( -2467L ) ) ); } else { value = value.longValue(); expected = -2467L; @@ -447,8 +370,7 @@ public void test5() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -752 + "'", value.equals(BigInteger.valueOf(-752L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -752 + "'", value.equals(BigInteger.valueOf( -752L ) ) ); } else { value = value.longValue(); expected = -752L; @@ -462,38 +384,15 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 212, - (byte) 157, - (byte) 67, - (byte) 24, - (byte) 24, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 245, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 219, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)212,(byte)157,(byte)67,(byte)24,(byte)24,(byte)0,(byte)0,(byte)0,(byte)245,(byte)255,(byte)255,(byte)255,(byte)219,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -501,8 +400,7 @@ public void test6() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -510,8 +408,7 @@ public void test6() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -519,9 +416,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -529,8 +424,7 @@ public void test6() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 24 + "'", value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -538,8 +432,7 @@ public void test6() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -11 + "'", value.equals(BigInteger.valueOf(-11L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -11 + "'", value.equals(BigInteger.valueOf( -11L ) ) ); } else { value = value.longValue(); expected = -11L; @@ -547,8 +440,7 @@ public void test6() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -37 + "'", value.equals(BigInteger.valueOf(-37L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -37 + "'", value.equals(BigInteger.valueOf( -37L ) ) ); } else { value = value.longValue(); expected = -37L; @@ -562,21 +454,15 @@ public void test6() throws Throwable { public void test7() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 56, (byte) 158, (byte) 67, (byte) 24, (byte) 4, (byte) 0, (byte) 0, - (byte) 0, (byte) 234, (byte) 255, (byte) 255, (byte) 255, (byte) 18, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 8, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)4,(byte)0,(byte)0,(byte)0,(byte)234,(byte)255,(byte)255,(byte)255,(byte)18,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -584,8 +470,7 @@ public void test7() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -593,8 +478,7 @@ public void test7() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -602,9 +486,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -612,8 +494,7 @@ public void test7() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -621,8 +502,7 @@ public void test7() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -22 + "'", value.equals(BigInteger.valueOf(-22L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -22 + "'", value.equals(BigInteger.valueOf( -22L ) ) ); } else { value = value.longValue(); expected = -22L; @@ -630,8 +510,7 @@ public void test7() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 18 + "'", value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -645,38 +524,15 @@ public void test7() throws Throwable { public void test8() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 230, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)156,(byte)158,(byte)67,(byte)24,(byte)230,(byte)255,(byte)255,(byte)255,(byte)4,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -684,8 +540,7 @@ public void test8() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -693,8 +548,7 @@ public void test8() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -702,9 +556,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084700 + "'", - value.equals(BigInteger.valueOf(407084700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084700 + "'", value.equals(BigInteger.valueOf( 407084700L ) ) ); } else { value = value.longValue(); expected = 407084700L; @@ -712,8 +564,7 @@ public void test8() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -26 + "'", value.equals(BigInteger.valueOf(-26L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -26 + "'", value.equals(BigInteger.valueOf( -26L ) ) ); } else { value = value.longValue(); expected = -26L; @@ -721,8 +572,7 @@ public void test8() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -730,8 +580,7 @@ public void test8() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -745,21 +594,15 @@ public void test8() throws Throwable { public void test9() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 159, (byte) 67, (byte) 24, (byte) 247, (byte) 255, (byte) 255, - (byte) 255, (byte) 237, (byte) 255, (byte) 255, (byte) 255, (byte) 28, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 8, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)247,(byte)255,(byte)255,(byte)255,(byte)237,(byte)255,(byte)255,(byte)255,(byte)28,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -767,8 +610,7 @@ public void test9() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -776,8 +618,7 @@ public void test9() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -785,9 +626,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -795,8 +634,7 @@ public void test9() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -9 + "'", value.equals(BigInteger.valueOf(-9L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -9 + "'", value.equals(BigInteger.valueOf( -9L ) ) ); } else { value = value.longValue(); expected = -9L; @@ -804,8 +642,7 @@ public void test9() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -19 + "'", value.equals(BigInteger.valueOf(-19L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -19 + "'", value.equals(BigInteger.valueOf( -19L ) ) ); } else { value = value.longValue(); expected = -19L; @@ -813,8 +650,7 @@ public void test9() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 28 + "'", value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -828,38 +664,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 245, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)159,(byte)67,(byte)24,(byte)255,(byte)255,(byte)255,(byte)255,(byte)2,(byte)0,(byte)0,(byte)0,(byte)245,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -867,8 +680,7 @@ public void test10() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -876,8 +688,7 @@ public void test10() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -885,9 +696,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084900 + "'", - value.equals(BigInteger.valueOf(407084900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084900 + "'", value.equals(BigInteger.valueOf( 407084900L ) ) ); } else { value = value.longValue(); expected = 407084900L; @@ -895,8 +704,7 @@ public void test10() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -1 + "'", value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -904,8 +712,7 @@ public void test10() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -913,8 +720,7 @@ public void test10() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + -11 + "'", value.equals(BigInteger.valueOf(-11L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + -11 + "'", value.equals(BigInteger.valueOf( -11L ) ) ); } else { value = value.longValue(); expected = -11L; @@ -928,21 +734,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 46, (byte) 162, (byte) 68, (byte) 24, (byte) 207, (byte) 255, (byte) 255, - (byte) 255, (byte) 185, (byte) 255, (byte) 255, (byte) 255, (byte) 65, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 5, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x204, payload); - MsgVelECEFDepA msg = new MsgVelECEFDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)162,(byte)68,(byte)24,(byte)207,(byte)255,(byte)255,(byte)255,(byte)185,(byte)255,(byte)255,(byte)255,(byte)65,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x204, payload ); + MsgVelECEFDepA msg = new MsgVelECEFDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -950,8 +750,7 @@ public void test11() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -959,8 +758,7 @@ public void test11() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -968,9 +766,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407151150 + "'", - value.equals(BigInteger.valueOf(407151150L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407151150 + "'", value.equals(BigInteger.valueOf( 407151150L ) ) ); } else { value = value.longValue(); expected = 407151150L; @@ -978,8 +774,7 @@ public void test11() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -49 + "'", value.equals(BigInteger.valueOf(-49L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -49 + "'", value.equals(BigInteger.valueOf( -49L ) ) ); } else { value = value.longValue(); expected = -49L; @@ -987,8 +782,7 @@ public void test11() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -71 + "'", value.equals(BigInteger.valueOf(-71L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -71 + "'", value.equals(BigInteger.valueOf( -71L ) ) ); } else { value = value.longValue(); expected = -71L; @@ -996,8 +790,7 @@ public void test11() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 65 + "'", value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelECEFTest.java b/java/test/auto_check_sbp_navigation_MsgVelECEFTest.java index de4f8136b4..b18e98f102 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelECEFTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelECEFTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEF.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelECEF.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelECEF; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelECEFTest { @@ -27,39 +32,17 @@ public class auto_check_sbp_navigation_MsgVelECEFTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test1"); - byte[] payload = - new byte[] { - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 248, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 251, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 14, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20d, payload); - MsgVelECEF msg = new MsgVelECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test1"); + byte[] payload = new byte[] {(byte)40,(byte)244,(byte)122,(byte)19,(byte)248,(byte)255,(byte)255,(byte)255,(byte)251,(byte)255,(byte)255,(byte)255,(byte)10,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)14,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20d, payload ); + MsgVelECEF msg = new MsgVelECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -67,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -76,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -85,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -95,8 +74,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -8 + "'", value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -104,8 +82,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -5 + "'", value.equals(BigInteger.valueOf(-5L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -5 + "'", value.equals(BigInteger.valueOf( -5L ) ) ); } else { value = value.longValue(); expected = -5L; @@ -113,8 +90,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -126,39 +102,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test2"); - byte[] payload = - new byte[] { - (byte) 28, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 244, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 238, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 11, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20d, payload); - MsgVelECEF msg = new MsgVelECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test2"); + byte[] payload = new byte[] {(byte)28,(byte)246,(byte)122,(byte)19,(byte)244,(byte)255,(byte)255,(byte)255,(byte)238,(byte)255,(byte)255,(byte)255,(byte)11,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20d, payload ); + MsgVelECEF msg = new MsgVelECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -166,8 +120,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -175,8 +128,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -184,9 +136,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825500 + "'", - value.equals(BigInteger.valueOf(326825500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825500 + "'", value.equals(BigInteger.valueOf( 326825500L ) ) ); } else { value = value.longValue(); expected = 326825500L; @@ -194,8 +144,7 @@ public void test2() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -12 + "'", value.equals(BigInteger.valueOf(-12L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -12 + "'", value.equals(BigInteger.valueOf( -12L ) ) ); } else { value = value.longValue(); expected = -12L; @@ -203,8 +152,7 @@ public void test2() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -18 + "'", value.equals(BigInteger.valueOf(-18L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -18 + "'", value.equals(BigInteger.valueOf( -18L ) ) ); } else { value = value.longValue(); expected = -18L; @@ -212,8 +160,7 @@ public void test2() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 11 + "'", value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -225,39 +172,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test3"); - byte[] payload = - new byte[] { - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 248, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 250, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20d, payload); - MsgVelECEF msg = new MsgVelECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test3"); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)248,(byte)255,(byte)255,(byte)255,(byte)250,(byte)255,(byte)255,(byte)255,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20d, payload ); + MsgVelECEF msg = new MsgVelECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -265,8 +190,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -274,8 +198,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -283,9 +206,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -293,8 +214,7 @@ public void test3() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -8 + "'", value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -302,8 +222,7 @@ public void test3() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -6 + "'", value.equals(BigInteger.valueOf(-6L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -6 + "'", value.equals(BigInteger.valueOf( -6L ) ) ); } else { value = value.longValue(); expected = -6L; @@ -311,8 +230,7 @@ public void test3() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -324,22 +242,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test4"); - byte[] payload = - new byte[] { - (byte) 4, (byte) 250, (byte) 122, (byte) 19, (byte) 249, (byte) 255, (byte) 255, - (byte) 255, (byte) 239, (byte) 255, (byte) 255, (byte) 255, (byte) 16, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20d, payload); - MsgVelECEF msg = new MsgVelECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test4"); + byte[] payload = new byte[] {(byte)4,(byte)250,(byte)122,(byte)19,(byte)249,(byte)255,(byte)255,(byte)255,(byte)239,(byte)255,(byte)255,(byte)255,(byte)16,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20d, payload ); + MsgVelECEF msg = new MsgVelECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -347,8 +260,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -356,8 +268,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -365,9 +276,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826500 + "'", - value.equals(BigInteger.valueOf(326826500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826500 + "'", value.equals(BigInteger.valueOf( 326826500L ) ) ); } else { value = value.longValue(); expected = 326826500L; @@ -375,8 +284,7 @@ public void test4() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -7 + "'", value.equals(BigInteger.valueOf(-7L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -7 + "'", value.equals(BigInteger.valueOf( -7L ) ) ); } else { value = value.longValue(); expected = -7L; @@ -384,8 +292,7 @@ public void test4() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -17 + "'", value.equals(BigInteger.valueOf(-17L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -17 + "'", value.equals(BigInteger.valueOf( -17L ) ) ); } else { value = value.longValue(); expected = -17L; @@ -393,8 +300,7 @@ public void test4() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 16 + "'", value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -406,39 +312,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test5"); - byte[] payload = - new byte[] { - (byte) 248, - (byte) 251, - (byte) 122, - (byte) 19, - (byte) 247, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 243, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 14, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20d, payload); - MsgVelECEF msg = new MsgVelECEF(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelECEFTest.test5"); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)247,(byte)255,(byte)255,(byte)255,(byte)243,(byte)255,(byte)255,(byte)255,(byte)14,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20d, payload ); + MsgVelECEF msg = new MsgVelECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -446,8 +330,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -455,8 +338,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -464,9 +346,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -474,8 +354,7 @@ public void test5() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -9 + "'", value.equals(BigInteger.valueOf(-9L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -9 + "'", value.equals(BigInteger.valueOf( -9L ) ) ); } else { value = value.longValue(); expected = -9L; @@ -483,8 +362,7 @@ public void test5() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + -13 + "'", value.equals(BigInteger.valueOf(-13L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + -13 + "'", value.equals(BigInteger.valueOf( -13L ) ) ); } else { value = value.longValue(); expected = -13L; @@ -492,8 +370,7 @@ public void test5() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelEcefCovGnssTest.java b/java/test/auto_check_sbp_navigation_MsgVelEcefCovGnssTest.java index c01485e71f..1c5669e91a 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelEcefCovGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelEcefCovGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelEcefCovGnss.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelEcefCovGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelECEFCovGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelEcefCovGnssTest { @@ -30,53 +34,9 @@ public class auto_check_sbp_navigation_MsgVelEcefCovGnssTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelEcefCovGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 224, - (byte) 229, - (byte) 233, - (byte) 29, - (byte) 253, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 46, - (byte) 224, - (byte) 32, - (byte) 59, - (byte) 32, - (byte) 214, - (byte) 14, - (byte) 59, - (byte) 150, - (byte) 147, - (byte) 220, - (byte) 186, - (byte) 19, - (byte) 63, - (byte) 138, - (byte) 59, - (byte) 26, - (byte) 150, - (byte) 35, - (byte) 187, - (byte) 11, - (byte) 193, - (byte) 119, - (byte) 59, - (byte) 21, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x235, payload); - MsgVelECEFCovGnss msg = new MsgVelECEFCovGnss(sbp); + byte[] payload = new byte[] {(byte)224,(byte)229,(byte)233,(byte)29,(byte)253,(byte)255,(byte)255,(byte)255,(byte)1,(byte)0,(byte)0,(byte)0,(byte)4,(byte)0,(byte)0,(byte)0,(byte)46,(byte)224,(byte)32,(byte)59,(byte)32,(byte)214,(byte)14,(byte)59,(byte)150,(byte)147,(byte)220,(byte)186,(byte)19,(byte)63,(byte)138,(byte)59,(byte)26,(byte)150,(byte)35,(byte)187,(byte)11,(byte)193,(byte)119,(byte)59,(byte)21,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x235, payload ); + MsgVelECEFCovGnss msg = new MsgVelECEFCovGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -88,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_z_z, 3.78042715601623058e-03, DELTA); value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -97,8 +56,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -106,9 +64,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501868000 + "'", - value.equals(BigInteger.valueOf(501868000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501868000 + "'", value.equals(BigInteger.valueOf( 501868000L ) ) ); } else { value = value.longValue(); expected = 501868000L; @@ -116,8 +72,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -3 + "'", value.equals(BigInteger.valueOf(-3L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -3 + "'", value.equals(BigInteger.valueOf( -3L ) ) ); } else { value = value.longValue(); expected = -3L; @@ -125,8 +80,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -134,8 +88,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelEcefGnssTest.java b/java/test/auto_check_sbp_navigation_MsgVelEcefGnssTest.java index 1d80798d8f..0e77f5f8e4 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelEcefGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelEcefGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelEcefGnss.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelEcefGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelECEFGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelEcefGnssTest { @@ -30,39 +34,15 @@ public class auto_check_sbp_navigation_MsgVelEcefGnssTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelEcefGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 224, - (byte) 229, - (byte) 233, - (byte) 29, - (byte) 253, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 89, - (byte) 0, - (byte) 21, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x22d, payload); - MsgVelECEFGnss msg = new MsgVelECEFGnss(sbp); + byte[] payload = new byte[] {(byte)224,(byte)229,(byte)233,(byte)29,(byte)253,(byte)255,(byte)255,(byte)255,(byte)1,(byte)0,(byte)0,(byte)0,(byte)4,(byte)0,(byte)0,(byte)0,(byte)89,(byte)0,(byte)21,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x22d, payload ); + MsgVelECEFGnss msg = new MsgVelECEFGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.accuracy + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.accuracy + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -70,8 +50,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -79,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -88,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501868000 + "'", - value.equals(BigInteger.valueOf(501868000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501868000 + "'", value.equals(BigInteger.valueOf( 501868000L ) ) ); } else { value = value.longValue(); expected = 501868000L; @@ -98,8 +74,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + -3 + "'", value.equals(BigInteger.valueOf(-3L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + -3 + "'", value.equals(BigInteger.valueOf( -3L ) ) ); } else { value = value.longValue(); expected = -3L; @@ -107,8 +82,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -116,8 +90,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelNEDCOVTest.java b/java/test/auto_check_sbp_navigation_MsgVelNEDCOVTest.java index 148af5ebd4..5854267c67 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelNEDCOVTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelNEDCOVTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNEDCOV.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNEDCOV.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelNEDCov; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelNEDCOVTest { @@ -27,54 +32,11 @@ public class auto_check_sbp_navigation_MsgVelNEDCOVTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDCOVTest.test1"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 63, - (byte) 10, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x212, payload); - MsgVelNEDCov msg = new MsgVelNEDCov(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDCOVTest.test1"); + byte[] payload = new byte[] {(byte)100,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)128,(byte)63,(byte)0,(byte)0,(byte)128,(byte)63,(byte)10,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x212, payload ); + MsgVelNEDCov msg = new MsgVelNEDCov( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -86,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_n_n, 1.00000000000000000e+00, DELTA); value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -95,8 +56,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -104,8 +64,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -113,8 +72,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -122,8 +80,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -131,8 +88,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelNEDDepATest.java b/java/test/auto_check_sbp_navigation_MsgVelNEDDepATest.java index 198fc31649..b604adb20f 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelNEDDepATest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelNEDDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNEDDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNEDDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelNEDDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelNEDDepATest { @@ -27,41 +32,17 @@ public class auto_check_sbp_navigation_MsgVelNEDDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 20, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 198, - (byte) 251, - (byte) 255, - (byte) 255, - (byte) 156, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test1"); + byte[] payload = new byte[] {(byte)20,(byte)46,(byte)39,(byte)0,(byte)198,(byte)251,(byte)255,(byte)255,(byte)156,(byte)15,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -69,8 +50,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3996 + "'", value.equals(BigInteger.valueOf(3996L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3996 + "'", value.equals(BigInteger.valueOf( 3996L ) ) ); } else { value = value.longValue(); expected = 3996L; @@ -78,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -97,8 +74,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -1082 + "'", value.equals(BigInteger.valueOf(-1082L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -1082 + "'", value.equals(BigInteger.valueOf( -1082L ) ) ); } else { value = value.longValue(); expected = -1082L; @@ -106,8 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -115,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567700 + "'", - value.equals(BigInteger.valueOf(2567700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567700 + "'", value.equals(BigInteger.valueOf( 2567700L ) ) ); } else { value = value.longValue(); expected = 2567700L; @@ -125,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -139,41 +110,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 14, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 207, - (byte) 14, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test2"); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)14,(byte)252,(byte)255,(byte)255,(byte)207,(byte)14,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -181,8 +128,7 @@ public void test2() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3791 + "'", value.equals(BigInteger.valueOf(3791L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3791 + "'", value.equals(BigInteger.valueOf( 3791L ) ) ); } else { value = value.longValue(); expected = 3791L; @@ -190,8 +136,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -199,9 +144,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -209,8 +152,7 @@ public void test2() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -1010 + "'", value.equals(BigInteger.valueOf(-1010L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -1010 + "'", value.equals(BigInteger.valueOf( -1010L ) ) ); } else { value = value.longValue(); expected = -1010L; @@ -218,8 +160,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -227,9 +168,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -237,9 +176,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -251,41 +188,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 220, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 48, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 140, - (byte) 14, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test3"); + byte[] payload = new byte[] {(byte)220,(byte)46,(byte)39,(byte)0,(byte)48,(byte)252,(byte)255,(byte)255,(byte)140,(byte)14,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -293,8 +206,7 @@ public void test3() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3724 + "'", value.equals(BigInteger.valueOf(3724L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3724 + "'", value.equals(BigInteger.valueOf( 3724L ) ) ); } else { value = value.longValue(); expected = 3724L; @@ -302,8 +214,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -311,9 +222,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -321,8 +230,7 @@ public void test3() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -976 + "'", value.equals(BigInteger.valueOf(-976L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -976 + "'", value.equals(BigInteger.valueOf( -976L ) ) ); } else { value = value.longValue(); expected = -976L; @@ -330,8 +238,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -339,9 +246,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2567900 + "'", - value.equals(BigInteger.valueOf(2567900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2567900 + "'", value.equals(BigInteger.valueOf( 2567900L ) ) ); } else { value = value.longValue(); expected = 2567900L; @@ -349,9 +254,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -363,41 +266,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 64, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 32, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 8, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test4"); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)32,(byte)252,(byte)255,(byte)255,(byte)8,(byte)15,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -405,8 +284,7 @@ public void test4() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3848 + "'", value.equals(BigInteger.valueOf(3848L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3848 + "'", value.equals(BigInteger.valueOf( 3848L ) ) ); } else { value = value.longValue(); expected = 3848L; @@ -414,8 +292,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -423,9 +300,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -433,8 +308,7 @@ public void test4() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -992 + "'", value.equals(BigInteger.valueOf(-992L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -992 + "'", value.equals(BigInteger.valueOf( -992L ) ) ); } else { value = value.longValue(); expected = -992L; @@ -442,8 +316,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -451,9 +324,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -461,9 +332,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -475,41 +344,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 164, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 80, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 140, - (byte) 14, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test5"); + byte[] payload = new byte[] {(byte)164,(byte)47,(byte)39,(byte)0,(byte)80,(byte)252,(byte)255,(byte)255,(byte)140,(byte)14,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -517,8 +362,7 @@ public void test5() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3724 + "'", value.equals(BigInteger.valueOf(3724L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3724 + "'", value.equals(BigInteger.valueOf( 3724L ) ) ); } else { value = value.longValue(); expected = 3724L; @@ -526,8 +370,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -535,9 +378,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -545,8 +386,7 @@ public void test5() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -944 + "'", value.equals(BigInteger.valueOf(-944L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -944 + "'", value.equals(BigInteger.valueOf( -944L ) ) ); } else { value = value.longValue(); expected = -944L; @@ -554,8 +394,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -563,9 +402,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2568100 + "'", - value.equals(BigInteger.valueOf(2568100L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2568100 + "'", value.equals(BigInteger.valueOf( 2568100L ) ) ); } else { value = value.longValue(); expected = 2568100L; @@ -573,9 +410,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -587,41 +422,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 212, - (byte) 157, - (byte) 67, - (byte) 24, - (byte) 229, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 26, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test6"); + byte[] payload = new byte[] {(byte)212,(byte)157,(byte)67,(byte)24,(byte)229,(byte)255,(byte)255,(byte)255,(byte)26,(byte)0,(byte)0,(byte)0,(byte)25,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 25 + "'", value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -629,8 +440,7 @@ public void test6() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 26 + "'", value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -638,8 +448,7 @@ public void test6() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -647,9 +456,7 @@ public void test6() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -657,8 +464,7 @@ public void test6() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -27 + "'", value.equals(BigInteger.valueOf(-27L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -27 + "'", value.equals(BigInteger.valueOf( -27L ) ) ); } else { value = value.longValue(); expected = -27L; @@ -666,8 +472,7 @@ public void test6() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -675,9 +480,7 @@ public void test6() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084500 + "'", - value.equals(BigInteger.valueOf(407084500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084500 + "'", value.equals(BigInteger.valueOf( 407084500L ) ) ); } else { value = value.longValue(); expected = 407084500L; @@ -685,9 +488,7 @@ public void test6() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -699,23 +500,17 @@ public void test6() throws Throwable { @Test public void test7() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test7"); - byte[] payload = - new byte[] { - (byte) 56, (byte) 158, (byte) 67, (byte) 24, (byte) 4, (byte) 0, (byte) 0, - (byte) 0, (byte) 15, (byte) 0, (byte) 0, (byte) 0, (byte) 232, (byte) 255, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test7"); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)4,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0,(byte)0,(byte)0,(byte)232,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf(-24L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf( -24L ) ) ); } else { value = value.longValue(); expected = -24L; @@ -723,8 +518,7 @@ public void test7() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -732,8 +526,7 @@ public void test7() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -741,9 +534,7 @@ public void test7() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -751,8 +542,7 @@ public void test7() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -760,8 +550,7 @@ public void test7() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -769,9 +558,7 @@ public void test7() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -779,9 +566,7 @@ public void test7() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -793,41 +578,17 @@ public void test7() throws Throwable { @Test public void test8() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test8"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 251, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 232, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 247, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test8"); + byte[] payload = new byte[] {(byte)156,(byte)158,(byte)67,(byte)24,(byte)251,(byte)255,(byte)255,(byte)255,(byte)232,(byte)255,(byte)255,(byte)255,(byte)247,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -9 + "'", value.equals(BigInteger.valueOf(-9L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -9 + "'", value.equals(BigInteger.valueOf( -9L ) ) ); } else { value = value.longValue(); expected = -9L; @@ -835,8 +596,7 @@ public void test8() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -24 + "'", value.equals(BigInteger.valueOf(-24L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -24 + "'", value.equals(BigInteger.valueOf( -24L ) ) ); } else { value = value.longValue(); expected = -24L; @@ -844,8 +604,7 @@ public void test8() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -853,9 +612,7 @@ public void test8() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -863,8 +620,7 @@ public void test8() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf(-5L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf( -5L ) ) ); } else { value = value.longValue(); expected = -5L; @@ -872,8 +628,7 @@ public void test8() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -881,9 +636,7 @@ public void test8() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084700 + "'", - value.equals(BigInteger.valueOf(407084700L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084700 + "'", value.equals(BigInteger.valueOf( 407084700L ) ) ); } else { value = value.longValue(); expected = 407084700L; @@ -891,9 +644,7 @@ public void test8() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -905,23 +656,17 @@ public void test8() throws Throwable { @Test public void test9() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test9"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 159, (byte) 67, (byte) 24, (byte) 10, (byte) 0, (byte) 0, - (byte) 0, (byte) 2, (byte) 0, (byte) 0, (byte) 0, (byte) 222, (byte) 255, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test9"); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)10,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)222,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -34 + "'", value.equals(BigInteger.valueOf(-34L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -34 + "'", value.equals(BigInteger.valueOf( -34L ) ) ); } else { value = value.longValue(); expected = -34L; @@ -929,8 +674,7 @@ public void test9() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -938,8 +682,7 @@ public void test9() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -947,9 +690,7 @@ public void test9() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -957,8 +698,7 @@ public void test9() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -966,8 +706,7 @@ public void test9() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -975,9 +714,7 @@ public void test9() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -985,9 +722,7 @@ public void test9() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1001,40 +736,15 @@ public void test9() throws Throwable { public void test10() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test10"); - byte[] payload = - new byte[] { - (byte) 100, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 248, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 254, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + byte[] payload = new byte[] {(byte)100,(byte)159,(byte)67,(byte)24,(byte)248,(byte)255,(byte)255,(byte)255,(byte)254,(byte)255,(byte)255,(byte)255,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1042,8 +752,7 @@ public void test10() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -2 + "'", value.equals(BigInteger.valueOf(-2L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -2 + "'", value.equals(BigInteger.valueOf( -2L ) ) ); } else { value = value.longValue(); expected = -2L; @@ -1051,8 +760,7 @@ public void test10() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1060,9 +768,7 @@ public void test10() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1070,8 +776,7 @@ public void test10() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -8 + "'", value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -1079,8 +784,7 @@ public void test10() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1088,9 +792,7 @@ public void test10() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407084900 + "'", - value.equals(BigInteger.valueOf(407084900L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407084900 + "'", value.equals(BigInteger.valueOf( 407084900L ) ) ); } else { value = value.longValue(); expected = 407084900L; @@ -1098,9 +800,7 @@ public void test10() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1114,40 +814,15 @@ public void test10() throws Throwable { public void test11() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDDepATest.test11"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 162, - (byte) 68, - (byte) 24, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 253, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 148, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 5, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x205, payload); - MsgVelNEDDepA msg = new MsgVelNEDDepA(sbp); + byte[] payload = new byte[] {(byte)46,(byte)162,(byte)68,(byte)24,(byte)255,(byte)255,(byte)255,(byte)255,(byte)253,(byte)255,(byte)255,(byte)255,(byte)148,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x205, payload ); + MsgVelNEDDepA msg = new MsgVelNEDDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -108 + "'", value.equals(BigInteger.valueOf(-108L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -108 + "'", value.equals(BigInteger.valueOf( -108L ) ) ); } else { value = value.longValue(); expected = -108L; @@ -1155,8 +830,7 @@ public void test11() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -3 + "'", value.equals(BigInteger.valueOf(-3L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -3 + "'", value.equals(BigInteger.valueOf( -3L ) ) ); } else { value = value.longValue(); expected = -3L; @@ -1164,8 +838,7 @@ public void test11() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1173,9 +846,7 @@ public void test11() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1183,8 +854,7 @@ public void test11() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -1 + "'", value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -1192,8 +862,7 @@ public void test11() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1201,9 +870,7 @@ public void test11() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 407151150 + "'", - value.equals(BigInteger.valueOf(407151150L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 407151150 + "'", value.equals(BigInteger.valueOf( 407151150L ) ) ); } else { value = value.longValue(); expected = 407151150L; @@ -1211,9 +878,7 @@ public void test11() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelNEDTest.java b/java/test/auto_check_sbp_navigation_MsgVelNEDTest.java index 91ae73fdef..b4cac06240 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelNEDTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelNEDTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNED.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNED.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelNED; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelNEDTest { @@ -27,41 +32,17 @@ public class auto_check_sbp_navigation_MsgVelNEDTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test1"); - byte[] payload = - new byte[] { - (byte) 40, - (byte) 244, - (byte) 122, - (byte) 19, - (byte) 3, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 243, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 14, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20e, payload); - MsgVelNED msg = new MsgVelNED(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test1"); + byte[] payload = new byte[] {(byte)40,(byte)244,(byte)122,(byte)19,(byte)3,(byte)0,(byte)0,(byte)0,(byte)252,(byte)255,(byte)255,(byte)255,(byte)243,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)14,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20e, payload ); + MsgVelNED msg = new MsgVelNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -13 + "'", value.equals(BigInteger.valueOf(-13L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -13 + "'", value.equals(BigInteger.valueOf( -13L ) ) ); } else { value = value.longValue(); expected = -13L; @@ -69,8 +50,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -4 + "'", value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -78,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -97,8 +74,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -106,8 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -115,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825000 + "'", - value.equals(BigInteger.valueOf(326825000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825000 + "'", value.equals(BigInteger.valueOf( 326825000L ) ) ); } else { value = value.longValue(); expected = 326825000L; @@ -125,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -139,41 +110,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test2"); - byte[] payload = - new byte[] { - (byte) 28, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 252, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 232, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20e, payload); - MsgVelNED msg = new MsgVelNED(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test2"); + byte[] payload = new byte[] {(byte)28,(byte)246,(byte)122,(byte)19,(byte)252,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)232,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20e, payload ); + MsgVelNED msg = new MsgVelNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf(-24L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf( -24L ) ) ); } else { value = value.longValue(); expected = -24L; @@ -181,8 +128,7 @@ public void test2() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -1 + "'", value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -190,8 +136,7 @@ public void test2() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -199,9 +144,7 @@ public void test2() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -209,8 +152,7 @@ public void test2() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -4 + "'", value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -218,8 +160,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -227,9 +168,7 @@ public void test2() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326825500 + "'", - value.equals(BigInteger.valueOf(326825500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326825500 + "'", value.equals(BigInteger.valueOf( 326825500L ) ) ); } else { value = value.longValue(); expected = 326825500L; @@ -237,9 +176,7 @@ public void test2() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -251,41 +188,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test3"); - byte[] payload = - new byte[] { - (byte) 16, - (byte) 248, - (byte) 122, - (byte) 19, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 253, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 244, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20e, payload); - MsgVelNED msg = new MsgVelNED(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test3"); + byte[] payload = new byte[] {(byte)16,(byte)248,(byte)122,(byte)19,(byte)0,(byte)0,(byte)0,(byte)0,(byte)253,(byte)255,(byte)255,(byte)255,(byte)244,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20e, payload ); + MsgVelNED msg = new MsgVelNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -12 + "'", value.equals(BigInteger.valueOf(-12L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -12 + "'", value.equals(BigInteger.valueOf( -12L ) ) ); } else { value = value.longValue(); expected = -12L; @@ -293,8 +206,7 @@ public void test3() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + -3 + "'", value.equals(BigInteger.valueOf(-3L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + -3 + "'", value.equals(BigInteger.valueOf( -3L ) ) ); } else { value = value.longValue(); expected = -3L; @@ -302,8 +214,7 @@ public void test3() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -311,9 +222,7 @@ public void test3() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -321,8 +230,7 @@ public void test3() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -330,8 +238,7 @@ public void test3() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -339,9 +246,7 @@ public void test3() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826000 + "'", - value.equals(BigInteger.valueOf(326826000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826000 + "'", value.equals(BigInteger.valueOf( 326826000L ) ) ); } else { value = value.longValue(); expected = 326826000L; @@ -349,9 +254,7 @@ public void test3() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -363,23 +266,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test4"); - byte[] payload = - new byte[] { - (byte) 4, (byte) 250, (byte) 122, (byte) 19, (byte) 2, (byte) 0, (byte) 0, - (byte) 0, (byte) 3, (byte) 0, (byte) 0, (byte) 0, (byte) 232, (byte) 255, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20e, payload); - MsgVelNED msg = new MsgVelNED(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test4"); + byte[] payload = new byte[] {(byte)4,(byte)250,(byte)122,(byte)19,(byte)2,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)0,(byte)0,(byte)232,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20e, payload ); + MsgVelNED msg = new MsgVelNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf(-24L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -24 + "'", value.equals(BigInteger.valueOf( -24L ) ) ); } else { value = value.longValue(); expected = -24L; @@ -387,8 +284,7 @@ public void test4() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -396,8 +292,7 @@ public void test4() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -405,9 +300,7 @@ public void test4() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -415,8 +308,7 @@ public void test4() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -424,8 +316,7 @@ public void test4() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -433,9 +324,7 @@ public void test4() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326826500 + "'", - value.equals(BigInteger.valueOf(326826500L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326826500 + "'", value.equals(BigInteger.valueOf( 326826500L ) ) ); } else { value = value.longValue(); expected = 326826500L; @@ -443,9 +332,7 @@ public void test4() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -457,23 +344,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test5"); - byte[] payload = - new byte[] { - (byte) 248, (byte) 251, (byte) 122, (byte) 19, (byte) 1, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 235, (byte) 255, - (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 15, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88d3, 0x20e, payload); - MsgVelNED msg = new MsgVelNED(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNEDTest.test5"); + byte[] payload = new byte[] {(byte)248,(byte)251,(byte)122,(byte)19,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)235,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88d3, 0x20e, payload ); + MsgVelNED msg = new MsgVelNED( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -21 + "'", value.equals(BigInteger.valueOf(-21L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -21 + "'", value.equals(BigInteger.valueOf( -21L ) ) ); } else { value = value.longValue(); expected = -21L; @@ -481,8 +362,7 @@ public void test5() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -490,8 +370,7 @@ public void test5() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -499,9 +378,7 @@ public void test5() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -509,8 +386,7 @@ public void test5() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -518,8 +394,7 @@ public void test5() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -527,9 +402,7 @@ public void test5() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 326827000 + "'", - value.equals(BigInteger.valueOf(326827000L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 326827000 + "'", value.equals(BigInteger.valueOf( 326827000L ) ) ); } else { value = value.longValue(); expected = 326827000L; @@ -537,9 +410,7 @@ public void test5() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelNedCovGnssTest.java b/java/test/auto_check_sbp_navigation_MsgVelNedCovGnssTest.java index 70da5a36d2..2c7bb954e7 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelNedCovGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelNedCovGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNedCovGnss.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNedCovGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelNEDCovGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelNedCovGnssTest { @@ -30,53 +34,9 @@ public class auto_check_sbp_navigation_MsgVelNedCovGnssTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNedCovGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 168, - (byte) 230, - (byte) 233, - (byte) 29, - (byte) 251, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 246, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 15, - (byte) 58, - (byte) 207, - (byte) 58, - (byte) 248, - (byte) 139, - (byte) 116, - (byte) 55, - (byte) 103, - (byte) 197, - (byte) 57, - (byte) 57, - (byte) 203, - (byte) 186, - (byte) 129, - (byte) 58, - (byte) 109, - (byte) 171, - (byte) 44, - (byte) 57, - (byte) 135, - (byte) 39, - (byte) 1, - (byte) 60, - (byte) 21, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x232, payload); - MsgVelNEDCovGnss msg = new MsgVelNEDCovGnss(sbp); + byte[] payload = new byte[] {(byte)168,(byte)230,(byte)233,(byte)29,(byte)251,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)246,(byte)255,(byte)255,(byte)255,(byte)15,(byte)58,(byte)207,(byte)58,(byte)248,(byte)139,(byte)116,(byte)55,(byte)103,(byte)197,(byte)57,(byte)57,(byte)203,(byte)186,(byte)129,(byte)58,(byte)109,(byte)171,(byte)44,(byte)57,(byte)135,(byte)39,(byte)1,(byte)60,(byte)21,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x232, payload ); + MsgVelNEDCovGnss msg = new MsgVelNEDCovGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -88,8 +48,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.cov_n_n, 1.58101494889706373e-03, DELTA); value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -10 + "'", value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -97,8 +56,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -106,8 +64,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -115,8 +72,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf(-5L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf( -5L ) ) ); } else { value = value.longValue(); expected = -5L; @@ -124,8 +80,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -133,9 +88,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501868200 + "'", - value.equals(BigInteger.valueOf(501868200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501868200 + "'", value.equals(BigInteger.valueOf( 501868200L ) ) ); } else { value = value.longValue(); expected = 501868200L; diff --git a/java/test/auto_check_sbp_navigation_MsgVelNedGnssTest.java b/java/test/auto_check_sbp_navigation_MsgVelNedGnssTest.java index 6adcedeb28..2f91a2a2e2 100644 --- a/java/test/auto_check_sbp_navigation_MsgVelNedGnssTest.java +++ b/java/test/auto_check_sbp_navigation_MsgVelNedGnssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNedGnss.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_MsgVelNedGnss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.navigation.MsgVelNEDGnss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_navigation_MsgVelNedGnssTest { @@ -27,41 +32,17 @@ public class auto_check_sbp_navigation_MsgVelNedGnssTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNedGnssTest.test1"); - byte[] payload = - new byte[] { - (byte) 168, - (byte) 230, - (byte) 233, - (byte) 29, - (byte) 251, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 246, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 40, - (byte) 0, - (byte) 89, - (byte) 0, - (byte) 21, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0x22e, payload); - MsgVelNEDGnss msg = new MsgVelNEDGnss(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_navigation_MsgVelNedGnssTest.test1"); + byte[] payload = new byte[] {(byte)168,(byte)230,(byte)233,(byte)29,(byte)251,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)246,(byte)255,(byte)255,(byte)255,(byte)40,(byte)0,(byte)89,(byte)0,(byte)21,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0x22e, payload ); + MsgVelNEDGnss msg = new MsgVelNEDGnss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.d; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.d + "' != '" + -10 + "'", value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.d + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -69,8 +50,7 @@ public void test1() throws Throwable { } value = msg.e; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.e + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -78,8 +58,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.h_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.h_accuracy + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.h_accuracy + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -97,8 +74,7 @@ public void test1() throws Throwable { } value = msg.n; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf(-5L))); + org.junit.Assert.assertTrue("'" + msg.n + "' != '" + -5 + "'", value.equals(BigInteger.valueOf( -5L ) ) ); } else { value = value.longValue(); expected = -5L; @@ -106,8 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -115,9 +90,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501868200 + "'", - value.equals(BigInteger.valueOf(501868200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501868200 + "'", value.equals(BigInteger.valueOf( 501868200L ) ) ); } else { value = value.longValue(); expected = 501868200L; @@ -125,9 +98,7 @@ public void test1() throws Throwable { } value = msg.v_accuracy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.v_accuracy + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.v_accuracy + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; diff --git a/java/test/auto_check_sbp_navigation_navigation_structsTest.java b/java/test/auto_check_sbp_navigation_navigation_structsTest.java index eae2c94ee9..c428697c0d 100644 --- a/java/test/auto_check_sbp_navigation_navigation_structsTest.java +++ b/java/test/auto_check_sbp_navigation_navigation_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/navigation/test_navigation_structs.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/navigation/test_navigation_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_navigation_navigation_structsTest { diff --git a/java/test/auto_check_sbp_ndb_MsgNdbEventTest.java b/java/test/auto_check_sbp_ndb_MsgNdbEventTest.java index 63c918c5f0..b4db3cbaf7 100644 --- a/java/test/auto_check_sbp_ndb_MsgNdbEventTest.java +++ b/java/test/auto_check_sbp_ndb_MsgNdbEventTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ndb/test_MsgNdbEvent.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ndb/test_MsgNdbEvent.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ndb.MsgNdbEvent; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ndb_MsgNdbEventTest { @@ -27,23 +32,17 @@ public class auto_check_sbp_ndb_MsgNdbEventTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ndb_MsgNdbEventTest.test1"); - byte[] payload = - new byte[] { - (byte) 254, (byte) 188, (byte) 70, (byte) 185, (byte) 69, (byte) 0, (byte) 0, - (byte) 0, (byte) 249, (byte) 73, (byte) 205, (byte) 115, (byte) 238, (byte) 74, - (byte) 98, (byte) 66, (byte) 182, (byte) 148, - }; - SBPMessage sbp = new SBPMessage(0xaea4, 0x400, payload); - MsgNdbEvent msg = new MsgNdbEvent(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ndb_MsgNdbEventTest.test1"); + byte[] payload = new byte[] {(byte)254,(byte)188,(byte)70,(byte)185,(byte)69,(byte)0,(byte)0,(byte)0,(byte)249,(byte)73,(byte)205,(byte)115,(byte)238,(byte)74,(byte)98,(byte)66,(byte)182,(byte)148, }; + SBPMessage sbp = new SBPMessage( 0xaea4, 0x400, payload ); + MsgNdbEvent msg = new MsgNdbEvent( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.data_source; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data_source + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.data_source + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -51,8 +50,7 @@ public void test1() throws Throwable { } value = msg.event; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.event + "' != '" + 249 + "'", value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.event + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -60,9 +58,7 @@ public void test1() throws Throwable { } value = msg.object_sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.object_sid.code + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.object_sid.code + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -70,9 +66,7 @@ public void test1() throws Throwable { } value = msg.object_sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.object_sid.sat + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.object_sid.sat + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -80,9 +74,7 @@ public void test1() throws Throwable { } value = msg.object_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.object_type + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.object_type + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -90,9 +82,7 @@ public void test1() throws Throwable { } value = msg.original_sender; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.original_sender + "' != '" + 38070 + "'", - value.equals(BigInteger.valueOf(38070L))); + org.junit.Assert.assertTrue("'" + msg.original_sender + "' != '" + 38070 + "'", value.equals(BigInteger.valueOf( 38070L ) ) ); } else { value = value.longValue(); expected = 38070L; @@ -100,9 +90,7 @@ public void test1() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 299461164286L + "'", - value.equals(new BigInteger("299461164286"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 299461164286L + "'", value.equals( new BigInteger( "299461164286" ) ) ); } else { value = value.longValue(); expected = 299461164286L; @@ -110,9 +98,7 @@ public void test1() throws Throwable { } value = msg.result; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.result + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.result + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -120,9 +106,7 @@ public void test1() throws Throwable { } value = msg.src_sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.src_sid.code + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.src_sid.code + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -130,9 +114,7 @@ public void test1() throws Throwable { } value = msg.src_sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.src_sid.sat + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.src_sid.sat + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; diff --git a/java/test/auto_check_sbp_observation_MsgAlmanacGLODepTest.java b/java/test/auto_check_sbp_observation_MsgAlmanacGLODepTest.java index f66bb6844a..5af9ea3ce4 100644 --- a/java/test/auto_check_sbp_observation_MsgAlmanacGLODepTest.java +++ b/java/test/auto_check_sbp_observation_MsgAlmanacGLODepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGLODep.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGLODep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgAlmanacGloDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgAlmanacGLODepTest { @@ -30,99 +34,15 @@ public class auto_check_sbp_observation_MsgAlmanacGLODepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgAlmanacGLODepTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 1, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x71, payload); - MsgAlmanacGloDep msg = new MsgAlmanacGloDep(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)1,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x71, payload ); + MsgAlmanacGloDep msg = new MsgAlmanacGloDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -130,9 +50,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -140,9 +58,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -150,9 +66,7 @@ public void test1() throws Throwable { } value = msg.common.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -160,9 +74,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -170,9 +82,7 @@ public void test1() throws Throwable { } value = msg.common.toa.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -180,9 +90,7 @@ public void test1() throws Throwable { } value = msg.common.toa.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -191,9 +99,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgAlmanacGLOTest.java b/java/test/auto_check_sbp_observation_MsgAlmanacGLOTest.java index 43b320fe5d..9b1d2f5ab5 100644 --- a/java/test/auto_check_sbp_observation_MsgAlmanacGLOTest.java +++ b/java/test/auto_check_sbp_observation_MsgAlmanacGLOTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGLO.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGLO.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgAlmanacGlo; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgAlmanacGLOTest { @@ -30,97 +34,15 @@ public class auto_check_sbp_observation_MsgAlmanacGLOTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgAlmanacGLOTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 1, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x73, payload); - MsgAlmanacGlo msg = new MsgAlmanacGlo(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)1,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x73, payload ); + MsgAlmanacGlo msg = new MsgAlmanacGlo( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -128,9 +50,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -138,9 +58,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -148,9 +66,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -158,9 +74,7 @@ public void test1() throws Throwable { } value = msg.common.toa.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -168,9 +82,7 @@ public void test1() throws Throwable { } value = msg.common.toa.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -179,9 +91,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgAlmanacGPSDepTest.java b/java/test/auto_check_sbp_observation_MsgAlmanacGPSDepTest.java index 6c85d6040f..52b02287d4 100644 --- a/java/test/auto_check_sbp_observation_MsgAlmanacGPSDepTest.java +++ b/java/test/auto_check_sbp_observation_MsgAlmanacGPSDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGPSDep.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGPSDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgAlmanacGPSDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgAlmanacGPSDepTest { @@ -30,107 +34,9 @@ public class auto_check_sbp_observation_MsgAlmanacGPSDepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgAlmanacGPSDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 1, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x70, payload); - MsgAlmanacGPSDep msg = new MsgAlmanacGPSDep(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)1,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x70, payload ); + MsgAlmanacGPSDep msg = new MsgAlmanacGPSDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -138,9 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.af1, 8.98126018000766635e-12, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -148,9 +52,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -158,9 +60,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -168,9 +68,7 @@ public void test1() throws Throwable { } value = msg.common.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -178,9 +76,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -188,9 +84,7 @@ public void test1() throws Throwable { } value = msg.common.toa.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -198,9 +92,7 @@ public void test1() throws Throwable { } value = msg.common.toa.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -209,9 +101,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgAlmanacGPSTest.java b/java/test/auto_check_sbp_observation_MsgAlmanacGPSTest.java index 352553aac1..652bafbb38 100644 --- a/java/test/auto_check_sbp_observation_MsgAlmanacGPSTest.java +++ b/java/test/auto_check_sbp_observation_MsgAlmanacGPSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGPS.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgAlmanacGPS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgAlmanacGPS; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgAlmanacGPSTest { @@ -30,105 +34,9 @@ public class auto_check_sbp_observation_MsgAlmanacGPSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgAlmanacGPSTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 1, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x72, payload); - MsgAlmanacGPS msg = new MsgAlmanacGPS(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)1,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x72, payload ); + MsgAlmanacGPS msg = new MsgAlmanacGPS( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -136,9 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.af1, 8.98126018000766635e-12, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -146,9 +52,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -156,9 +60,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -166,9 +68,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -176,9 +76,7 @@ public void test1() throws Throwable { } value = msg.common.toa.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -186,9 +84,7 @@ public void test1() throws Throwable { } value = msg.common.toa.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toa.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toa.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -197,9 +93,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgBasePosEcefTest.java b/java/test/auto_check_sbp_observation_MsgBasePosEcefTest.java index 611572075d..9f05de2edf 100644 --- a/java/test/auto_check_sbp_observation_MsgBasePosEcefTest.java +++ b/java/test/auto_check_sbp_observation_MsgBasePosEcefTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgBasePosEcef.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgBasePosEcef.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgBasePosECEF; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgBasePosEcefTest { @@ -29,35 +34,9 @@ public class auto_check_sbp_observation_MsgBasePosEcefTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgBasePosEcefTest.test1"); - byte[] payload = - new byte[] { - (byte) 228, - (byte) 131, - (byte) 158, - (byte) 245, - (byte) 87, - (byte) 205, - (byte) 68, - (byte) 193, - (byte) 66, - (byte) 62, - (byte) 232, - (byte) 209, - (byte) 32, - (byte) 118, - (byte) 80, - (byte) 193, - (byte) 213, - (byte) 231, - (byte) 106, - (byte) 251, - (byte) 63, - (byte) 20, - (byte) 77, - (byte) 65, - }; - SBPMessage sbp = new SBPMessage(0, 0x48, payload); - MsgBasePosECEF msg = new MsgBasePosECEF(sbp); + byte[] payload = new byte[] {(byte)228,(byte)131,(byte)158,(byte)245,(byte)87,(byte)205,(byte)68,(byte)193,(byte)66,(byte)62,(byte)232,(byte)209,(byte)32,(byte)118,(byte)80,(byte)193,(byte)213,(byte)231,(byte)106,(byte)251,(byte)63,(byte)20,(byte)77,(byte)65, }; + SBPMessage sbp = new SBPMessage( 0, 0x48, payload ); + MsgBasePosECEF msg = new MsgBasePosECEF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_observation_MsgBasePosLLHTest.java b/java/test/auto_check_sbp_observation_MsgBasePosLLHTest.java index a733d6dde1..c805274754 100644 --- a/java/test/auto_check_sbp_observation_MsgBasePosLLHTest.java +++ b/java/test/auto_check_sbp_observation_MsgBasePosLLHTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgBasePosLLH.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgBasePosLLH.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgBasePosLLH; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgBasePosLLHTest { @@ -29,15 +34,9 @@ public class auto_check_sbp_observation_MsgBasePosLLHTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgBasePosLLHTest.test1"); - byte[] payload = - new byte[] { - (byte) 225, (byte) 237, (byte) 238, (byte) 90, (byte) 42, (byte) 160, (byte) 66, - (byte) 64, (byte) 59, (byte) 143, (byte) 70, (byte) 235, (byte) 0, (byte) 120, - (byte) 94, (byte) 192, (byte) 51, (byte) 181, (byte) 124, (byte) 240, (byte) 65, - (byte) 248, (byte) 66, (byte) 64, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x44, payload); - MsgBasePosLLH msg = new MsgBasePosLLH(sbp); + byte[] payload = new byte[] {(byte)225,(byte)237,(byte)238,(byte)90,(byte)42,(byte)160,(byte)66,(byte)64,(byte)59,(byte)143,(byte)70,(byte)235,(byte)0,(byte)120,(byte)94,(byte)192,(byte)51,(byte)181,(byte)124,(byte)240,(byte)65,(byte)248,(byte)66,(byte)64, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x44, payload ); + MsgBasePosLLH msg = new MsgBasePosLLH( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisBdsTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisBdsTest.java index 68b9672b04..d785b2d981 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisBdsTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisBdsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisBds.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisBds.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisBds; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisBdsTest { @@ -30,158 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisBdsTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisBdsTest.test1"); - byte[] payload = - new byte[] { - (byte) 8, - (byte) 12, - (byte) 174, - (byte) 179, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 48, - (byte) 42, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 125, - (byte) 99, - (byte) 52, - (byte) 50, - (byte) 207, - (byte) 46, - (byte) 151, - (byte) 176, - (byte) 0, - (byte) 112, - (byte) 96, - (byte) 67, - (byte) 0, - (byte) 164, - (byte) 106, - (byte) 67, - (byte) 0, - (byte) 60, - (byte) 255, - (byte) 54, - (byte) 0, - (byte) 224, - (byte) 47, - (byte) 53, - (byte) 0, - (byte) 0, - (byte) 143, - (byte) 179, - (byte) 0, - (byte) 192, - (byte) 190, - (byte) 52, - (byte) 146, - (byte) 101, - (byte) 162, - (byte) 196, - (byte) 109, - (byte) 104, - (byte) 19, - (byte) 62, - (byte) 253, - (byte) 87, - (byte) 86, - (byte) 202, - (byte) 62, - (byte) 28, - (byte) 251, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 96, - (byte) 151, - (byte) 60, - (byte) 117, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 154, - (byte) 127, - (byte) 93, - (byte) 185, - (byte) 64, - (byte) 151, - (byte) 193, - (byte) 64, - (byte) 0, - (byte) 10, - (byte) 166, - (byte) 4, - (byte) 192, - (byte) 160, - (byte) 75, - (byte) 174, - (byte) 98, - (byte) 8, - (byte) 201, - (byte) 35, - (byte) 190, - (byte) 205, - (byte) 29, - (byte) 12, - (byte) 71, - (byte) 189, - (byte) 150, - (byte) 5, - (byte) 192, - (byte) 176, - (byte) 72, - (byte) 249, - (byte) 189, - (byte) 193, - (byte) 172, - (byte) 240, - (byte) 63, - (byte) 72, - (byte) 249, - (byte) 188, - (byte) 180, - (byte) 160, - (byte) 203, - (byte) 9, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 92, - (byte) 51, - (byte) 77, - (byte) 191, - (byte) 0, - (byte) 128, - (byte) 174, - (byte) 43, - (byte) 0, - (byte) 0, - (byte) 88, - (byte) 161, - (byte) 174, - (byte) 179, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 6, - (byte) 5, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xf080, 0x89, payload); - MsgEphemerisBds msg = new MsgEphemerisBds(sbp); + byte[] payload = new byte[] {(byte)8,(byte)12,(byte)174,(byte)179,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)64,(byte)48,(byte)42,(byte)0,(byte)0,(byte)1,(byte)0,(byte)125,(byte)99,(byte)52,(byte)50,(byte)207,(byte)46,(byte)151,(byte)176,(byte)0,(byte)112,(byte)96,(byte)67,(byte)0,(byte)164,(byte)106,(byte)67,(byte)0,(byte)60,(byte)255,(byte)54,(byte)0,(byte)224,(byte)47,(byte)53,(byte)0,(byte)0,(byte)143,(byte)179,(byte)0,(byte)192,(byte)190,(byte)52,(byte)146,(byte)101,(byte)162,(byte)196,(byte)109,(byte)104,(byte)19,(byte)62,(byte)253,(byte)87,(byte)86,(byte)202,(byte)62,(byte)28,(byte)251,(byte)63,(byte)0,(byte)0,(byte)0,(byte)96,(byte)151,(byte)60,(byte)117,(byte)63,(byte)0,(byte)0,(byte)128,(byte)154,(byte)127,(byte)93,(byte)185,(byte)64,(byte)151,(byte)193,(byte)64,(byte)0,(byte)10,(byte)166,(byte)4,(byte)192,(byte)160,(byte)75,(byte)174,(byte)98,(byte)8,(byte)201,(byte)35,(byte)190,(byte)205,(byte)29,(byte)12,(byte)71,(byte)189,(byte)150,(byte)5,(byte)192,(byte)176,(byte)72,(byte)249,(byte)189,(byte)193,(byte)172,(byte)240,(byte)63,(byte)72,(byte)249,(byte)188,(byte)180,(byte)160,(byte)203,(byte)9,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)92,(byte)51,(byte)77,(byte)191,(byte)0,(byte)128,(byte)174,(byte)43,(byte)0,(byte)0,(byte)88,(byte)161,(byte)174,(byte)179,(byte)6,(byte)0,(byte)106,(byte)8,(byte)6,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xf080, 0x89, payload ); + MsgEphemerisBds msg = new MsgEphemerisBds( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -196,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 6.55185431241989136e-07, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 10800 + "'", - value.equals(BigInteger.valueOf(10800L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 10800 + "'", value.equals(BigInteger.valueOf( 10800L ) ) ); } else { value = value.longValue(); expected = 10800L; @@ -206,9 +59,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -216,9 +67,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -226,9 +75,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -236,9 +83,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 439214 + "'", - value.equals(BigInteger.valueOf(439214L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 439214 + "'", value.equals(BigInteger.valueOf( 439214L ) ) ); } else { value = value.longValue(); expected = 439214L; @@ -246,9 +91,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -257,9 +100,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -271,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, 7.50745557280168303e-10, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -280,8 +120,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -295,9 +134,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.tgd2, -1.09999997999210564e-09, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 439214 + "'", - value.equals(BigInteger.valueOf(439214L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 439214 + "'", value.equals(BigInteger.valueOf( 439214L ) ) ); } else { value = value.longValue(); expected = 439214L; @@ -305,9 +142,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisDepATest.java b/java/test/auto_check_sbp_observation_MsgEphemerisDepATest.java index 9b48ede40e..3c8a7c1588 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisDepATest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisDepATest { @@ -30,186 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 83, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 74, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 74, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 199, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 202, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 127, - (byte) 190, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 201, - (byte) 63, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 1, - (byte) 0, - (byte) 22, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x1a, payload); - MsgEphemerisDepA msg = new MsgEphemerisDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)83,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)74,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)74,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)199,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)202,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)127,(byte)190,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)201,(byte)63,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)1,(byte)0,(byte)22, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x1a, payload ); + MsgEphemerisDepA msg = new MsgEphemerisDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -226,8 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 7.07220705226063728e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -240,8 +66,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.90358515577419627e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -252,9 +77,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.46384200000000012e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -263,9 +86,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.46384200000000012e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -273,8 +94,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisDepCTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisDepCTest.java index ae1a4ea5ff..d6ce9e441c 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisDepCTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisDepCTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepC.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepC.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisDepC; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisDepCTest { @@ -30,196 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisDepCTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisDepCTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 83, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 74, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 74, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 199, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 202, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 127, - (byte) 190, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 201, - (byte) 63, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 1, - (byte) 0, - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 45, - (byte) 45, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x47, payload); - MsgEphemerisDepC msg = new MsgEphemerisDepC(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)83,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)74,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)74,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)199,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)202,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)127,(byte)190,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)201,(byte)63,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)1,(byte)0,(byte)22,(byte)0,(byte)0,(byte)0,(byte)45,(byte)45,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x47, payload ); + MsgEphemerisDepC msg = new MsgEphemerisDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -236,8 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 7.07220705226063728e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -247,8 +63,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -4.03588239641575691e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -256,8 +71,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -268,8 +82,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.90358515577419627e-09, DELTA); value = msg.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -277,8 +90,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -286,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -296,8 +106,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -308,9 +117,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.46384200000000012e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -319,9 +126,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.46384200000000012e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -329,8 +134,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisDepDTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisDepDTest.java index e41c197585..10e2283029 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisDepDTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisDepDTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepD.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisDepD.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisDepD; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisDepDTest { @@ -30,196 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisDepDTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisDepDTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 83, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 74, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 74, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 199, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 202, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 127, - (byte) 190, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 153, - (byte) 201, - (byte) 63, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 192, - (byte) 62, - (byte) 27, - (byte) 65, - (byte) 106, - (byte) 8, - (byte) 1, - (byte) 0, - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 45, - (byte) 45, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x80, payload); - MsgEphemerisDepD msg = new MsgEphemerisDepD(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)83,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)74,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)74,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)199,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)202,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)127,(byte)190,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61,(byte)154,(byte)153,(byte)153,(byte)153,(byte)153,(byte)153,(byte)201,(byte)63,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)192,(byte)62,(byte)27,(byte)65,(byte)106,(byte)8,(byte)1,(byte)0,(byte)22,(byte)0,(byte)0,(byte)0,(byte)45,(byte)45,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x80, payload ); + MsgEphemerisDepD msg = new MsgEphemerisDepD( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -236,8 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 7.07220705226063728e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -247,8 +63,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -4.03588239641575691e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -256,8 +71,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -268,8 +82,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.90358515577419627e-09, DELTA); value = msg.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -277,8 +90,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -286,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -296,8 +106,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -308,9 +117,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.46384200000000012e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -319,9 +126,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.46384200000000012e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -329,8 +134,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepATest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepATest.java index cb8f216758..aca883420f 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepATest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGloDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGLODepATest { @@ -30,123 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGLODepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGLODepATest.test1"); - byte[] payload = - new byte[] { - (byte) 4, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 70, - (byte) 197, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 20, - (byte) 64, - (byte) 96, - (byte) 9, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 236, - (byte) 21, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x83, payload); - MsgEphemerisGloDepA msg = new MsgEphemerisGloDepA(sbp); + byte[] payload = new byte[] {(byte)4,(byte)0,(byte)3,(byte)0,(byte)70,(byte)197,(byte)6,(byte)0,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)204,(byte)204,(byte)20,(byte)64,(byte)96,(byte)9,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)48,(byte)236,(byte)21,(byte)191,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x83, payload ); + MsgEphemerisGloDepA msg = new MsgEphemerisGloDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -155,9 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 2400 + "'", - value.equals(BigInteger.valueOf(2400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 2400 + "'", value.equals(BigInteger.valueOf( 2400L ) ) ); } else { value = value.longValue(); expected = 2400L; @@ -165,9 +53,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -175,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -185,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -195,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -205,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 443718 + "'", - value.equals(BigInteger.valueOf(443718L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 443718 + "'", value.equals(BigInteger.valueOf( 443718L ) ) ); } else { value = value.longValue(); expected = 443718L; @@ -215,9 +93,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -226,9 +102,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 5.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepBTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepBTest.java index 08874ff7c8..0463974267 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepBTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGloDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGLODepBTest { @@ -30,121 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGLODepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGLODepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 4, - (byte) 3, - (byte) 70, - (byte) 197, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 20, - (byte) 64, - (byte) 96, - (byte) 9, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 236, - (byte) 21, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x85, payload); - MsgEphemerisGloDepB msg = new MsgEphemerisGloDepB(sbp); + byte[] payload = new byte[] {(byte)4,(byte)3,(byte)70,(byte)197,(byte)6,(byte)0,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)204,(byte)204,(byte)20,(byte)64,(byte)96,(byte)9,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)48,(byte)236,(byte)21,(byte)191,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x85, payload ); + MsgEphemerisGloDepB msg = new MsgEphemerisGloDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -153,9 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 2400 + "'", - value.equals(BigInteger.valueOf(2400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 2400 + "'", value.equals(BigInteger.valueOf( 2400L ) ) ); } else { value = value.longValue(); expected = 2400L; @@ -163,9 +53,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -173,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -183,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -193,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 443718 + "'", - value.equals(BigInteger.valueOf(443718L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 443718 + "'", value.equals(BigInteger.valueOf( 443718L ) ) ); } else { value = value.longValue(); expected = 443718L; @@ -203,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -214,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 5.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepCTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepCTest.java index fd8b48069e..2f0a96c555 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepCTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepCTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepC.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepC.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGloDepC; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGLODepCTest { @@ -30,130 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGLODepCTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGLODepCTest.test1"); - byte[] payload = - new byte[] { - (byte) 4, - (byte) 3, - (byte) 70, - (byte) 197, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 20, - (byte) 64, - (byte) 96, - (byte) 9, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 236, - (byte) 21, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - (byte) 14, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x87, payload); - MsgEphemerisGloDepC msg = new MsgEphemerisGloDepC(sbp); + byte[] payload = new byte[] {(byte)4,(byte)3,(byte)70,(byte)197,(byte)6,(byte)0,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)204,(byte)204,(byte)20,(byte)64,(byte)96,(byte)9,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)48,(byte)236,(byte)21,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)190,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62,(byte)14, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x87, payload ); + MsgEphemerisGloDepC msg = new MsgEphemerisGloDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -162,9 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 2400 + "'", - value.equals(BigInteger.valueOf(2400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 2400 + "'", value.equals(BigInteger.valueOf( 2400L ) ) ); } else { value = value.longValue(); expected = 2400L; @@ -172,9 +53,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -182,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -192,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -202,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 443718 + "'", - value.equals(BigInteger.valueOf(443718L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 443718 + "'", value.equals(BigInteger.valueOf( 443718L ) ) ); } else { value = value.longValue(); expected = 443718L; @@ -212,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -223,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 5.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -234,8 +103,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.d_tau, -2.79396772384643555e-09, DELTA); value = msg.fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepDTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepDTest.java index 1564bbd6ec..44e19f4a7f 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGLODepDTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGLODepDTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepD.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLODepD.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGloDepD; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGLODepDTest { @@ -30,131 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGLODepDTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGLODepDTest.test1"); - byte[] payload = - new byte[] { - (byte) 4, - (byte) 3, - (byte) 70, - (byte) 197, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 205, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 204, - (byte) 20, - (byte) 64, - (byte) 96, - (byte) 9, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 236, - (byte) 21, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - (byte) 14, - (byte) 100, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x88, payload); - MsgEphemerisGloDepD msg = new MsgEphemerisGloDepD(sbp); + byte[] payload = new byte[] {(byte)4,(byte)3,(byte)70,(byte)197,(byte)6,(byte)0,(byte)106,(byte)8,(byte)205,(byte)204,(byte)204,(byte)204,(byte)204,(byte)204,(byte)20,(byte)64,(byte)96,(byte)9,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)48,(byte)236,(byte)21,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)190,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62,(byte)14,(byte)100, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x88, payload ); + MsgEphemerisGloDepD msg = new MsgEphemerisGloDepD( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -163,9 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 2400 + "'", - value.equals(BigInteger.valueOf(2400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 2400 + "'", value.equals(BigInteger.valueOf( 2400L ) ) ); } else { value = value.longValue(); expected = 2400L; @@ -173,9 +53,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -183,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -193,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -203,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 443718 + "'", - value.equals(BigInteger.valueOf(443718L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 443718 + "'", value.equals(BigInteger.valueOf( 443718L ) ) ); } else { value = value.longValue(); expected = 443718L; @@ -213,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -224,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 5.20000000000000018e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -235,8 +103,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.d_tau, -2.79396772384643555e-09, DELTA); value = msg.fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -245,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.gamma, 9.09494701772928238e-13, DELTA); value = msg.iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod + "' != '" + 100 + "'", value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.iod + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGLOTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGLOTest.java index 2c295ba113..197e1129a9 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGLOTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGLOTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLO.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGLO.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGlo; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGLOTest { @@ -30,25 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGLOTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGLOTest.test1"); - byte[] payload = - new byte[] { - (byte) 4, (byte) 3, (byte) 70, (byte) 197, (byte) 6, (byte) 0, (byte) 106, - (byte) 8, (byte) 0, (byte) 0, (byte) 160, (byte) 64, (byte) 96, (byte) 9, - (byte) 0, (byte) 0, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 43, (byte) 128, (byte) 97, (byte) 175, (byte) 184, (byte) 0, (byte) 0, - (byte) 64, (byte) 177, (byte) 0, (byte) 0, (byte) 128, (byte) 66, (byte) 246, - (byte) 57, (byte) 103, (byte) 193, (byte) 0, (byte) 0, (byte) 0, (byte) 34, - (byte) 170, (byte) 78, (byte) 34, (byte) 65, (byte) 0, (byte) 0, (byte) 240, - (byte) 199, (byte) 84, (byte) 86, (byte) 117, (byte) 193, (byte) 0, (byte) 0, - (byte) 0, (byte) 98, (byte) 6, (byte) 250, (byte) 154, (byte) 192, (byte) 0, - (byte) 0, (byte) 0, (byte) 217, (byte) 58, (byte) 221, (byte) 163, (byte) 192, - (byte) 0, (byte) 0, (byte) 0, (byte) 184, (byte) 138, (byte) 46, (byte) 139, - (byte) 64, (byte) 0, (byte) 0, (byte) 122, (byte) 53, (byte) 0, (byte) 0, - (byte) 122, (byte) 53, (byte) 0, (byte) 128, (byte) 59, (byte) 54, (byte) 14, - (byte) 100, - }; - SBPMessage sbp = new SBPMessage(0x90a, 0x8b, payload); - MsgEphemerisGlo msg = new MsgEphemerisGlo(sbp); + byte[] payload = new byte[] {(byte)4,(byte)3,(byte)70,(byte)197,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)160,(byte)64,(byte)96,(byte)9,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)128,(byte)43,(byte)128,(byte)97,(byte)175,(byte)184,(byte)0,(byte)0,(byte)64,(byte)177,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)122,(byte)53,(byte)0,(byte)0,(byte)122,(byte)53,(byte)0,(byte)128,(byte)59,(byte)54,(byte)14,(byte)100, }; + SBPMessage sbp = new SBPMessage( 0x90a, 0x8b, payload ); + MsgEphemerisGlo msg = new MsgEphemerisGlo( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -57,9 +45,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 2400 + "'", - value.equals(BigInteger.valueOf(2400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 2400 + "'", value.equals(BigInteger.valueOf( 2400L ) ) ); } else { value = value.longValue(); expected = 2400L; @@ -67,9 +53,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -77,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -87,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -97,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 443718 + "'", - value.equals(BigInteger.valueOf(443718L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 443718 + "'", value.equals(BigInteger.valueOf( 443718L ) ) ); } else { value = value.longValue(); expected = 443718L; @@ -107,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -118,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 5.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -129,8 +103,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.d_tau, -2.79396772384643555e-09, DELTA); value = msg.fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -139,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.gamma, 9.09494701772928238e-13, DELTA); value = msg.iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod + "' != '" + 100 + "'", value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.iod + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepETest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepETest.java index 3c52b57e2f..ed7160580d 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepETest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepETest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPSDepE.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPSDepE.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGPSDepE; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGPSDepETest { @@ -30,196 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGPSDepETest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGPSDepETest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 83, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 74, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 74, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 199, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 202, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 127, - (byte) 190, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 45, - (byte) 45, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x81, payload); - MsgEphemerisGPSDepE msg = new MsgEphemerisGPSDepE(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)83,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)74,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)74,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)199,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)202,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)127,(byte)190,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)45,(byte)45,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x81, payload ); + MsgEphemerisGPSDepE msg = new MsgEphemerisGPSDepE( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -234,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 3.13669443130493164e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -244,9 +59,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -254,9 +67,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -264,9 +75,7 @@ public void test1() throws Throwable { } value = msg.common.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -274,9 +83,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -284,9 +91,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -294,9 +99,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -305,9 +108,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -319,8 +120,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -4.03588239641575691e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -328,8 +128,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -342,9 +141,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.tgd, -1.76951289176940918e-08, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -352,9 +149,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepFTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepFTest.java index d456ae4a6e..615eb73c4e 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepFTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGPSDepFTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPSDepF.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPSDepF.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGPSDepF; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGPSDepFTest { @@ -30,194 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGPSDepFTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGPSDepFTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 83, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 74, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 74, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 199, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 202, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 127, - (byte) 190, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 45, - (byte) 45, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x86, payload); - MsgEphemerisGPSDepF msg = new MsgEphemerisGPSDepF(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)83,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)74,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)74,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)199,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)202,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)127,(byte)190,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)45,(byte)45,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x86, payload ); + MsgEphemerisGPSDepF msg = new MsgEphemerisGPSDepF( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -232,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 3.13669443130493164e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -242,9 +59,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -252,9 +67,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -262,9 +75,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -272,9 +83,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -282,9 +91,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -293,9 +100,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -307,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -4.03588239641575691e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -316,8 +120,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -330,9 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.tgd, -1.76951289176940918e-08, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -340,9 +141,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGPSTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGPSTest.java index 4460eb3241..a5c67a9e9a 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGPSTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGPSTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPS.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGPS.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGPS; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGPSTest { @@ -30,150 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGPSTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGPSTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 152, - (byte) 178, - (byte) 0, - (byte) 64, - (byte) 81, - (byte) 194, - (byte) 0, - (byte) 80, - (byte) 154, - (byte) 67, - (byte) 0, - (byte) 32, - (byte) 56, - (byte) 182, - (byte) 0, - (byte) 128, - (byte) 82, - (byte) 54, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 50, - (byte) 0, - (byte) 0, - (byte) 248, - (byte) 179, - (byte) 114, - (byte) 216, - (byte) 96, - (byte) 180, - (byte) 49, - (byte) 117, - (byte) 56, - (byte) 62, - (byte) 142, - (byte) 41, - (byte) 5, - (byte) 235, - (byte) 95, - (byte) 135, - (byte) 150, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 191, - (byte) 247, - (byte) 124, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 206, - (byte) 140, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 41, - (byte) 131, - (byte) 179, - (byte) 134, - (byte) 141, - (byte) 248, - (byte) 253, - (byte) 191, - (byte) 227, - (byte) 133, - (byte) 81, - (byte) 54, - (byte) 204, - (byte) 30, - (byte) 67, - (byte) 190, - (byte) 216, - (byte) 59, - (byte) 199, - (byte) 39, - (byte) 96, - (byte) 168, - (byte) 239, - (byte) 191, - (byte) 71, - (byte) 11, - (byte) 217, - (byte) 147, - (byte) 145, - (byte) 228, - (byte) 237, - (byte) 63, - (byte) 221, - (byte) 47, - (byte) 100, - (byte) 224, - (byte) 255, - (byte) 47, - (byte) 198, - (byte) 189, - (byte) 96, - (byte) 139, - (byte) 37, - (byte) 186, - (byte) 0, - (byte) 0, - (byte) 30, - (byte) 45, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 45, - (byte) 45, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x90a, 0x8a, payload); - MsgEphemerisGPS msg = new MsgEphemerisGPS(sbp); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)152,(byte)178,(byte)0,(byte)64,(byte)81,(byte)194,(byte)0,(byte)80,(byte)154,(byte)67,(byte)0,(byte)32,(byte)56,(byte)182,(byte)0,(byte)128,(byte)82,(byte)54,(byte)0,(byte)0,(byte)0,(byte)50,(byte)0,(byte)0,(byte)248,(byte)179,(byte)114,(byte)216,(byte)96,(byte)180,(byte)49,(byte)117,(byte)56,(byte)62,(byte)142,(byte)41,(byte)5,(byte)235,(byte)95,(byte)135,(byte)150,(byte)191,(byte)0,(byte)0,(byte)0,(byte)32,(byte)191,(byte)247,(byte)124,(byte)63,(byte)0,(byte)0,(byte)192,(byte)206,(byte)140,(byte)33,(byte)180,(byte)64,(byte)41,(byte)131,(byte)179,(byte)134,(byte)141,(byte)248,(byte)253,(byte)191,(byte)227,(byte)133,(byte)81,(byte)54,(byte)204,(byte)30,(byte)67,(byte)190,(byte)216,(byte)59,(byte)199,(byte)39,(byte)96,(byte)168,(byte)239,(byte)191,(byte)71,(byte)11,(byte)217,(byte)147,(byte)145,(byte)228,(byte)237,(byte)63,(byte)221,(byte)47,(byte)100,(byte)224,(byte)255,(byte)47,(byte)198,(byte)189,(byte)96,(byte)139,(byte)37,(byte)186,(byte)0,(byte)0,(byte)30,(byte)45,(byte)0,(byte)0,(byte)0,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)45,(byte)45,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x90a, 0x8a, payload ); + MsgEphemerisGPS msg = new MsgEphemerisGPS( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -188,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 3.13669443130493164e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -198,9 +59,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -208,9 +67,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -218,9 +75,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -228,9 +83,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -238,9 +91,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -249,9 +100,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -263,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -4.03588239641575691e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -272,8 +120,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -286,9 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.tgd, -1.76951289176940918e-08, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -296,9 +141,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGalDepATest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGalDepATest.java index 222ddccf3d..16c0190c16 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGalDepATest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGalDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGalDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGalDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGalDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGalDepATest { @@ -30,163 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGalDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGalDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 27, - (byte) 14, - (byte) 32, - (byte) 217, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 102, - (byte) 102, - (byte) 230, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 154, - (byte) 153, - (byte) 153, - (byte) 63, - (byte) 205, - (byte) 204, - (byte) 12, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 184, - (byte) 132, - (byte) 67, - (byte) 102, - (byte) 102, - (byte) 166, - (byte) 64, - (byte) 102, - (byte) 102, - (byte) 198, - (byte) 64, - (byte) 205, - (byte) 204, - (byte) 76, - (byte) 64, - (byte) 102, - (byte) 102, - (byte) 134, - (byte) 64, - (byte) 217, - (byte) 204, - (byte) 130, - (byte) 105, - (byte) 128, - (byte) 182, - (byte) 43, - (byte) 62, - (byte) 248, - (byte) 106, - (byte) 31, - (byte) 220, - (byte) 8, - (byte) 136, - (byte) 253, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 151, - (byte) 92, - (byte) 38, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 55, - (byte) 154, - (byte) 64, - (byte) 181, - (byte) 64, - (byte) 56, - (byte) 38, - (byte) 1, - (byte) 141, - (byte) 255, - (byte) 182, - (byte) 242, - (byte) 63, - (byte) 222, - (byte) 147, - (byte) 136, - (byte) 39, - (byte) 79, - (byte) 186, - (byte) 56, - (byte) 190, - (byte) 80, - (byte) 114, - (byte) 204, - (byte) 251, - (byte) 193, - (byte) 92, - (byte) 191, - (byte) 63, - (byte) 237, - (byte) 55, - (byte) 19, - (byte) 41, - (byte) 177, - (byte) 73, - (byte) 239, - (byte) 63, - (byte) 49, - (byte) 65, - (byte) 189, - (byte) 240, - (byte) 8, - (byte) 216, - (byte) 245, - (byte) 189, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 67, - (byte) 235, - (byte) 241, - (byte) 190, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 161, - (byte) 189, - (byte) 205, - (byte) 204, - (byte) 76, - (byte) 62, - (byte) 32, - (byte) 217, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 108, - (byte) 0, - (byte) 108, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x95, payload); - MsgEphemerisGalDepA msg = new MsgEphemerisGalDepA(sbp); + byte[] payload = new byte[] {(byte)27,(byte)14,(byte)32,(byte)217,(byte)6,(byte)0,(byte)106,(byte)8,(byte)102,(byte)102,(byte)230,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)154,(byte)153,(byte)153,(byte)63,(byte)205,(byte)204,(byte)12,(byte)64,(byte)0,(byte)0,(byte)34,(byte)65,(byte)0,(byte)184,(byte)132,(byte)67,(byte)102,(byte)102,(byte)166,(byte)64,(byte)102,(byte)102,(byte)198,(byte)64,(byte)205,(byte)204,(byte)76,(byte)64,(byte)102,(byte)102,(byte)134,(byte)64,(byte)217,(byte)204,(byte)130,(byte)105,(byte)128,(byte)182,(byte)43,(byte)62,(byte)248,(byte)106,(byte)31,(byte)220,(byte)8,(byte)136,(byte)253,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)151,(byte)92,(byte)38,(byte)63,(byte)0,(byte)0,(byte)0,(byte)55,(byte)154,(byte)64,(byte)181,(byte)64,(byte)56,(byte)38,(byte)1,(byte)141,(byte)255,(byte)182,(byte)242,(byte)63,(byte)222,(byte)147,(byte)136,(byte)39,(byte)79,(byte)186,(byte)56,(byte)190,(byte)80,(byte)114,(byte)204,(byte)251,(byte)193,(byte)92,(byte)191,(byte)63,(byte)237,(byte)55,(byte)19,(byte)41,(byte)177,(byte)73,(byte)239,(byte)63,(byte)49,(byte)65,(byte)189,(byte)240,(byte)8,(byte)216,(byte)245,(byte)189,(byte)255,(byte)255,(byte)255,(byte)255,(byte)67,(byte)235,(byte)241,(byte)190,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)161,(byte)189,(byte)205,(byte)204,(byte)76,(byte)62,(byte)32,(byte)217,(byte)6,(byte)0,(byte)106,(byte)8,(byte)108,(byte)0,(byte)108,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x95, payload ); + MsgEphemerisGalDepA msg = new MsgEphemerisGalDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -203,9 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 6.19999980926513672e+00, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -213,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -223,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -233,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -243,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 448800 + "'", - value.equals(BigInteger.valueOf(448800L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 448800 + "'", value.equals(BigInteger.valueOf( 448800L ) ) ); } else { value = value.longValue(); expected = 448800L; @@ -253,9 +93,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -264,9 +102,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 7.19999980926513672e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -278,8 +114,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -3.17870383434514646e-10, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 108 + "'", value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -287,8 +122,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 108 + "'", value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -300,9 +134,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.sqrta, 5.44060240173339844e+03, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 448800 + "'", - value.equals(BigInteger.valueOf(448800L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 448800 + "'", value.equals(BigInteger.valueOf( 448800L ) ) ); } else { value = value.longValue(); expected = 448800L; @@ -310,9 +142,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisGalTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisGalTest.java index 3bcf41f8a1..b274441974 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisGalTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisGalTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGal.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisGal.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisGal; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisGalTest { @@ -30,164 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisGalTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisGalTest.test1"); - byte[] payload = - new byte[] { - (byte) 27, - (byte) 14, - (byte) 32, - (byte) 217, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 20, - (byte) 174, - (byte) 71, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 16, - (byte) 49, - (byte) 0, - (byte) 0, - (byte) 16, - (byte) 49, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 184, - (byte) 132, - (byte) 67, - (byte) 0, - (byte) 0, - (byte) 16, - (byte) 53, - (byte) 0, - (byte) 0, - (byte) 134, - (byte) 54, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 179, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 179, - (byte) 217, - (byte) 204, - (byte) 130, - (byte) 105, - (byte) 128, - (byte) 182, - (byte) 43, - (byte) 62, - (byte) 248, - (byte) 106, - (byte) 31, - (byte) 220, - (byte) 8, - (byte) 136, - (byte) 253, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 151, - (byte) 92, - (byte) 38, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 55, - (byte) 154, - (byte) 64, - (byte) 181, - (byte) 64, - (byte) 56, - (byte) 38, - (byte) 1, - (byte) 141, - (byte) 255, - (byte) 182, - (byte) 242, - (byte) 63, - (byte) 222, - (byte) 147, - (byte) 136, - (byte) 39, - (byte) 79, - (byte) 186, - (byte) 56, - (byte) 190, - (byte) 80, - (byte) 114, - (byte) 204, - (byte) 251, - (byte) 193, - (byte) 92, - (byte) 191, - (byte) 63, - (byte) 237, - (byte) 55, - (byte) 19, - (byte) 41, - (byte) 177, - (byte) 73, - (byte) 239, - (byte) 63, - (byte) 49, - (byte) 65, - (byte) 189, - (byte) 240, - (byte) 8, - (byte) 216, - (byte) 245, - (byte) 189, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 67, - (byte) 235, - (byte) 241, - (byte) 190, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 161, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 32, - (byte) 217, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 108, - (byte) 0, - (byte) 108, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xf080, 0x8d, payload); - MsgEphemerisGal msg = new MsgEphemerisGal(sbp); + byte[] payload = new byte[] {(byte)27,(byte)14,(byte)32,(byte)217,(byte)6,(byte)0,(byte)106,(byte)8,(byte)20,(byte)174,(byte)71,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)16,(byte)49,(byte)0,(byte)0,(byte)16,(byte)49,(byte)0,(byte)0,(byte)34,(byte)65,(byte)0,(byte)184,(byte)132,(byte)67,(byte)0,(byte)0,(byte)16,(byte)53,(byte)0,(byte)0,(byte)134,(byte)54,(byte)0,(byte)0,(byte)8,(byte)179,(byte)0,(byte)0,(byte)8,(byte)179,(byte)217,(byte)204,(byte)130,(byte)105,(byte)128,(byte)182,(byte)43,(byte)62,(byte)248,(byte)106,(byte)31,(byte)220,(byte)8,(byte)136,(byte)253,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)151,(byte)92,(byte)38,(byte)63,(byte)0,(byte)0,(byte)0,(byte)55,(byte)154,(byte)64,(byte)181,(byte)64,(byte)56,(byte)38,(byte)1,(byte)141,(byte)255,(byte)182,(byte)242,(byte)63,(byte)222,(byte)147,(byte)136,(byte)39,(byte)79,(byte)186,(byte)56,(byte)190,(byte)80,(byte)114,(byte)204,(byte)251,(byte)193,(byte)92,(byte)191,(byte)63,(byte)237,(byte)55,(byte)19,(byte)41,(byte)177,(byte)73,(byte)239,(byte)63,(byte)49,(byte)65,(byte)189,(byte)240,(byte)8,(byte)216,(byte)245,(byte)189,(byte)255,(byte)255,(byte)255,(byte)255,(byte)67,(byte)235,(byte)241,(byte)190,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)255,(byte)161,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)32,(byte)217,(byte)6,(byte)0,(byte)106,(byte)8,(byte)108,(byte)0,(byte)108,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xf080, 0x8d, payload ); + MsgEphemerisGal msg = new MsgEphemerisGal( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -204,9 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 3.99351119995117188e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -214,9 +61,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -224,9 +69,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -234,9 +77,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -244,9 +85,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 448800 + "'", - value.equals(BigInteger.valueOf(448800L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 448800 + "'", value.equals(BigInteger.valueOf( 448800L ) ) ); } else { value = value.longValue(); expected = 448800L; @@ -254,9 +93,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -265,9 +102,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 3.11999988555908203e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -279,8 +114,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -3.17870383434514646e-10, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 108 + "'", value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -288,8 +122,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 108 + "'", value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -300,8 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -5.75738267524087236e-09, DELTA); value = msg.source; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.source + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.source + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -310,9 +142,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.sqrta, 5.44060240173339844e+03, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 448800 + "'", - value.equals(BigInteger.valueOf(448800L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 448800 + "'", value.equals(BigInteger.valueOf( 448800L ) ) ); } else { value = value.longValue(); expected = 448800L; @@ -320,9 +150,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepATest.java b/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepATest.java index 06d4fe23e1..ad7c2746a7 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepATest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbasDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbasDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisSbasDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisSbasDepATest { @@ -29,125 +33,10 @@ public class auto_check_sbp_observation_MsgEphemerisSbasDepATest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_observation_MsgEphemerisSbasDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 0, - (byte) 6, - (byte) 0, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x82, payload); - MsgEphemerisSbasDepA msg = new MsgEphemerisSbasDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisSbasDepATest.test1"); + byte[] payload = new byte[] {(byte)22,(byte)0,(byte)6,(byte)0,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x82, payload ); + MsgEphemerisSbasDepA msg = new MsgEphemerisSbasDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -158,9 +47,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -168,9 +55,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -178,9 +63,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -188,9 +71,7 @@ public void test1() throws Throwable { } value = msg.common.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -198,9 +79,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -208,9 +87,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -218,9 +95,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -229,9 +104,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepBTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepBTest.java index 5b2f565ab8..4cfe37241a 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepBTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisSbasDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbasDepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbasDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisSbasDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisSbasDepBTest { @@ -29,123 +33,10 @@ public class auto_check_sbp_observation_MsgEphemerisSbasDepBTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_observation_MsgEphemerisSbasDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 6, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 98, - (byte) 6, - (byte) 250, - (byte) 154, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 58, - (byte) 221, - (byte) 163, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 184, - (byte) 138, - (byte) 46, - (byte) 139, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 175, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 199, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 177, - (byte) 68, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 163, - (byte) 61, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x84, payload); - MsgEphemerisSbasDepB msg = new MsgEphemerisSbasDepB(sbp); + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisSbasDepBTest.test1"); + byte[] payload = new byte[] {(byte)22,(byte)6,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)0,(byte)0,(byte)0,(byte)98,(byte)6,(byte)250,(byte)154,(byte)192,(byte)0,(byte)0,(byte)0,(byte)217,(byte)58,(byte)221,(byte)163,(byte)192,(byte)0,(byte)0,(byte)0,(byte)184,(byte)138,(byte)46,(byte)139,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)175,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)199,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)177,(byte)68,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)163,(byte)61, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x84, payload ); + MsgEphemerisSbasDepB msg = new MsgEphemerisSbasDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -156,9 +47,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -166,9 +55,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -176,9 +63,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -186,9 +71,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -196,9 +79,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -206,9 +87,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -217,9 +96,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgEphemerisSbasTest.java b/java/test/auto_check_sbp_observation_MsgEphemerisSbasTest.java index a0d5485ebe..27f082fb20 100644 --- a/java/test/auto_check_sbp_observation_MsgEphemerisSbasTest.java +++ b/java/test/auto_check_sbp_observation_MsgEphemerisSbasTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbas.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgEphemerisSbas.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisSbas; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgEphemerisSbasTest { @@ -30,85 +34,9 @@ public class auto_check_sbp_observation_MsgEphemerisSbasTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgEphemerisSbasTest.test1"); - byte[] payload = - new byte[] { - (byte) 22, - (byte) 6, - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 177, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 66, - (byte) 246, - (byte) 57, - (byte) 103, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 170, - (byte) 78, - (byte) 34, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 199, - (byte) 84, - (byte) 86, - (byte) 117, - (byte) 193, - (byte) 51, - (byte) 208, - (byte) 215, - (byte) 196, - (byte) 215, - (byte) 233, - (byte) 30, - (byte) 197, - (byte) 86, - (byte) 116, - (byte) 89, - (byte) 68, - (byte) 0, - (byte) 0, - (byte) 122, - (byte) 53, - (byte) 0, - (byte) 0, - (byte) 122, - (byte) 53, - (byte) 0, - (byte) 128, - (byte) 59, - (byte) 54, - (byte) 96, - (byte) 139, - (byte) 37, - (byte) 186, - (byte) 0, - (byte) 0, - (byte) 30, - (byte) 45, - }; - SBPMessage sbp = new SBPMessage(0x04c3, 0x8c, payload); - MsgEphemerisSbas msg = new MsgEphemerisSbas(sbp); + byte[] payload = new byte[] {(byte)22,(byte)6,(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)64,(byte)177,(byte)0,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)128,(byte)66,(byte)246,(byte)57,(byte)103,(byte)193,(byte)0,(byte)0,(byte)0,(byte)34,(byte)170,(byte)78,(byte)34,(byte)65,(byte)0,(byte)0,(byte)240,(byte)199,(byte)84,(byte)86,(byte)117,(byte)193,(byte)51,(byte)208,(byte)215,(byte)196,(byte)215,(byte)233,(byte)30,(byte)197,(byte)86,(byte)116,(byte)89,(byte)68,(byte)0,(byte)0,(byte)122,(byte)53,(byte)0,(byte)0,(byte)122,(byte)53,(byte)0,(byte)128,(byte)59,(byte)54,(byte)96,(byte)139,(byte)37,(byte)186,(byte)0,(byte)0,(byte)30,(byte)45, }; + SBPMessage sbp = new SBPMessage( 0x04c3, 0x8c, payload ); + MsgEphemerisSbas msg = new MsgEphemerisSbas( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -119,9 +47,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.acc[2], 2.79396772384643555e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -129,9 +55,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -139,9 +63,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -149,9 +71,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -159,9 +79,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -169,9 +87,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -180,9 +96,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, -2.79396772384643555e-09, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgGloBiasesTest.java b/java/test/auto_check_sbp_observation_MsgGloBiasesTest.java index ef327ccab1..6a08f7e299 100644 --- a/java/test/auto_check_sbp_observation_MsgGloBiasesTest.java +++ b/java/test/auto_check_sbp_observation_MsgGloBiasesTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGloBiases.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGloBiases.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgGloBiases; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgGloBiasesTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_observation_MsgGloBiasesTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGloBiasesTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0, 0x75, payload); - MsgGloBiases msg = new MsgGloBiases(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGloBiasesTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0, 0x75, payload ); + MsgGloBiases msg = new MsgGloBiases( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.l1ca_bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.l1ca_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.l1ca_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -49,8 +50,7 @@ public void test1() throws Throwable { } value = msg.l1p_bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.l1p_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.l1p_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -58,8 +58,7 @@ public void test1() throws Throwable { } value = msg.l2ca_bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.l2ca_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.l2ca_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -67,8 +66,7 @@ public void test1() throws Throwable { } value = msg.l2p_bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.l2p_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.l2p_bias + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -76,8 +74,7 @@ public void test1() throws Throwable { } value = msg.mask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mask + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.mask + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_observation_MsgGnssCapbTest.java b/java/test/auto_check_sbp_observation_MsgGnssCapbTest.java index 2c9674fa2e..66fd0a7db2 100644 --- a/java/test/auto_check_sbp_observation_MsgGnssCapbTest.java +++ b/java/test/auto_check_sbp_observation_MsgGnssCapbTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGnssCapb.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGnssCapb.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgGnssCapb; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgGnssCapbTest { @@ -27,130 +32,17 @@ public class auto_check_sbp_observation_MsgGnssCapbTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGnssCapbTest.test1"); - byte[] payload = - new byte[] { - (byte) 176, - (byte) 207, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 26, - (byte) 171, - (byte) 80, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 81, - (byte) 173, - (byte) 144, - (byte) 46, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 209, - (byte) 139, - (byte) 93, - (byte) 108, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 252, - (byte) 204, - (byte) 200, - (byte) 0, - (byte) 205, - (byte) 92, - (byte) 30, - (byte) 49, - (byte) 240, - (byte) 203, - (byte) 21, - (byte) 24, - (byte) 212, - (byte) 93, - (byte) 182, - (byte) 32, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 105, - (byte) 32, - (byte) 192, - (byte) 27, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 75, - (byte) 250, - (byte) 114, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 119, - (byte) 147, - (byte) 123, - (byte) 81, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 85, - (byte) 89, - (byte) 4, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 233, - (byte) 116, - (byte) 137, - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 199, - (byte) 109, - (byte) 219, - (byte) 11, - (byte) 221, - (byte) 171, - (byte) 248, - (byte) 82, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 252, - (byte) 62, - (byte) 221, - (byte) 28, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x96, payload); - MsgGnssCapb msg = new MsgGnssCapb(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGnssCapbTest.test1"); + byte[] payload = new byte[] {(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)26,(byte)171,(byte)80,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)81,(byte)173,(byte)144,(byte)46,(byte)0,(byte)0,(byte)0,(byte)0,(byte)209,(byte)139,(byte)93,(byte)108,(byte)0,(byte)0,(byte)0,(byte)0,(byte)252,(byte)204,(byte)200,(byte)0,(byte)205,(byte)92,(byte)30,(byte)49,(byte)240,(byte)203,(byte)21,(byte)24,(byte)212,(byte)93,(byte)182,(byte)32,(byte)0,(byte)0,(byte)0,(byte)0,(byte)105,(byte)32,(byte)192,(byte)27,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)75,(byte)250,(byte)114,(byte)0,(byte)0,(byte)0,(byte)0,(byte)119,(byte)147,(byte)123,(byte)81,(byte)0,(byte)0,(byte)0,(byte)0,(byte)85,(byte)89,(byte)4,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)233,(byte)116,(byte)137,(byte)22,(byte)0,(byte)0,(byte)0,(byte)0,(byte)199,(byte)109,(byte)219,(byte)11,(byte)221,(byte)171,(byte)248,(byte)82,(byte)0,(byte)0,(byte)0,(byte)0,(byte)252,(byte)62,(byte)221,(byte)28,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x96, payload ); + MsgGnssCapb msg = new MsgGnssCapb( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gc.bds_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.bds_active + "' != '" + 1929005864 + "'", - value.equals(BigInteger.valueOf(1929005864L))); + org.junit.Assert.assertTrue("'" + msg.gc.bds_active + "' != '" + 1929005864 + "'", value.equals(BigInteger.valueOf( 1929005864L ) ) ); } else { value = value.longValue(); expected = 1929005864L; @@ -158,9 +50,7 @@ public void test1() throws Throwable { } value = msg.gc.bds_b2; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.bds_b2 + "' != '" + 33839445 + "'", - value.equals(BigInteger.valueOf(33839445L))); + org.junit.Assert.assertTrue("'" + msg.gc.bds_b2 + "' != '" + 33839445 + "'", value.equals(BigInteger.valueOf( 33839445L ) ) ); } else { value = value.longValue(); expected = 33839445L; @@ -168,9 +58,7 @@ public void test1() throws Throwable { } value = msg.gc.bds_b2a; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.bds_b2a + "' != '" + 378107113 + "'", - value.equals(BigInteger.valueOf(378107113L))); + org.junit.Assert.assertTrue("'" + msg.gc.bds_b2a + "' != '" + 378107113 + "'", value.equals(BigInteger.valueOf( 378107113L ) ) ); } else { value = value.longValue(); expected = 378107113L; @@ -178,9 +66,7 @@ public void test1() throws Throwable { } value = msg.gc.bds_d2nav; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.bds_d2nav + "' != '" + 1367053175 + "'", - value.equals(BigInteger.valueOf(1367053175L))); + org.junit.Assert.assertTrue("'" + msg.gc.bds_d2nav + "' != '" + 1367053175 + "'", value.equals(BigInteger.valueOf( 1367053175L ) ) ); } else { value = value.longValue(); expected = 1367053175L; @@ -188,9 +74,7 @@ public void test1() throws Throwable { } value = msg.gc.gal_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.gal_active + "' != '" + 1392028637 + "'", - value.equals(BigInteger.valueOf(1392028637L))); + org.junit.Assert.assertTrue("'" + msg.gc.gal_active + "' != '" + 1392028637 + "'", value.equals(BigInteger.valueOf( 1392028637L ) ) ); } else { value = value.longValue(); expected = 1392028637L; @@ -198,9 +82,7 @@ public void test1() throws Throwable { } value = msg.gc.gal_e5; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.gal_e5 + "' != '" + 484261628 + "'", - value.equals(BigInteger.valueOf(484261628L))); + org.junit.Assert.assertTrue("'" + msg.gc.gal_e5 + "' != '" + 484261628 + "'", value.equals(BigInteger.valueOf( 484261628L ) ) ); } else { value = value.longValue(); expected = 484261628L; @@ -208,9 +90,7 @@ public void test1() throws Throwable { } value = msg.gc.glo_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.glo_active + "' != '" + 13159676 + "'", - value.equals(BigInteger.valueOf(13159676L))); + org.junit.Assert.assertTrue("'" + msg.gc.glo_active + "' != '" + 13159676 + "'", value.equals(BigInteger.valueOf( 13159676L ) ) ); } else { value = value.longValue(); expected = 13159676L; @@ -218,9 +98,7 @@ public void test1() throws Throwable { } value = msg.gc.glo_l2of; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.glo_l2of + "' != '" + 824073421 + "'", - value.equals(BigInteger.valueOf(824073421L))); + org.junit.Assert.assertTrue("'" + msg.gc.glo_l2of + "' != '" + 824073421 + "'", value.equals(BigInteger.valueOf( 824073421L ) ) ); } else { value = value.longValue(); expected = 824073421L; @@ -228,9 +106,7 @@ public void test1() throws Throwable { } value = msg.gc.glo_l3; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.glo_l3 + "' != '" + 404081648 + "'", - value.equals(BigInteger.valueOf(404081648L))); + org.junit.Assert.assertTrue("'" + msg.gc.glo_l3 + "' != '" + 404081648 + "'", value.equals(BigInteger.valueOf( 404081648L ) ) ); } else { value = value.longValue(); expected = 404081648L; @@ -238,9 +114,7 @@ public void test1() throws Throwable { } value = msg.gc.gps_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.gps_active + "' != '" + 1079028506 + "'", - value.equals(BigInteger.valueOf(1079028506L))); + org.junit.Assert.assertTrue("'" + msg.gc.gps_active + "' != '" + 1079028506 + "'", value.equals(BigInteger.valueOf( 1079028506L ) ) ); } else { value = value.longValue(); expected = 1079028506L; @@ -248,9 +122,7 @@ public void test1() throws Throwable { } value = msg.gc.gps_l2c; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.gps_l2c + "' != '" + 781233489 + "'", - value.equals(BigInteger.valueOf(781233489L))); + org.junit.Assert.assertTrue("'" + msg.gc.gps_l2c + "' != '" + 781233489 + "'", value.equals(BigInteger.valueOf( 781233489L ) ) ); } else { value = value.longValue(); expected = 781233489L; @@ -258,9 +130,7 @@ public void test1() throws Throwable { } value = msg.gc.gps_l5; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.gps_l5 + "' != '" + 1818069969 + "'", - value.equals(BigInteger.valueOf(1818069969L))); + org.junit.Assert.assertTrue("'" + msg.gc.gps_l5 + "' != '" + 1818069969 + "'", value.equals(BigInteger.valueOf( 1818069969L ) ) ); } else { value = value.longValue(); expected = 1818069969L; @@ -268,9 +138,7 @@ public void test1() throws Throwable { } value = msg.gc.qzss_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.qzss_active + "' != '" + 198929863 + "'", - value.equals(BigInteger.valueOf(198929863L))); + org.junit.Assert.assertTrue("'" + msg.gc.qzss_active + "' != '" + 198929863 + "'", value.equals(BigInteger.valueOf( 198929863L ) ) ); } else { value = value.longValue(); expected = 198929863L; @@ -278,9 +146,7 @@ public void test1() throws Throwable { } value = msg.gc.sbas_active; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.sbas_active + "' != '" + 548822484 + "'", - value.equals(BigInteger.valueOf(548822484L))); + org.junit.Assert.assertTrue("'" + msg.gc.sbas_active + "' != '" + 548822484 + "'", value.equals(BigInteger.valueOf( 548822484L ) ) ); } else { value = value.longValue(); expected = 548822484L; @@ -288,9 +154,7 @@ public void test1() throws Throwable { } value = msg.gc.sbas_l5; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gc.sbas_l5 + "' != '" + 465576041 + "'", - value.equals(BigInteger.valueOf(465576041L))); + org.junit.Assert.assertTrue("'" + msg.gc.sbas_l5 + "' != '" + 465576041 + "'", value.equals(BigInteger.valueOf( 465576041L ) ) ); } else { value = value.longValue(); expected = 465576041L; @@ -298,9 +162,7 @@ public void test1() throws Throwable { } value = msg.t_nmct.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -308,9 +170,7 @@ public void test1() throws Throwable { } value = msg.t_nmct.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgGroupDelayDepATest.java b/java/test/auto_check_sbp_observation_MsgGroupDelayDepATest.java index a0153c1afe..99b03a1e8e 100644 --- a/java/test/auto_check_sbp_observation_MsgGroupDelayDepATest.java +++ b/java/test/auto_check_sbp_observation_MsgGroupDelayDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelayDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelayDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgGroupDelayDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgGroupDelayDepATest { @@ -30,21 +34,15 @@ public class auto_check_sbp_observation_MsgGroupDelayDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGroupDelayDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 176, (byte) 207, (byte) 6, (byte) 0, (byte) 106, (byte) 8, (byte) 22, - (byte) 1, (byte) 254, (byte) 253, (byte) 165, (byte) 255, (byte) 237, (byte) 23, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x92, payload); - MsgGroupDelayDepA msg = new MsgGroupDelayDepA(sbp); + byte[] payload = new byte[] {(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)22,(byte)1,(byte)254,(byte)253,(byte)165,(byte)255,(byte)237,(byte)23, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x92, payload ); + MsgGroupDelayDepA msg = new MsgGroupDelayDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.isc_l1ca; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l1ca + "' != '" + -91 + "'", - value.equals(BigInteger.valueOf(-91L))); + org.junit.Assert.assertTrue("'" + msg.isc_l1ca + "' != '" + -91 + "'", value.equals(BigInteger.valueOf( -91L ) ) ); } else { value = value.longValue(); expected = -91L; @@ -52,9 +50,7 @@ public void test1() throws Throwable { } value = msg.isc_l2c; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l2c + "' != '" + 6125 + "'", - value.equals(BigInteger.valueOf(6125L))); + org.junit.Assert.assertTrue("'" + msg.isc_l2c + "' != '" + 6125 + "'", value.equals(BigInteger.valueOf( 6125L ) ) ); } else { value = value.longValue(); expected = 6125L; @@ -62,8 +58,7 @@ public void test1() throws Throwable { } value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -71,9 +66,7 @@ public void test1() throws Throwable { } value = msg.t_op.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.t_op.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -81,9 +74,7 @@ public void test1() throws Throwable { } value = msg.t_op.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.t_op.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -91,8 +82,7 @@ public void test1() throws Throwable { } value = msg.tgd; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf(-514L))); + org.junit.Assert.assertTrue("'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf( -514L ) ) ); } else { value = value.longValue(); expected = -514L; @@ -100,8 +90,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgGroupDelayDepBTest.java b/java/test/auto_check_sbp_observation_MsgGroupDelayDepBTest.java index e607249eed..119db9fe97 100644 --- a/java/test/auto_check_sbp_observation_MsgGroupDelayDepBTest.java +++ b/java/test/auto_check_sbp_observation_MsgGroupDelayDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelayDepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelayDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgGroupDelayDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgGroupDelayDepBTest { @@ -30,22 +34,15 @@ public class auto_check_sbp_observation_MsgGroupDelayDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGroupDelayDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 176, (byte) 207, (byte) 6, (byte) 0, (byte) 106, (byte) 8, (byte) 22, - (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 254, (byte) 253, (byte) 165, - (byte) 255, (byte) 237, (byte) 23, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x93, payload); - MsgGroupDelayDepB msg = new MsgGroupDelayDepB(sbp); + byte[] payload = new byte[] {(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)22,(byte)0,(byte)0,(byte)0,(byte)1,(byte)254,(byte)253,(byte)165,(byte)255,(byte)237,(byte)23, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x93, payload ); + MsgGroupDelayDepB msg = new MsgGroupDelayDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.isc_l1ca; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l1ca + "' != '" + -91 + "'", - value.equals(BigInteger.valueOf(-91L))); + org.junit.Assert.assertTrue("'" + msg.isc_l1ca + "' != '" + -91 + "'", value.equals(BigInteger.valueOf( -91L ) ) ); } else { value = value.longValue(); expected = -91L; @@ -53,9 +50,7 @@ public void test1() throws Throwable { } value = msg.isc_l2c; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l2c + "' != '" + 6125 + "'", - value.equals(BigInteger.valueOf(6125L))); + org.junit.Assert.assertTrue("'" + msg.isc_l2c + "' != '" + 6125 + "'", value.equals(BigInteger.valueOf( 6125L ) ) ); } else { value = value.longValue(); expected = 6125L; @@ -63,8 +58,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -72,9 +66,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -82,8 +74,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -91,9 +82,7 @@ public void test1() throws Throwable { } value = msg.t_op.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.t_op.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -101,9 +90,7 @@ public void test1() throws Throwable { } value = msg.t_op.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.t_op.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -111,8 +98,7 @@ public void test1() throws Throwable { } value = msg.tgd; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf(-514L))); + org.junit.Assert.assertTrue("'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf( -514L ) ) ); } else { value = value.longValue(); expected = -514L; @@ -120,8 +106,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgGroupDelayTest.java b/java/test/auto_check_sbp_observation_MsgGroupDelayTest.java index 3fe10d6555..d61d854c63 100644 --- a/java/test/auto_check_sbp_observation_MsgGroupDelayTest.java +++ b/java/test/auto_check_sbp_observation_MsgGroupDelayTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelay.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgGroupDelay.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgGroupDelay; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgGroupDelayTest { @@ -30,22 +34,15 @@ public class auto_check_sbp_observation_MsgGroupDelayTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgGroupDelayTest.test1"); - byte[] payload = - new byte[] { - (byte) 176, (byte) 207, (byte) 6, (byte) 0, (byte) 106, (byte) 8, (byte) 22, - (byte) 0, (byte) 1, (byte) 254, (byte) 253, (byte) 165, (byte) 255, (byte) 237, - (byte) 23, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x94, payload); - MsgGroupDelay msg = new MsgGroupDelay(sbp); + byte[] payload = new byte[] {(byte)176,(byte)207,(byte)6,(byte)0,(byte)106,(byte)8,(byte)22,(byte)0,(byte)1,(byte)254,(byte)253,(byte)165,(byte)255,(byte)237,(byte)23, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x94, payload ); + MsgGroupDelay msg = new MsgGroupDelay( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.isc_l1ca; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l1ca + "' != '" + -91 + "'", - value.equals(BigInteger.valueOf(-91L))); + org.junit.Assert.assertTrue("'" + msg.isc_l1ca + "' != '" + -91 + "'", value.equals(BigInteger.valueOf( -91L ) ) ); } else { value = value.longValue(); expected = -91L; @@ -53,9 +50,7 @@ public void test1() throws Throwable { } value = msg.isc_l2c; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.isc_l2c + "' != '" + 6125 + "'", - value.equals(BigInteger.valueOf(6125L))); + org.junit.Assert.assertTrue("'" + msg.isc_l2c + "' != '" + 6125 + "'", value.equals(BigInteger.valueOf( 6125L ) ) ); } else { value = value.longValue(); expected = 6125L; @@ -63,8 +58,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -72,8 +66,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -81,9 +74,7 @@ public void test1() throws Throwable { } value = msg.t_op.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.tow + "' != '" + 446384 + "'", - value.equals(BigInteger.valueOf(446384L))); + org.junit.Assert.assertTrue("'" + msg.t_op.tow + "' != '" + 446384 + "'", value.equals(BigInteger.valueOf( 446384L ) ) ); } else { value = value.longValue(); expected = 446384L; @@ -91,9 +82,7 @@ public void test1() throws Throwable { } value = msg.t_op.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_op.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.t_op.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -101,8 +90,7 @@ public void test1() throws Throwable { } value = msg.tgd; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf(-514L))); + org.junit.Assert.assertTrue("'" + msg.tgd + "' != '" + -514 + "'", value.equals(BigInteger.valueOf( -514L ) ) ); } else { value = value.longValue(); expected = -514L; @@ -110,8 +98,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_MsgIonoTest.java b/java/test/auto_check_sbp_observation_MsgIonoTest.java index 5fc77f2edb..f7e859fb3a 100644 --- a/java/test/auto_check_sbp_observation_MsgIonoTest.java +++ b/java/test/auto_check_sbp_observation_MsgIonoTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgIono.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgIono.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgIono; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgIonoTest { @@ -27,82 +32,11 @@ public class auto_check_sbp_observation_MsgIonoTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgIonoTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 52, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 243, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 232, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 240, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 20, - (byte) 193, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x90, payload); - MsgIono msg = new MsgIono(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgIonoTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)52,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)243,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)232,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)240,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)20,(byte)193, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x90, payload ); + MsgIono msg = new MsgIono( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -116,9 +50,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.b3, -3.27680000000000000e+05, DELTA); value = msg.t_nmct.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.tow + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -126,8 +58,7 @@ public void test1() throws Throwable { } value = msg.t_nmct.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_observation_MsgObsDepBTest.java b/java/test/auto_check_sbp_observation_MsgObsDepBTest.java index 50aa06d689..94a8bda71e 100644 --- a/java/test/auto_check_sbp_observation_MsgObsDepBTest.java +++ b/java/test/auto_check_sbp_observation_MsgObsDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepB.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgObsDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgObsDepBTest { @@ -27,35 +32,17 @@ public class auto_check_sbp_observation_MsgObsDepBTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 120, (byte) 46, (byte) 39, (byte) 0, (byte) 251, (byte) 6, (byte) 32, - (byte) 180, (byte) 175, (byte) 187, (byte) 133, (byte) 223, (byte) 53, (byte) 7, - (byte) 7, (byte) 27, (byte) 157, (byte) 0, (byte) 0, (byte) 202, (byte) 0, - (byte) 0, (byte) 0, (byte) 58, (byte) 140, (byte) 85, (byte) 147, (byte) 88, - (byte) 28, (byte) 190, (byte) 7, (byte) 175, (byte) 144, (byte) 0, (byte) 0, - (byte) 203, (byte) 0, (byte) 0, (byte) 0, (byte) 220, (byte) 140, (byte) 248, - (byte) 138, (byte) 208, (byte) 172, (byte) 77, (byte) 7, (byte) 135, (byte) 151, - (byte) 0, (byte) 0, (byte) 208, (byte) 0, (byte) 0, (byte) 0, (byte) 173, - (byte) 194, (byte) 72, (byte) 135, (byte) 115, (byte) 18, (byte) 28, (byte) 7, - (byte) 242, (byte) 156, (byte) 0, (byte) 0, (byte) 212, (byte) 0, (byte) 0, - (byte) 0, (byte) 164, (byte) 144, (byte) 105, (byte) 124, (byte) 18, (byte) 196, - (byte) 137, (byte) 6, (byte) 120, (byte) 168, (byte) 0, (byte) 0, (byte) 217, - (byte) 0, (byte) 0, (byte) 0, (byte) 30, (byte) 232, (byte) 228, (byte) 139, - (byte) 210, (byte) 7, (byte) 90, (byte) 7, (byte) 87, (byte) 150, (byte) 0, - (byte) 0, (byte) 218, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x43, payload); - MsgObsDepB msg = new MsgObsDepB(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test1"); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)251,(byte)6,(byte)32,(byte)180,(byte)175,(byte)187,(byte)133,(byte)223,(byte)53,(byte)7,(byte)7,(byte)27,(byte)157,(byte)0,(byte)0,(byte)202,(byte)0,(byte)0,(byte)0,(byte)58,(byte)140,(byte)85,(byte)147,(byte)88,(byte)28,(byte)190,(byte)7,(byte)175,(byte)144,(byte)0,(byte)0,(byte)203,(byte)0,(byte)0,(byte)0,(byte)220,(byte)140,(byte)248,(byte)138,(byte)208,(byte)172,(byte)77,(byte)7,(byte)135,(byte)151,(byte)0,(byte)0,(byte)208,(byte)0,(byte)0,(byte)0,(byte)173,(byte)194,(byte)72,(byte)135,(byte)115,(byte)18,(byte)28,(byte)7,(byte)242,(byte)156,(byte)0,(byte)0,(byte)212,(byte)0,(byte)0,(byte)0,(byte)164,(byte)144,(byte)105,(byte)124,(byte)18,(byte)196,(byte)137,(byte)6,(byte)120,(byte)168,(byte)0,(byte)0,(byte)217,(byte)0,(byte)0,(byte)0,(byte)30,(byte)232,(byte)228,(byte)139,(byte)210,(byte)7,(byte)90,(byte)7,(byte)87,(byte)150,(byte)0,(byte)0,(byte)218,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x43, payload ); + MsgObsDepB msg = new MsgObsDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -63,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -73,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1787 + "'", - value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -83,9 +66,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -93,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 117913055 + "'", - value.equals(BigInteger.valueOf(117913055L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 117913055 + "'", value.equals(BigInteger.valueOf( 117913055L ) ) ); } else { value = value.longValue(); expected = 117913055L; @@ -103,9 +82,7 @@ public void test1() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2243669940L + "'", - value.equals(new BigInteger("2243669940"))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2243669940L + "'", value.equals( new BigInteger( "2243669940" ) ) ); } else { value = value.longValue(); expected = 2243669940L; @@ -113,9 +90,7 @@ public void test1() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -123,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -133,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -143,9 +114,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -153,9 +122,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -163,9 +130,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -173,9 +138,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 129899608 + "'", - value.equals(BigInteger.valueOf(129899608L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 129899608 + "'", value.equals(BigInteger.valueOf( 129899608L ) ) ); } else { value = value.longValue(); expected = 129899608L; @@ -183,9 +146,7 @@ public void test1() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2471857210L + "'", - value.equals(new BigInteger("2471857210"))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2471857210L + "'", value.equals( new BigInteger( "2471857210" ) ) ); } else { value = value.longValue(); expected = 2471857210L; @@ -193,9 +154,7 @@ public void test1() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -203,9 +162,7 @@ public void test1() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -213,9 +170,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -223,9 +178,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -233,9 +186,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -243,9 +194,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -253,9 +202,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 122531024 + "'", - value.equals(BigInteger.valueOf(122531024L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 122531024 + "'", value.equals(BigInteger.valueOf( 122531024L ) ) ); } else { value = value.longValue(); expected = 122531024L; @@ -263,9 +210,7 @@ public void test1() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2331544796L + "'", - value.equals(new BigInteger("2331544796"))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2331544796L + "'", value.equals( new BigInteger( "2331544796" ) ) ); } else { value = value.longValue(); expected = 2331544796L; @@ -273,9 +218,7 @@ public void test1() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -283,9 +226,7 @@ public void test1() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -293,9 +234,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -303,9 +242,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -313,9 +250,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -323,9 +258,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -333,9 +266,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 119280243 + "'", - value.equals(BigInteger.valueOf(119280243L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 119280243 + "'", value.equals(BigInteger.valueOf( 119280243L ) ) ); } else { value = value.longValue(); expected = 119280243L; @@ -343,9 +274,7 @@ public void test1() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2269692589L + "'", - value.equals(new BigInteger("2269692589"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2269692589L + "'", value.equals( new BigInteger( "2269692589" ) ) ); } else { value = value.longValue(); expected = 2269692589L; @@ -353,9 +282,7 @@ public void test1() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -363,9 +290,7 @@ public void test1() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -373,9 +298,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -383,9 +306,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -393,9 +314,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -403,9 +322,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -413,9 +330,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 109691922 + "'", - value.equals(BigInteger.valueOf(109691922L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 109691922 + "'", value.equals(BigInteger.valueOf( 109691922L ) ) ); } else { value = value.longValue(); expected = 109691922L; @@ -423,9 +338,7 @@ public void test1() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 2087293092 + "'", - value.equals(BigInteger.valueOf(2087293092L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 2087293092 + "'", value.equals(BigInteger.valueOf( 2087293092L ) ) ); } else { value = value.longValue(); expected = 2087293092L; @@ -433,9 +346,7 @@ public void test1() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -443,9 +354,7 @@ public void test1() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -453,9 +362,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -463,9 +370,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -473,9 +378,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -483,9 +386,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -493,9 +394,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 123340754 + "'", - value.equals(BigInteger.valueOf(123340754L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 123340754 + "'", value.equals(BigInteger.valueOf( 123340754L ) ) ); } else { value = value.longValue(); expected = 123340754L; @@ -503,9 +402,7 @@ public void test1() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 2347034654L + "'", - value.equals(new BigInteger("2347034654"))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 2347034654L + "'", value.equals( new BigInteger( "2347034654" ) ) ); } else { value = value.longValue(); expected = 2347034654L; @@ -513,9 +410,7 @@ public void test1() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -523,9 +418,7 @@ public void test1() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -533,9 +426,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -543,9 +434,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -553,9 +442,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -567,75 +454,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test2"); - byte[] payload = - new byte[] { - (byte) 120, - (byte) 46, - (byte) 39, - (byte) 0, - (byte) 251, - (byte) 6, - (byte) 33, - (byte) 68, - (byte) 199, - (byte) 101, - (byte) 136, - (byte) 133, - (byte) 247, - (byte) 42, - (byte) 7, - (byte) 219, - (byte) 154, - (byte) 0, - (byte) 0, - (byte) 220, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 219, - (byte) 14, - (byte) 123, - (byte) 133, - (byte) 96, - (byte) 215, - (byte) 3, - (byte) 7, - (byte) 235, - (byte) 156, - (byte) 0, - (byte) 0, - (byte) 222, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 87, - (byte) 166, - (byte) 81, - (byte) 122, - (byte) 5, - (byte) 173, - (byte) 109, - (byte) 6, - (byte) 174, - (byte) 170, - (byte) 0, - (byte) 0, - (byte) 225, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x43, payload); - MsgObsDepB msg = new MsgObsDepB(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test2"); + byte[] payload = new byte[] {(byte)120,(byte)46,(byte)39,(byte)0,(byte)251,(byte)6,(byte)33,(byte)68,(byte)199,(byte)101,(byte)136,(byte)133,(byte)247,(byte)42,(byte)7,(byte)219,(byte)154,(byte)0,(byte)0,(byte)220,(byte)0,(byte)0,(byte)0,(byte)219,(byte)14,(byte)123,(byte)133,(byte)96,(byte)215,(byte)3,(byte)7,(byte)235,(byte)156,(byte)0,(byte)0,(byte)222,(byte)0,(byte)0,(byte)0,(byte)87,(byte)166,(byte)81,(byte)122,(byte)5,(byte)173,(byte)109,(byte)6,(byte)174,(byte)170,(byte)0,(byte)0,(byte)225,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x43, payload ); + MsgObsDepB msg = new MsgObsDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -643,9 +472,7 @@ public void test2() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 2567800 + "'", - value.equals(BigInteger.valueOf(2567800L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 2567800 + "'", value.equals(BigInteger.valueOf( 2567800L ) ) ); } else { value = value.longValue(); expected = 2567800L; @@ -653,9 +480,7 @@ public void test2() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1787 + "'", - value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -663,9 +488,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -673,9 +496,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 120256389 + "'", - value.equals(BigInteger.valueOf(120256389L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 120256389 + "'", value.equals(BigInteger.valueOf( 120256389L ) ) ); } else { value = value.longValue(); expected = 120256389L; @@ -683,9 +504,7 @@ public void test2() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2288371524L + "'", - value.equals(new BigInteger("2288371524"))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2288371524L + "'", value.equals( new BigInteger( "2288371524" ) ) ); } else { value = value.longValue(); expected = 2288371524L; @@ -693,9 +512,7 @@ public void test2() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -703,9 +520,7 @@ public void test2() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -713,9 +528,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -723,9 +536,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -733,9 +544,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -743,9 +552,7 @@ public void test2() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -753,9 +560,7 @@ public void test2() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 117692256 + "'", - value.equals(BigInteger.valueOf(117692256L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 117692256 + "'", value.equals(BigInteger.valueOf( 117692256L ) ) ); } else { value = value.longValue(); expected = 117692256L; @@ -763,9 +568,7 @@ public void test2() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2239434459L + "'", - value.equals(new BigInteger("2239434459"))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2239434459L + "'", value.equals( new BigInteger( "2239434459" ) ) ); } else { value = value.longValue(); expected = 2239434459L; @@ -773,9 +576,7 @@ public void test2() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -783,9 +584,7 @@ public void test2() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -793,9 +592,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -803,9 +600,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -813,9 +608,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -823,9 +616,7 @@ public void test2() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -833,9 +624,7 @@ public void test2() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 107851013 + "'", - value.equals(BigInteger.valueOf(107851013L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 107851013 + "'", value.equals(BigInteger.valueOf( 107851013L ) ) ); } else { value = value.longValue(); expected = 107851013L; @@ -843,9 +632,7 @@ public void test2() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2052171351 + "'", - value.equals(BigInteger.valueOf(2052171351L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2052171351 + "'", value.equals(BigInteger.valueOf( 2052171351L ) ) ); } else { value = value.longValue(); expected = 2052171351L; @@ -853,9 +640,7 @@ public void test2() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -863,9 +648,7 @@ public void test2() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -873,9 +656,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -883,9 +664,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -893,9 +672,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -907,35 +684,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test3"); - byte[] payload = - new byte[] { - (byte) 64, (byte) 47, (byte) 39, (byte) 0, (byte) 251, (byte) 6, (byte) 32, - (byte) 100, (byte) 132, (byte) 187, (byte) 133, (byte) 236, (byte) 51, (byte) 7, - (byte) 7, (byte) 94, (byte) 156, (byte) 0, (byte) 0, (byte) 202, (byte) 0, - (byte) 0, (byte) 0, (byte) 97, (byte) 184, (byte) 85, (byte) 147, (byte) 178, - (byte) 30, (byte) 190, (byte) 7, (byte) 40, (byte) 140, (byte) 0, (byte) 0, - (byte) 203, (byte) 0, (byte) 0, (byte) 0, (byte) 135, (byte) 111, (byte) 248, - (byte) 138, (byte) 90, (byte) 171, (byte) 77, (byte) 7, (byte) 2, (byte) 150, - (byte) 0, (byte) 0, (byte) 208, (byte) 0, (byte) 0, (byte) 0, (byte) 180, - (byte) 238, (byte) 72, (byte) 135, (byte) 190, (byte) 20, (byte) 28, (byte) 7, - (byte) 241, (byte) 155, (byte) 0, (byte) 0, (byte) 212, (byte) 0, (byte) 0, - (byte) 0, (byte) 15, (byte) 153, (byte) 105, (byte) 124, (byte) 92, (byte) 196, - (byte) 137, (byte) 6, (byte) 153, (byte) 168, (byte) 0, (byte) 0, (byte) 217, - (byte) 0, (byte) 0, (byte) 0, (byte) 49, (byte) 185, (byte) 228, (byte) 139, - (byte) 144, (byte) 5, (byte) 90, (byte) 7, (byte) 41, (byte) 150, (byte) 0, - (byte) 0, (byte) 218, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x43, payload); - MsgObsDepB msg = new MsgObsDepB(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test3"); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)251,(byte)6,(byte)32,(byte)100,(byte)132,(byte)187,(byte)133,(byte)236,(byte)51,(byte)7,(byte)7,(byte)94,(byte)156,(byte)0,(byte)0,(byte)202,(byte)0,(byte)0,(byte)0,(byte)97,(byte)184,(byte)85,(byte)147,(byte)178,(byte)30,(byte)190,(byte)7,(byte)40,(byte)140,(byte)0,(byte)0,(byte)203,(byte)0,(byte)0,(byte)0,(byte)135,(byte)111,(byte)248,(byte)138,(byte)90,(byte)171,(byte)77,(byte)7,(byte)2,(byte)150,(byte)0,(byte)0,(byte)208,(byte)0,(byte)0,(byte)0,(byte)180,(byte)238,(byte)72,(byte)135,(byte)190,(byte)20,(byte)28,(byte)7,(byte)241,(byte)155,(byte)0,(byte)0,(byte)212,(byte)0,(byte)0,(byte)0,(byte)15,(byte)153,(byte)105,(byte)124,(byte)92,(byte)196,(byte)137,(byte)6,(byte)153,(byte)168,(byte)0,(byte)0,(byte)217,(byte)0,(byte)0,(byte)0,(byte)49,(byte)185,(byte)228,(byte)139,(byte)144,(byte)5,(byte)90,(byte)7,(byte)41,(byte)150,(byte)0,(byte)0,(byte)218,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x43, payload ); + MsgObsDepB msg = new MsgObsDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -943,9 +702,7 @@ public void test3() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -953,9 +710,7 @@ public void test3() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1787 + "'", - value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -963,9 +718,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -973,9 +726,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 117912556 + "'", - value.equals(BigInteger.valueOf(117912556L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 117912556 + "'", value.equals(BigInteger.valueOf( 117912556L ) ) ); } else { value = value.longValue(); expected = 117912556L; @@ -983,9 +734,7 @@ public void test3() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2243658852L + "'", - value.equals(new BigInteger("2243658852"))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2243658852L + "'", value.equals( new BigInteger( "2243658852" ) ) ); } else { value = value.longValue(); expected = 2243658852L; @@ -993,9 +742,7 @@ public void test3() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1003,9 +750,7 @@ public void test3() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1013,9 +758,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1023,9 +766,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1033,9 +774,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1043,9 +782,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1053,9 +790,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 129900210 + "'", - value.equals(BigInteger.valueOf(129900210L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 129900210 + "'", value.equals(BigInteger.valueOf( 129900210L ) ) ); } else { value = value.longValue(); expected = 129900210L; @@ -1063,9 +798,7 @@ public void test3() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2471868513L + "'", - value.equals(new BigInteger("2471868513"))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2471868513L + "'", value.equals( new BigInteger( "2471868513" ) ) ); } else { value = value.longValue(); expected = 2471868513L; @@ -1073,9 +806,7 @@ public void test3() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1083,9 +814,7 @@ public void test3() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1093,9 +822,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1103,9 +830,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1113,9 +838,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1123,9 +846,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1133,9 +854,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 122530650 + "'", - value.equals(BigInteger.valueOf(122530650L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 122530650 + "'", value.equals(BigInteger.valueOf( 122530650L ) ) ); } else { value = value.longValue(); expected = 122530650L; @@ -1143,9 +862,7 @@ public void test3() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2331537287L + "'", - value.equals(new BigInteger("2331537287"))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2331537287L + "'", value.equals( new BigInteger( "2331537287" ) ) ); } else { value = value.longValue(); expected = 2331537287L; @@ -1153,9 +870,7 @@ public void test3() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1163,9 +878,7 @@ public void test3() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1173,9 +886,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1183,9 +894,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1193,9 +902,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1203,9 +910,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1213,9 +918,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 119280830 + "'", - value.equals(BigInteger.valueOf(119280830L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 119280830 + "'", value.equals(BigInteger.valueOf( 119280830L ) ) ); } else { value = value.longValue(); expected = 119280830L; @@ -1223,9 +926,7 @@ public void test3() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2269703860L + "'", - value.equals(new BigInteger("2269703860"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2269703860L + "'", value.equals( new BigInteger( "2269703860" ) ) ); } else { value = value.longValue(); expected = 2269703860L; @@ -1233,9 +934,7 @@ public void test3() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1243,9 +942,7 @@ public void test3() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1253,9 +950,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1263,9 +958,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1273,9 +966,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1283,9 +974,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1293,9 +982,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 109691996 + "'", - value.equals(BigInteger.valueOf(109691996L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 109691996 + "'", value.equals(BigInteger.valueOf( 109691996L ) ) ); } else { value = value.longValue(); expected = 109691996L; @@ -1303,9 +990,7 @@ public void test3() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 2087295247 + "'", - value.equals(BigInteger.valueOf(2087295247L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 2087295247 + "'", value.equals(BigInteger.valueOf( 2087295247L ) ) ); } else { value = value.longValue(); expected = 2087295247L; @@ -1313,9 +998,7 @@ public void test3() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1323,9 +1006,7 @@ public void test3() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1333,9 +1014,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1343,9 +1022,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1353,9 +1030,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1363,9 +1038,7 @@ public void test3() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1373,9 +1046,7 @@ public void test3() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 123340176 + "'", - value.equals(BigInteger.valueOf(123340176L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 123340176 + "'", value.equals(BigInteger.valueOf( 123340176L ) ) ); } else { value = value.longValue(); expected = 123340176L; @@ -1383,9 +1054,7 @@ public void test3() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 2347022641L + "'", - value.equals(new BigInteger("2347022641"))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 2347022641L + "'", value.equals( new BigInteger( "2347022641" ) ) ); } else { value = value.longValue(); expected = 2347022641L; @@ -1393,9 +1062,7 @@ public void test3() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1403,9 +1070,7 @@ public void test3() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1413,9 +1078,7 @@ public void test3() throws Throwable { } value = msg.obs[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1423,9 +1086,7 @@ public void test3() throws Throwable { } value = msg.obs[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1433,9 +1094,7 @@ public void test3() throws Throwable { } value = msg.obs[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1447,75 +1106,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test4"); - byte[] payload = - new byte[] { - (byte) 64, - (byte) 47, - (byte) 39, - (byte) 0, - (byte) 251, - (byte) 6, - (byte) 33, - (byte) 234, - (byte) 148, - (byte) 101, - (byte) 136, - (byte) 15, - (byte) 245, - (byte) 42, - (byte) 7, - (byte) 20, - (byte) 154, - (byte) 0, - (byte) 0, - (byte) 220, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 208, - (byte) 247, - (byte) 122, - (byte) 133, - (byte) 16, - (byte) 214, - (byte) 3, - (byte) 7, - (byte) 38, - (byte) 156, - (byte) 0, - (byte) 0, - (byte) 222, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 150, - (byte) 81, - (byte) 122, - (byte) 22, - (byte) 172, - (byte) 109, - (byte) 6, - (byte) 7, - (byte) 172, - (byte) 0, - (byte) 0, - (byte) 225, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x43, payload); - MsgObsDepB msg = new MsgObsDepB(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test4"); + byte[] payload = new byte[] {(byte)64,(byte)47,(byte)39,(byte)0,(byte)251,(byte)6,(byte)33,(byte)234,(byte)148,(byte)101,(byte)136,(byte)15,(byte)245,(byte)42,(byte)7,(byte)20,(byte)154,(byte)0,(byte)0,(byte)220,(byte)0,(byte)0,(byte)0,(byte)208,(byte)247,(byte)122,(byte)133,(byte)16,(byte)214,(byte)3,(byte)7,(byte)38,(byte)156,(byte)0,(byte)0,(byte)222,(byte)0,(byte)0,(byte)0,(byte)15,(byte)150,(byte)81,(byte)122,(byte)22,(byte)172,(byte)109,(byte)6,(byte)7,(byte)172,(byte)0,(byte)0,(byte)225,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x43, payload ); + MsgObsDepB msg = new MsgObsDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1523,9 +1124,7 @@ public void test4() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 2568000 + "'", - value.equals(BigInteger.valueOf(2568000L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 2568000 + "'", value.equals(BigInteger.valueOf( 2568000L ) ) ); } else { value = value.longValue(); expected = 2568000L; @@ -1533,9 +1132,7 @@ public void test4() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1787 + "'", - value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -1543,9 +1140,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1553,9 +1148,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 120255759 + "'", - value.equals(BigInteger.valueOf(120255759L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 120255759 + "'", value.equals(BigInteger.valueOf( 120255759L ) ) ); } else { value = value.longValue(); expected = 120255759L; @@ -1563,9 +1156,7 @@ public void test4() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2288358634L + "'", - value.equals(new BigInteger("2288358634"))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2288358634L + "'", value.equals( new BigInteger( "2288358634" ) ) ); } else { value = value.longValue(); expected = 2288358634L; @@ -1573,9 +1164,7 @@ public void test4() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -1583,9 +1172,7 @@ public void test4() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1593,9 +1180,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1603,9 +1188,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1613,9 +1196,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1623,9 +1204,7 @@ public void test4() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1633,9 +1212,7 @@ public void test4() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 117691920 + "'", - value.equals(BigInteger.valueOf(117691920L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 117691920 + "'", value.equals(BigInteger.valueOf( 117691920L ) ) ); } else { value = value.longValue(); expected = 117691920L; @@ -1643,9 +1220,7 @@ public void test4() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2239428560L + "'", - value.equals(new BigInteger("2239428560"))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2239428560L + "'", value.equals( new BigInteger( "2239428560" ) ) ); } else { value = value.longValue(); expected = 2239428560L; @@ -1653,9 +1228,7 @@ public void test4() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1663,9 +1236,7 @@ public void test4() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1673,9 +1244,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1683,9 +1252,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1693,9 +1260,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1703,9 +1268,7 @@ public void test4() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1713,9 +1276,7 @@ public void test4() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 107850774 + "'", - value.equals(BigInteger.valueOf(107850774L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 107850774 + "'", value.equals(BigInteger.valueOf( 107850774L ) ) ); } else { value = value.longValue(); expected = 107850774L; @@ -1723,9 +1284,7 @@ public void test4() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2052167183 + "'", - value.equals(BigInteger.valueOf(2052167183L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2052167183 + "'", value.equals(BigInteger.valueOf( 2052167183L ) ) ); } else { value = value.longValue(); expected = 2052167183L; @@ -1733,9 +1292,7 @@ public void test4() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1743,9 +1300,7 @@ public void test4() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1753,9 +1308,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1763,9 +1316,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1773,9 +1324,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1787,123 +1336,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test5"); - byte[] payload = - new byte[] { - (byte) 8, - (byte) 48, - (byte) 39, - (byte) 0, - (byte) 251, - (byte) 6, - (byte) 32, - (byte) 254, - (byte) 96, - (byte) 187, - (byte) 133, - (byte) 249, - (byte) 49, - (byte) 7, - (byte) 7, - (byte) 165, - (byte) 156, - (byte) 0, - (byte) 0, - (byte) 202, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 113, - (byte) 229, - (byte) 85, - (byte) 147, - (byte) 11, - (byte) 33, - (byte) 190, - (byte) 7, - (byte) 106, - (byte) 143, - (byte) 0, - (byte) 0, - (byte) 203, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 182, - (byte) 85, - (byte) 248, - (byte) 138, - (byte) 227, - (byte) 169, - (byte) 77, - (byte) 7, - (byte) 159, - (byte) 150, - (byte) 0, - (byte) 0, - (byte) 208, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 17, - (byte) 24, - (byte) 73, - (byte) 135, - (byte) 10, - (byte) 23, - (byte) 28, - (byte) 7, - (byte) 7, - (byte) 156, - (byte) 0, - (byte) 0, - (byte) 212, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 155, - (byte) 105, - (byte) 124, - (byte) 166, - (byte) 196, - (byte) 137, - (byte) 6, - (byte) 186, - (byte) 170, - (byte) 0, - (byte) 0, - (byte) 217, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 214, - (byte) 142, - (byte) 228, - (byte) 139, - (byte) 77, - (byte) 3, - (byte) 90, - (byte) 7, - (byte) 236, - (byte) 151, - (byte) 0, - (byte) 0, - (byte) 218, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x43, payload); - MsgObsDepB msg = new MsgObsDepB(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepBTest.test5"); + byte[] payload = new byte[] {(byte)8,(byte)48,(byte)39,(byte)0,(byte)251,(byte)6,(byte)32,(byte)254,(byte)96,(byte)187,(byte)133,(byte)249,(byte)49,(byte)7,(byte)7,(byte)165,(byte)156,(byte)0,(byte)0,(byte)202,(byte)0,(byte)0,(byte)0,(byte)113,(byte)229,(byte)85,(byte)147,(byte)11,(byte)33,(byte)190,(byte)7,(byte)106,(byte)143,(byte)0,(byte)0,(byte)203,(byte)0,(byte)0,(byte)0,(byte)182,(byte)85,(byte)248,(byte)138,(byte)227,(byte)169,(byte)77,(byte)7,(byte)159,(byte)150,(byte)0,(byte)0,(byte)208,(byte)0,(byte)0,(byte)0,(byte)17,(byte)24,(byte)73,(byte)135,(byte)10,(byte)23,(byte)28,(byte)7,(byte)7,(byte)156,(byte)0,(byte)0,(byte)212,(byte)0,(byte)0,(byte)0,(byte)108,(byte)155,(byte)105,(byte)124,(byte)166,(byte)196,(byte)137,(byte)6,(byte)186,(byte)170,(byte)0,(byte)0,(byte)217,(byte)0,(byte)0,(byte)0,(byte)214,(byte)142,(byte)228,(byte)139,(byte)77,(byte)3,(byte)90,(byte)7,(byte)236,(byte)151,(byte)0,(byte)0,(byte)218,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x43, payload ); + MsgObsDepB msg = new MsgObsDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1911,9 +1354,7 @@ public void test5() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 2568200 + "'", - value.equals(BigInteger.valueOf(2568200L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 2568200 + "'", value.equals(BigInteger.valueOf( 2568200L ) ) ); } else { value = value.longValue(); expected = 2568200L; @@ -1921,9 +1362,7 @@ public void test5() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1787 + "'", - value.equals(BigInteger.valueOf(1787L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1787 + "'", value.equals(BigInteger.valueOf( 1787L ) ) ); } else { value = value.longValue(); expected = 1787L; @@ -1931,9 +1370,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1941,9 +1378,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 117912057 + "'", - value.equals(BigInteger.valueOf(117912057L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 117912057 + "'", value.equals(BigInteger.valueOf( 117912057L ) ) ); } else { value = value.longValue(); expected = 117912057L; @@ -1951,9 +1386,7 @@ public void test5() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2243649790L + "'", - value.equals(new BigInteger("2243649790"))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2243649790L + "'", value.equals( new BigInteger( "2243649790" ) ) ); } else { value = value.longValue(); expected = 2243649790L; @@ -1961,9 +1394,7 @@ public void test5() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1971,9 +1402,7 @@ public void test5() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1981,9 +1410,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1991,9 +1418,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2001,9 +1426,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2011,9 +1434,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2021,9 +1442,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 129900811 + "'", - value.equals(BigInteger.valueOf(129900811L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 129900811 + "'", value.equals(BigInteger.valueOf( 129900811L ) ) ); } else { value = value.longValue(); expected = 129900811L; @@ -2031,9 +1450,7 @@ public void test5() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2471880049L + "'", - value.equals(new BigInteger("2471880049"))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2471880049L + "'", value.equals( new BigInteger( "2471880049" ) ) ); } else { value = value.longValue(); expected = 2471880049L; @@ -2041,9 +1458,7 @@ public void test5() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -2051,9 +1466,7 @@ public void test5() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2061,9 +1474,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2071,9 +1482,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2081,9 +1490,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -2091,9 +1498,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -2101,9 +1506,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 122530275 + "'", - value.equals(BigInteger.valueOf(122530275L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 122530275 + "'", value.equals(BigInteger.valueOf( 122530275L ) ) ); } else { value = value.longValue(); expected = 122530275L; @@ -2111,9 +1514,7 @@ public void test5() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2331530678L + "'", - value.equals(new BigInteger("2331530678"))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2331530678L + "'", value.equals( new BigInteger( "2331530678" ) ) ); } else { value = value.longValue(); expected = 2331530678L; @@ -2121,9 +1522,7 @@ public void test5() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -2131,9 +1530,7 @@ public void test5() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2141,9 +1538,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2151,9 +1546,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2161,9 +1554,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -2171,9 +1562,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2181,9 +1570,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 119281418 + "'", - value.equals(BigInteger.valueOf(119281418L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 119281418 + "'", value.equals(BigInteger.valueOf( 119281418L ) ) ); } else { value = value.longValue(); expected = 119281418L; @@ -2191,9 +1578,7 @@ public void test5() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2269714449L + "'", - value.equals(new BigInteger("2269714449"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2269714449L + "'", value.equals( new BigInteger( "2269714449" ) ) ); } else { value = value.longValue(); expected = 2269714449L; @@ -2201,9 +1586,7 @@ public void test5() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -2211,9 +1594,7 @@ public void test5() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2221,9 +1602,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2231,9 +1610,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2241,9 +1618,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2251,9 +1626,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2261,9 +1634,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 109692070 + "'", - value.equals(BigInteger.valueOf(109692070L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 109692070 + "'", value.equals(BigInteger.valueOf( 109692070L ) ) ); } else { value = value.longValue(); expected = 109692070L; @@ -2271,9 +1642,7 @@ public void test5() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 2087295852 + "'", - value.equals(BigInteger.valueOf(2087295852L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 2087295852 + "'", value.equals(BigInteger.valueOf( 2087295852L ) ) ); } else { value = value.longValue(); expected = 2087295852L; @@ -2281,9 +1650,7 @@ public void test5() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -2291,9 +1658,7 @@ public void test5() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2301,9 +1666,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2311,9 +1674,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2321,9 +1682,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2331,9 +1690,7 @@ public void test5() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -2341,9 +1698,7 @@ public void test5() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 123339597 + "'", - value.equals(BigInteger.valueOf(123339597L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 123339597 + "'", value.equals(BigInteger.valueOf( 123339597L ) ) ); } else { value = value.longValue(); expected = 123339597L; @@ -2351,9 +1706,7 @@ public void test5() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 2347011798L + "'", - value.equals(new BigInteger("2347011798"))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 2347011798L + "'", value.equals( new BigInteger( "2347011798" ) ) ); } else { value = value.longValue(); expected = 2347011798L; @@ -2361,9 +1714,7 @@ public void test5() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2371,9 +1722,7 @@ public void test5() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2381,9 +1730,7 @@ public void test5() throws Throwable { } value = msg.obs[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2391,9 +1738,7 @@ public void test5() throws Throwable { } value = msg.obs[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2401,9 +1746,7 @@ public void test5() throws Throwable { } value = msg.obs[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; diff --git a/java/test/auto_check_sbp_observation_MsgObsDepCTest.java b/java/test/auto_check_sbp_observation_MsgObsDepCTest.java index c00b463a37..661f897773 100644 --- a/java/test/auto_check_sbp_observation_MsgObsDepCTest.java +++ b/java/test/auto_check_sbp_observation_MsgObsDepCTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepC.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObsDepC.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgObsDepC; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgObsDepCTest { @@ -27,107 +32,17 @@ public class auto_check_sbp_observation_MsgObsDepCTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test1"); - byte[] payload = - new byte[] { - (byte) 8, - (byte) 95, - (byte) 183, - (byte) 24, - (byte) 106, - (byte) 7, - (byte) 32, - (byte) 126, - (byte) 250, - (byte) 73, - (byte) 80, - (byte) 113, - (byte) 94, - (byte) 247, - (byte) 255, - (byte) 231, - (byte) 163, - (byte) 229, - (byte) 229, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 60, - (byte) 220, - (byte) 96, - (byte) 70, - (byte) 81, - (byte) 147, - (byte) 250, - (byte) 255, - (byte) 196, - (byte) 208, - (byte) 20, - (byte) 28, - (byte) 6, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 248, - (byte) 61, - (byte) 62, - (byte) 77, - (byte) 28, - (byte) 60, - (byte) 242, - (byte) 255, - (byte) 110, - (byte) 171, - (byte) 180, - (byte) 178, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 237, - (byte) 84, - (byte) 190, - (byte) 77, - (byte) 172, - (byte) 37, - (byte) 13, - (byte) 0, - (byte) 41, - (byte) 170, - (byte) 233, - (byte) 164, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 36, - (byte) 85, - (byte) 9, - (byte) 75, - (byte) 240, - (byte) 188, - (byte) 21, - (byte) 0, - (byte) 19, - (byte) 182, - (byte) 196, - (byte) 209, - (byte) 12, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x9846, 0x49, payload); - MsgObsDepC msg = new MsgObsDepC(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test1"); + byte[] payload = new byte[] {(byte)8,(byte)95,(byte)183,(byte)24,(byte)106,(byte)7,(byte)32,(byte)126,(byte)250,(byte)73,(byte)80,(byte)113,(byte)94,(byte)247,(byte)255,(byte)231,(byte)163,(byte)229,(byte)229,(byte)4,(byte)0,(byte)0,(byte)0,(byte)60,(byte)220,(byte)96,(byte)70,(byte)81,(byte)147,(byte)250,(byte)255,(byte)196,(byte)208,(byte)20,(byte)28,(byte)6,(byte)0,(byte)0,(byte)0,(byte)248,(byte)61,(byte)62,(byte)77,(byte)28,(byte)60,(byte)242,(byte)255,(byte)110,(byte)171,(byte)180,(byte)178,(byte)7,(byte)0,(byte)0,(byte)0,(byte)237,(byte)84,(byte)190,(byte)77,(byte)172,(byte)37,(byte)13,(byte)0,(byte)41,(byte)170,(byte)233,(byte)164,(byte)10,(byte)0,(byte)0,(byte)0,(byte)36,(byte)85,(byte)9,(byte)75,(byte)240,(byte)188,(byte)21,(byte)0,(byte)19,(byte)182,(byte)196,(byte)209,(byte)12,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x9846, 0x49, payload ); + MsgObsDepC msg = new MsgObsDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -135,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 414670600 + "'", - value.equals(BigInteger.valueOf(414670600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 414670600 + "'", value.equals(BigInteger.valueOf( 414670600L ) ) ); } else { value = value.longValue(); expected = 414670600L; @@ -145,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1898 + "'", - value.equals(BigInteger.valueOf(1898L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1898 + "'", value.equals(BigInteger.valueOf( 1898L ) ) ); } else { value = value.longValue(); expected = 1898L; @@ -155,9 +66,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -165,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -565647 + "'", - value.equals(BigInteger.valueOf(-565647L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -565647 + "'", value.equals(BigInteger.valueOf( -565647L ) ) ); } else { value = value.longValue(); expected = -565647L; @@ -175,9 +82,7 @@ public void test1() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1347025534 + "'", - value.equals(BigInteger.valueOf(1347025534L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1347025534 + "'", value.equals(BigInteger.valueOf( 1347025534L ) ) ); } else { value = value.longValue(); expected = 1347025534L; @@ -185,9 +90,7 @@ public void test1() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -195,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 58853 + "'", - value.equals(BigInteger.valueOf(58853L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 58853 + "'", value.equals(BigInteger.valueOf( 58853L ) ) ); } else { value = value.longValue(); expected = 58853L; @@ -205,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -215,9 +114,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -225,9 +122,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -235,9 +130,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -245,9 +138,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + -355503 + "'", - value.equals(BigInteger.valueOf(-355503L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + -355503 + "'", value.equals(BigInteger.valueOf( -355503L ) ) ); } else { value = value.longValue(); expected = -355503L; @@ -255,9 +146,7 @@ public void test1() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1180752956 + "'", - value.equals(BigInteger.valueOf(1180752956L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1180752956 + "'", value.equals(BigInteger.valueOf( 1180752956L ) ) ); } else { value = value.longValue(); expected = 1180752956L; @@ -265,9 +154,7 @@ public void test1() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -275,9 +162,7 @@ public void test1() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 7188 + "'", - value.equals(BigInteger.valueOf(7188L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 7188 + "'", value.equals(BigInteger.valueOf( 7188L ) ) ); } else { value = value.longValue(); expected = 7188L; @@ -285,9 +170,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -295,9 +178,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -305,9 +186,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -315,9 +194,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -325,9 +202,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -902116 + "'", - value.equals(BigInteger.valueOf(-902116L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -902116 + "'", value.equals(BigInteger.valueOf( -902116L ) ) ); } else { value = value.longValue(); expected = -902116L; @@ -335,9 +210,7 @@ public void test1() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1295924728 + "'", - value.equals(BigInteger.valueOf(1295924728L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1295924728 + "'", value.equals(BigInteger.valueOf( 1295924728L ) ) ); } else { value = value.longValue(); expected = 1295924728L; @@ -345,9 +218,7 @@ public void test1() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -355,9 +226,7 @@ public void test1() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 45748 + "'", - value.equals(BigInteger.valueOf(45748L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 45748 + "'", value.equals(BigInteger.valueOf( 45748L ) ) ); } else { value = value.longValue(); expected = 45748L; @@ -365,9 +234,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -375,9 +242,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -385,9 +250,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -395,9 +258,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -405,9 +266,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 861612 + "'", - value.equals(BigInteger.valueOf(861612L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 861612 + "'", value.equals(BigInteger.valueOf( 861612L ) ) ); } else { value = value.longValue(); expected = 861612L; @@ -415,9 +274,7 @@ public void test1() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 1304319213 + "'", - value.equals(BigInteger.valueOf(1304319213L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 1304319213 + "'", value.equals(BigInteger.valueOf( 1304319213L ) ) ); } else { value = value.longValue(); expected = 1304319213L; @@ -425,9 +282,7 @@ public void test1() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -435,9 +290,7 @@ public void test1() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 42217 + "'", - value.equals(BigInteger.valueOf(42217L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 42217 + "'", value.equals(BigInteger.valueOf( 42217L ) ) ); } else { value = value.longValue(); expected = 42217L; @@ -445,9 +298,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -455,9 +306,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -465,9 +314,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -475,9 +322,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -485,9 +330,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 1424624 + "'", - value.equals(BigInteger.valueOf(1424624L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 1424624 + "'", value.equals(BigInteger.valueOf( 1424624L ) ) ); } else { value = value.longValue(); expected = 1424624L; @@ -495,9 +338,7 @@ public void test1() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1258902820 + "'", - value.equals(BigInteger.valueOf(1258902820L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1258902820 + "'", value.equals(BigInteger.valueOf( 1258902820L ) ) ); } else { value = value.longValue(); expected = 1258902820L; @@ -505,9 +346,7 @@ public void test1() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -515,9 +354,7 @@ public void test1() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 53700 + "'", - value.equals(BigInteger.valueOf(53700L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 53700 + "'", value.equals(BigInteger.valueOf( 53700L ) ) ); } else { value = value.longValue(); expected = 53700L; @@ -525,9 +362,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -535,9 +370,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -545,9 +378,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -559,28 +390,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test2"); - byte[] payload = - new byte[] { - (byte) 8, (byte) 95, (byte) 183, (byte) 24, (byte) 106, (byte) 7, (byte) 33, - (byte) 68, (byte) 166, (byte) 75, (byte) 77, (byte) 186, (byte) 230, (byte) 24, - (byte) 0, (byte) 101, (byte) 186, (byte) 162, (byte) 102, (byte) 16, (byte) 0, - (byte) 0, (byte) 0, (byte) 87, (byte) 255, (byte) 155, (byte) 69, (byte) 74, - (byte) 158, (byte) 5, (byte) 0, (byte) 26, (byte) 190, (byte) 206, (byte) 30, - (byte) 27, (byte) 0, (byte) 0, (byte) 0, (byte) 64, (byte) 89, (byte) 124, - (byte) 68, (byte) 26, (byte) 22, (byte) 3, (byte) 0, (byte) 114, (byte) 217, - (byte) 225, (byte) 73, (byte) 29, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x9846, 0x49, payload); - MsgObsDepC msg = new MsgObsDepC(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test2"); + byte[] payload = new byte[] {(byte)8,(byte)95,(byte)183,(byte)24,(byte)106,(byte)7,(byte)33,(byte)68,(byte)166,(byte)75,(byte)77,(byte)186,(byte)230,(byte)24,(byte)0,(byte)101,(byte)186,(byte)162,(byte)102,(byte)16,(byte)0,(byte)0,(byte)0,(byte)87,(byte)255,(byte)155,(byte)69,(byte)74,(byte)158,(byte)5,(byte)0,(byte)26,(byte)190,(byte)206,(byte)30,(byte)27,(byte)0,(byte)0,(byte)0,(byte)64,(byte)89,(byte)124,(byte)68,(byte)26,(byte)22,(byte)3,(byte)0,(byte)114,(byte)217,(byte)225,(byte)73,(byte)29,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x9846, 0x49, payload ); + MsgObsDepC msg = new MsgObsDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -588,9 +408,7 @@ public void test2() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 414670600 + "'", - value.equals(BigInteger.valueOf(414670600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 414670600 + "'", value.equals(BigInteger.valueOf( 414670600L ) ) ); } else { value = value.longValue(); expected = 414670600L; @@ -598,9 +416,7 @@ public void test2() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1898 + "'", - value.equals(BigInteger.valueOf(1898L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1898 + "'", value.equals(BigInteger.valueOf( 1898L ) ) ); } else { value = value.longValue(); expected = 1898L; @@ -608,9 +424,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -618,9 +432,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 1631930 + "'", - value.equals(BigInteger.valueOf(1631930L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 1631930 + "'", value.equals(BigInteger.valueOf( 1631930L ) ) ); } else { value = value.longValue(); expected = 1631930L; @@ -628,9 +440,7 @@ public void test2() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1296803396 + "'", - value.equals(BigInteger.valueOf(1296803396L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1296803396 + "'", value.equals(BigInteger.valueOf( 1296803396L ) ) ); } else { value = value.longValue(); expected = 1296803396L; @@ -638,9 +448,7 @@ public void test2() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -648,9 +456,7 @@ public void test2() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 26274 + "'", - value.equals(BigInteger.valueOf(26274L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 26274 + "'", value.equals(BigInteger.valueOf( 26274L ) ) ); } else { value = value.longValue(); expected = 26274L; @@ -658,9 +464,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -668,9 +472,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -678,9 +480,7 @@ public void test2() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -688,9 +488,7 @@ public void test2() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -698,9 +496,7 @@ public void test2() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 368202 + "'", - value.equals(BigInteger.valueOf(368202L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 368202 + "'", value.equals(BigInteger.valueOf( 368202L ) ) ); } else { value = value.longValue(); expected = 368202L; @@ -708,9 +504,7 @@ public void test2() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1167851351 + "'", - value.equals(BigInteger.valueOf(1167851351L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1167851351 + "'", value.equals(BigInteger.valueOf( 1167851351L ) ) ); } else { value = value.longValue(); expected = 1167851351L; @@ -718,9 +512,7 @@ public void test2() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -728,9 +520,7 @@ public void test2() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 7886 + "'", - value.equals(BigInteger.valueOf(7886L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 7886 + "'", value.equals(BigInteger.valueOf( 7886L ) ) ); } else { value = value.longValue(); expected = 7886L; @@ -738,9 +528,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -748,9 +536,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -758,9 +544,7 @@ public void test2() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -768,9 +552,7 @@ public void test2() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -778,9 +560,7 @@ public void test2() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 202266 + "'", - value.equals(BigInteger.valueOf(202266L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 202266 + "'", value.equals(BigInteger.valueOf( 202266L ) ) ); } else { value = value.longValue(); expected = 202266L; @@ -788,9 +568,7 @@ public void test2() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1149000000 + "'", - value.equals(BigInteger.valueOf(1149000000L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1149000000 + "'", value.equals(BigInteger.valueOf( 1149000000L ) ) ); } else { value = value.longValue(); expected = 1149000000L; @@ -798,9 +576,7 @@ public void test2() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -808,9 +584,7 @@ public void test2() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 18913 + "'", - value.equals(BigInteger.valueOf(18913L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 18913 + "'", value.equals(BigInteger.valueOf( 18913L ) ) ); } else { value = value.longValue(); expected = 18913L; @@ -818,9 +592,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -828,9 +600,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -838,9 +608,7 @@ public void test2() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -852,107 +620,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test3"); - byte[] payload = - new byte[] { - (byte) 8, - (byte) 95, - (byte) 183, - (byte) 24, - (byte) 106, - (byte) 7, - (byte) 32, - (byte) 217, - (byte) 251, - (byte) 73, - (byte) 80, - (byte) 9, - (byte) 72, - (byte) 248, - (byte) 255, - (byte) 30, - (byte) 168, - (byte) 113, - (byte) 81, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 211, - (byte) 220, - (byte) 96, - (byte) 70, - (byte) 198, - (byte) 107, - (byte) 251, - (byte) 255, - (byte) 115, - (byte) 195, - (byte) 53, - (byte) 144, - (byte) 6, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 77, - (byte) 61, - (byte) 62, - (byte) 77, - (byte) 40, - (byte) 161, - (byte) 243, - (byte) 255, - (byte) 130, - (byte) 176, - (byte) 93, - (byte) 142, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 86, - (byte) 190, - (byte) 77, - (byte) 88, - (byte) 77, - (byte) 12, - (byte) 0, - (byte) 116, - (byte) 199, - (byte) 229, - (byte) 213, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 93, - (byte) 85, - (byte) 9, - (byte) 75, - (byte) 64, - (byte) 139, - (byte) 20, - (byte) 0, - (byte) 120, - (byte) 177, - (byte) 196, - (byte) 194, - (byte) 12, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0, 0x49, payload); - MsgObsDepC msg = new MsgObsDepC(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test3"); + byte[] payload = new byte[] {(byte)8,(byte)95,(byte)183,(byte)24,(byte)106,(byte)7,(byte)32,(byte)217,(byte)251,(byte)73,(byte)80,(byte)9,(byte)72,(byte)248,(byte)255,(byte)30,(byte)168,(byte)113,(byte)81,(byte)4,(byte)0,(byte)0,(byte)0,(byte)211,(byte)220,(byte)96,(byte)70,(byte)198,(byte)107,(byte)251,(byte)255,(byte)115,(byte)195,(byte)53,(byte)144,(byte)6,(byte)0,(byte)0,(byte)0,(byte)77,(byte)61,(byte)62,(byte)77,(byte)40,(byte)161,(byte)243,(byte)255,(byte)130,(byte)176,(byte)93,(byte)142,(byte)7,(byte)0,(byte)0,(byte)0,(byte)1,(byte)86,(byte)190,(byte)77,(byte)88,(byte)77,(byte)12,(byte)0,(byte)116,(byte)199,(byte)229,(byte)213,(byte)10,(byte)0,(byte)0,(byte)0,(byte)93,(byte)85,(byte)9,(byte)75,(byte)64,(byte)139,(byte)20,(byte)0,(byte)120,(byte)177,(byte)196,(byte)194,(byte)12,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0, 0x49, payload ); + MsgObsDepC msg = new MsgObsDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -960,9 +638,7 @@ public void test3() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 414670600 + "'", - value.equals(BigInteger.valueOf(414670600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 414670600 + "'", value.equals(BigInteger.valueOf( 414670600L ) ) ); } else { value = value.longValue(); expected = 414670600L; @@ -970,9 +646,7 @@ public void test3() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1898 + "'", - value.equals(BigInteger.valueOf(1898L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1898 + "'", value.equals(BigInteger.valueOf( 1898L ) ) ); } else { value = value.longValue(); expected = 1898L; @@ -980,9 +654,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -990,9 +662,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -505847 + "'", - value.equals(BigInteger.valueOf(-505847L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -505847 + "'", value.equals(BigInteger.valueOf( -505847L ) ) ); } else { value = value.longValue(); expected = -505847L; @@ -1000,9 +670,7 @@ public void test3() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1347025881 + "'", - value.equals(BigInteger.valueOf(1347025881L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1347025881 + "'", value.equals(BigInteger.valueOf( 1347025881L ) ) ); } else { value = value.longValue(); expected = 1347025881L; @@ -1010,9 +678,7 @@ public void test3() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1020,9 +686,7 @@ public void test3() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 20849 + "'", - value.equals(BigInteger.valueOf(20849L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 20849 + "'", value.equals(BigInteger.valueOf( 20849L ) ) ); } else { value = value.longValue(); expected = 20849L; @@ -1030,9 +694,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1040,9 +702,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1050,9 +710,7 @@ public void test3() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1060,9 +718,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1070,9 +726,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + -300090 + "'", - value.equals(BigInteger.valueOf(-300090L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + -300090 + "'", value.equals(BigInteger.valueOf( -300090L ) ) ); } else { value = value.longValue(); expected = -300090L; @@ -1080,9 +734,7 @@ public void test3() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1180753107 + "'", - value.equals(BigInteger.valueOf(1180753107L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1180753107 + "'", value.equals(BigInteger.valueOf( 1180753107L ) ) ); } else { value = value.longValue(); expected = 1180753107L; @@ -1090,9 +742,7 @@ public void test3() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1100,9 +750,7 @@ public void test3() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 36917 + "'", - value.equals(BigInteger.valueOf(36917L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 36917 + "'", value.equals(BigInteger.valueOf( 36917L ) ) ); } else { value = value.longValue(); expected = 36917L; @@ -1110,9 +758,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1120,9 +766,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1130,9 +774,7 @@ public void test3() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1140,9 +782,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1150,9 +790,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -810712 + "'", - value.equals(BigInteger.valueOf(-810712L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -810712 + "'", value.equals(BigInteger.valueOf( -810712L ) ) ); } else { value = value.longValue(); expected = -810712L; @@ -1160,9 +798,7 @@ public void test3() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1295924557 + "'", - value.equals(BigInteger.valueOf(1295924557L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1295924557 + "'", value.equals(BigInteger.valueOf( 1295924557L ) ) ); } else { value = value.longValue(); expected = 1295924557L; @@ -1170,9 +806,7 @@ public void test3() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1180,9 +814,7 @@ public void test3() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 36445 + "'", - value.equals(BigInteger.valueOf(36445L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 36445 + "'", value.equals(BigInteger.valueOf( 36445L ) ) ); } else { value = value.longValue(); expected = 36445L; @@ -1190,9 +822,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1200,9 +830,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1210,9 +838,7 @@ public void test3() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1220,9 +846,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1230,9 +854,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 806232 + "'", - value.equals(BigInteger.valueOf(806232L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 806232 + "'", value.equals(BigInteger.valueOf( 806232L ) ) ); } else { value = value.longValue(); expected = 806232L; @@ -1240,9 +862,7 @@ public void test3() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 1304319489 + "'", - value.equals(BigInteger.valueOf(1304319489L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 1304319489 + "'", value.equals(BigInteger.valueOf( 1304319489L ) ) ); } else { value = value.longValue(); expected = 1304319489L; @@ -1250,9 +870,7 @@ public void test3() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -1260,9 +878,7 @@ public void test3() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 54757 + "'", - value.equals(BigInteger.valueOf(54757L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 54757 + "'", value.equals(BigInteger.valueOf( 54757L ) ) ); } else { value = value.longValue(); expected = 54757L; @@ -1270,9 +886,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1280,9 +894,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1290,9 +902,7 @@ public void test3() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1300,9 +910,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1310,9 +918,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 1346368 + "'", - value.equals(BigInteger.valueOf(1346368L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 1346368 + "'", value.equals(BigInteger.valueOf( 1346368L ) ) ); } else { value = value.longValue(); expected = 1346368L; @@ -1320,9 +926,7 @@ public void test3() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1258902877 + "'", - value.equals(BigInteger.valueOf(1258902877L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1258902877 + "'", value.equals(BigInteger.valueOf( 1258902877L ) ) ); } else { value = value.longValue(); expected = 1258902877L; @@ -1330,9 +934,7 @@ public void test3() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1340,9 +942,7 @@ public void test3() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 49860 + "'", - value.equals(BigInteger.valueOf(49860L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 49860 + "'", value.equals(BigInteger.valueOf( 49860L ) ) ); } else { value = value.longValue(); expected = 49860L; @@ -1350,9 +950,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1360,9 +958,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1370,9 +966,7 @@ public void test3() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1384,28 +978,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test4"); - byte[] payload = - new byte[] { - (byte) 8, (byte) 95, (byte) 183, (byte) 24, (byte) 106, (byte) 7, (byte) 33, - (byte) 70, (byte) 167, (byte) 75, (byte) 77, (byte) 140, (byte) 136, (byte) 23, - (byte) 0, (byte) 90, (byte) 187, (byte) 158, (byte) 129, (byte) 16, (byte) 0, - (byte) 0, (byte) 0, (byte) 232, (byte) 255, (byte) 155, (byte) 69, (byte) 45, - (byte) 175, (byte) 5, (byte) 0, (byte) 17, (byte) 208, (byte) 175, (byte) 56, - (byte) 27, (byte) 0, (byte) 0, (byte) 0, (byte) 64, (byte) 89, (byte) 124, - (byte) 68, (byte) 45, (byte) 96, (byte) 3, (byte) 0, (byte) 75, (byte) 185, - (byte) 73, (byte) 206, (byte) 29, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0, 0x49, payload); - MsgObsDepC msg = new MsgObsDepC(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test4"); + byte[] payload = new byte[] {(byte)8,(byte)95,(byte)183,(byte)24,(byte)106,(byte)7,(byte)33,(byte)70,(byte)167,(byte)75,(byte)77,(byte)140,(byte)136,(byte)23,(byte)0,(byte)90,(byte)187,(byte)158,(byte)129,(byte)16,(byte)0,(byte)0,(byte)0,(byte)232,(byte)255,(byte)155,(byte)69,(byte)45,(byte)175,(byte)5,(byte)0,(byte)17,(byte)208,(byte)175,(byte)56,(byte)27,(byte)0,(byte)0,(byte)0,(byte)64,(byte)89,(byte)124,(byte)68,(byte)45,(byte)96,(byte)3,(byte)0,(byte)75,(byte)185,(byte)73,(byte)206,(byte)29,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0, 0x49, payload ); + MsgObsDepC msg = new MsgObsDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1413,9 +996,7 @@ public void test4() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 414670600 + "'", - value.equals(BigInteger.valueOf(414670600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 414670600 + "'", value.equals(BigInteger.valueOf( 414670600L ) ) ); } else { value = value.longValue(); expected = 414670600L; @@ -1423,9 +1004,7 @@ public void test4() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1898 + "'", - value.equals(BigInteger.valueOf(1898L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1898 + "'", value.equals(BigInteger.valueOf( 1898L ) ) ); } else { value = value.longValue(); expected = 1898L; @@ -1433,9 +1012,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1443,9 +1020,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 1542284 + "'", - value.equals(BigInteger.valueOf(1542284L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 1542284 + "'", value.equals(BigInteger.valueOf( 1542284L ) ) ); } else { value = value.longValue(); expected = 1542284L; @@ -1453,9 +1028,7 @@ public void test4() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1296803654 + "'", - value.equals(BigInteger.valueOf(1296803654L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1296803654 + "'", value.equals(BigInteger.valueOf( 1296803654L ) ) ); } else { value = value.longValue(); expected = 1296803654L; @@ -1463,9 +1036,7 @@ public void test4() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1473,9 +1044,7 @@ public void test4() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 33182 + "'", - value.equals(BigInteger.valueOf(33182L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 33182 + "'", value.equals(BigInteger.valueOf( 33182L ) ) ); } else { value = value.longValue(); expected = 33182L; @@ -1483,9 +1052,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1493,9 +1060,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1503,9 +1068,7 @@ public void test4() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1513,9 +1076,7 @@ public void test4() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1523,9 +1084,7 @@ public void test4() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 372525 + "'", - value.equals(BigInteger.valueOf(372525L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 372525 + "'", value.equals(BigInteger.valueOf( 372525L ) ) ); } else { value = value.longValue(); expected = 372525L; @@ -1533,9 +1092,7 @@ public void test4() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1167851496 + "'", - value.equals(BigInteger.valueOf(1167851496L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1167851496 + "'", value.equals(BigInteger.valueOf( 1167851496L ) ) ); } else { value = value.longValue(); expected = 1167851496L; @@ -1543,9 +1100,7 @@ public void test4() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1553,9 +1108,7 @@ public void test4() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 14511 + "'", - value.equals(BigInteger.valueOf(14511L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 14511 + "'", value.equals(BigInteger.valueOf( 14511L ) ) ); } else { value = value.longValue(); expected = 14511L; @@ -1563,9 +1116,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1573,9 +1124,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1583,9 +1132,7 @@ public void test4() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1593,9 +1140,7 @@ public void test4() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -1603,9 +1148,7 @@ public void test4() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 221229 + "'", - value.equals(BigInteger.valueOf(221229L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 221229 + "'", value.equals(BigInteger.valueOf( 221229L ) ) ); } else { value = value.longValue(); expected = 221229L; @@ -1613,9 +1156,7 @@ public void test4() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1149000000 + "'", - value.equals(BigInteger.valueOf(1149000000L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1149000000 + "'", value.equals(BigInteger.valueOf( 1149000000L ) ) ); } else { value = value.longValue(); expected = 1149000000L; @@ -1623,9 +1164,7 @@ public void test4() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1633,9 +1172,7 @@ public void test4() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 52809 + "'", - value.equals(BigInteger.valueOf(52809L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 52809 + "'", value.equals(BigInteger.valueOf( 52809L ) ) ); } else { value = value.longValue(); expected = 52809L; @@ -1643,9 +1180,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1653,9 +1188,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1663,9 +1196,7 @@ public void test4() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1677,107 +1208,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test5"); - byte[] payload = - new byte[] { - (byte) 208, - (byte) 95, - (byte) 183, - (byte) 24, - (byte) 106, - (byte) 7, - (byte) 32, - (byte) 44, - (byte) 8, - (byte) 74, - (byte) 80, - (byte) 86, - (byte) 93, - (byte) 247, - (byte) 255, - (byte) 57, - (byte) 158, - (byte) 229, - (byte) 229, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 229, - (byte) 96, - (byte) 70, - (byte) 156, - (byte) 146, - (byte) 250, - (byte) 255, - (byte) 221, - (byte) 200, - (byte) 20, - (byte) 28, - (byte) 6, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 60, - (byte) 82, - (byte) 62, - (byte) 77, - (byte) 93, - (byte) 58, - (byte) 242, - (byte) 255, - (byte) 39, - (byte) 164, - (byte) 180, - (byte) 178, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 222, - (byte) 73, - (byte) 190, - (byte) 77, - (byte) 46, - (byte) 39, - (byte) 13, - (byte) 0, - (byte) 202, - (byte) 181, - (byte) 233, - (byte) 164, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 149, - (byte) 64, - (byte) 9, - (byte) 75, - (byte) 114, - (byte) 191, - (byte) 21, - (byte) 0, - (byte) 249, - (byte) 182, - (byte) 196, - (byte) 209, - (byte) 12, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x9846, 0x49, payload); - MsgObsDepC msg = new MsgObsDepC(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsDepCTest.test5"); + byte[] payload = new byte[] {(byte)208,(byte)95,(byte)183,(byte)24,(byte)106,(byte)7,(byte)32,(byte)44,(byte)8,(byte)74,(byte)80,(byte)86,(byte)93,(byte)247,(byte)255,(byte)57,(byte)158,(byte)229,(byte)229,(byte)4,(byte)0,(byte)0,(byte)0,(byte)224,(byte)229,(byte)96,(byte)70,(byte)156,(byte)146,(byte)250,(byte)255,(byte)221,(byte)200,(byte)20,(byte)28,(byte)6,(byte)0,(byte)0,(byte)0,(byte)60,(byte)82,(byte)62,(byte)77,(byte)93,(byte)58,(byte)242,(byte)255,(byte)39,(byte)164,(byte)180,(byte)178,(byte)7,(byte)0,(byte)0,(byte)0,(byte)222,(byte)73,(byte)190,(byte)77,(byte)46,(byte)39,(byte)13,(byte)0,(byte)202,(byte)181,(byte)233,(byte)164,(byte)10,(byte)0,(byte)0,(byte)0,(byte)149,(byte)64,(byte)9,(byte)75,(byte)114,(byte)191,(byte)21,(byte)0,(byte)249,(byte)182,(byte)196,(byte)209,(byte)12,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x9846, 0x49, payload ); + MsgObsDepC msg = new MsgObsDepC( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1785,9 +1226,7 @@ public void test5() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 414670800 + "'", - value.equals(BigInteger.valueOf(414670800L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 414670800 + "'", value.equals(BigInteger.valueOf( 414670800L ) ) ); } else { value = value.longValue(); expected = 414670800L; @@ -1795,9 +1234,7 @@ public void test5() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1898 + "'", - value.equals(BigInteger.valueOf(1898L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1898 + "'", value.equals(BigInteger.valueOf( 1898L ) ) ); } else { value = value.longValue(); expected = 1898L; @@ -1805,9 +1242,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1815,9 +1250,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -565930 + "'", - value.equals(BigInteger.valueOf(-565930L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -565930 + "'", value.equals(BigInteger.valueOf( -565930L ) ) ); } else { value = value.longValue(); expected = -565930L; @@ -1825,9 +1258,7 @@ public void test5() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1347029036 + "'", - value.equals(BigInteger.valueOf(1347029036L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1347029036 + "'", value.equals(BigInteger.valueOf( 1347029036L ) ) ); } else { value = value.longValue(); expected = 1347029036L; @@ -1835,9 +1266,7 @@ public void test5() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1845,9 +1274,7 @@ public void test5() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 58853 + "'", - value.equals(BigInteger.valueOf(58853L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 58853 + "'", value.equals(BigInteger.valueOf( 58853L ) ) ); } else { value = value.longValue(); expected = 58853L; @@ -1855,9 +1282,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1865,9 +1290,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1875,9 +1298,7 @@ public void test5() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1885,9 +1306,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1895,9 +1314,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + -355684 + "'", - value.equals(BigInteger.valueOf(-355684L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + -355684 + "'", value.equals(BigInteger.valueOf( -355684L ) ) ); } else { value = value.longValue(); expected = -355684L; @@ -1905,9 +1322,7 @@ public void test5() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1180755424 + "'", - value.equals(BigInteger.valueOf(1180755424L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1180755424 + "'", value.equals(BigInteger.valueOf( 1180755424L ) ) ); } else { value = value.longValue(); expected = 1180755424L; @@ -1915,9 +1330,7 @@ public void test5() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1925,9 +1338,7 @@ public void test5() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 7188 + "'", - value.equals(BigInteger.valueOf(7188L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 7188 + "'", value.equals(BigInteger.valueOf( 7188L ) ) ); } else { value = value.longValue(); expected = 7188L; @@ -1935,9 +1346,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1945,9 +1354,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1955,9 +1362,7 @@ public void test5() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1965,9 +1370,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1975,9 +1378,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -902563 + "'", - value.equals(BigInteger.valueOf(-902563L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -902563 + "'", value.equals(BigInteger.valueOf( -902563L ) ) ); } else { value = value.longValue(); expected = -902563L; @@ -1985,9 +1386,7 @@ public void test5() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1295929916 + "'", - value.equals(BigInteger.valueOf(1295929916L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1295929916 + "'", value.equals(BigInteger.valueOf( 1295929916L ) ) ); } else { value = value.longValue(); expected = 1295929916L; @@ -1995,9 +1394,7 @@ public void test5() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -2005,9 +1402,7 @@ public void test5() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 45748 + "'", - value.equals(BigInteger.valueOf(45748L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 45748 + "'", value.equals(BigInteger.valueOf( 45748L ) ) ); } else { value = value.longValue(); expected = 45748L; @@ -2015,9 +1410,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2025,9 +1418,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2035,9 +1426,7 @@ public void test5() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2045,9 +1434,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2055,9 +1442,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 861998 + "'", - value.equals(BigInteger.valueOf(861998L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 861998 + "'", value.equals(BigInteger.valueOf( 861998L ) ) ); } else { value = value.longValue(); expected = 861998L; @@ -2065,9 +1450,7 @@ public void test5() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 1304316382 + "'", - value.equals(BigInteger.valueOf(1304316382L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 1304316382 + "'", value.equals(BigInteger.valueOf( 1304316382L ) ) ); } else { value = value.longValue(); expected = 1304316382L; @@ -2075,9 +1458,7 @@ public void test5() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -2085,9 +1466,7 @@ public void test5() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 42217 + "'", - value.equals(BigInteger.valueOf(42217L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 42217 + "'", value.equals(BigInteger.valueOf( 42217L ) ) ); } else { value = value.longValue(); expected = 42217L; @@ -2095,9 +1474,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2105,9 +1482,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2115,9 +1490,7 @@ public void test5() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2125,9 +1498,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -2135,9 +1506,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 1425266 + "'", - value.equals(BigInteger.valueOf(1425266L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 1425266 + "'", value.equals(BigInteger.valueOf( 1425266L ) ) ); } else { value = value.longValue(); expected = 1425266L; @@ -2145,9 +1514,7 @@ public void test5() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1258897557 + "'", - value.equals(BigInteger.valueOf(1258897557L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1258897557 + "'", value.equals(BigInteger.valueOf( 1258897557L ) ) ); } else { value = value.longValue(); expected = 1258897557L; @@ -2155,9 +1522,7 @@ public void test5() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -2165,9 +1530,7 @@ public void test5() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 53700 + "'", - value.equals(BigInteger.valueOf(53700L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 53700 + "'", value.equals(BigInteger.valueOf( 53700L ) ) ); } else { value = value.longValue(); expected = 53700L; @@ -2175,9 +1538,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2185,9 +1546,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2195,9 +1554,7 @@ public void test5() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; diff --git a/java/test/auto_check_sbp_observation_MsgObsTest.java b/java/test/auto_check_sbp_observation_MsgObsTest.java index 70d82a8176..6140bc210a 100644 --- a/java/test/auto_check_sbp_observation_MsgObsTest.java +++ b/java/test/auto_check_sbp_observation_MsgObsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObs.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgObs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgObs; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgObsTest { @@ -27,269 +32,17 @@ public class auto_check_sbp_observation_MsgObsTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsTest.test1"); - byte[] payload = - new byte[] { - (byte) 152, - (byte) 202, - (byte) 226, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 32, - (byte) 49, - (byte) 227, - (byte) 254, - (byte) 62, - (byte) 121, - (byte) 242, - (byte) 158, - (byte) 6, - (byte) 146, - (byte) 0, - (byte) 250, - (byte) 172, - (byte) 182, - (byte) 10, - (byte) 15, - (byte) 10, - (byte) 0, - (byte) 30, - (byte) 228, - (byte) 254, - (byte) 62, - (byte) 12, - (byte) 189, - (byte) 40, - (byte) 5, - (byte) 59, - (byte) 83, - (byte) 251, - (byte) 172, - (byte) 178, - (byte) 10, - (byte) 15, - (byte) 10, - (byte) 1, - (byte) 215, - (byte) 205, - (byte) 144, - (byte) 72, - (byte) 106, - (byte) 111, - (byte) 160, - (byte) 7, - (byte) 243, - (byte) 109, - (byte) 243, - (byte) 119, - (byte) 158, - (byte) 10, - (byte) 15, - (byte) 18, - (byte) 0, - (byte) 25, - (byte) 207, - (byte) 144, - (byte) 72, - (byte) 223, - (byte) 96, - (byte) 241, - (byte) 5, - (byte) 12, - (byte) 52, - (byte) 246, - (byte) 27, - (byte) 125, - (byte) 9, - (byte) 11, - (byte) 18, - (byte) 1, - (byte) 34, - (byte) 184, - (byte) 223, - (byte) 74, - (byte) 150, - (byte) 138, - (byte) 222, - (byte) 7, - (byte) 53, - (byte) 13, - (byte) 11, - (byte) 245, - (byte) 114, - (byte) 9, - (byte) 15, - (byte) 22, - (byte) 0, - (byte) 113, - (byte) 80, - (byte) 6, - (byte) 69, - (byte) 162, - (byte) 41, - (byte) 65, - (byte) 7, - (byte) 70, - (byte) 127, - (byte) 246, - (byte) 246, - (byte) 189, - (byte) 9, - (byte) 15, - (byte) 23, - (byte) 0, - (byte) 247, - (byte) 80, - (byte) 6, - (byte) 69, - (byte) 213, - (byte) 35, - (byte) 167, - (byte) 5, - (byte) 221, - (byte) 152, - (byte) 248, - (byte) 231, - (byte) 158, - (byte) 9, - (byte) 11, - (byte) 23, - (byte) 1, - (byte) 8, - (byte) 146, - (byte) 166, - (byte) 64, - (byte) 12, - (byte) 122, - (byte) 203, - (byte) 6, - (byte) 114, - (byte) 51, - (byte) 248, - (byte) 67, - (byte) 93, - (byte) 3, - (byte) 11, - (byte) 27, - (byte) 0, - (byte) 221, - (byte) 172, - (byte) 173, - (byte) 75, - (byte) 217, - (byte) 47, - (byte) 244, - (byte) 7, - (byte) 232, - (byte) 225, - (byte) 11, - (byte) 237, - (byte) 123, - (byte) 5, - (byte) 15, - (byte) 31, - (byte) 0, - (byte) 250, - (byte) 174, - (byte) 173, - (byte) 75, - (byte) 216, - (byte) 163, - (byte) 50, - (byte) 6, - (byte) 40, - (byte) 70, - (byte) 9, - (byte) 62, - (byte) 120, - (byte) 3, - (byte) 11, - (byte) 31, - (byte) 1, - (byte) 135, - (byte) 16, - (byte) 6, - (byte) 66, - (byte) 99, - (byte) 218, - (byte) 11, - (byte) 7, - (byte) 7, - (byte) 138, - (byte) 242, - (byte) 96, - (byte) 176, - (byte) 10, - (byte) 15, - (byte) 2, - (byte) 3, - (byte) 148, - (byte) 130, - (byte) 6, - (byte) 58, - (byte) 217, - (byte) 88, - (byte) 54, - (byte) 6, - (byte) 203, - (byte) 21, - (byte) 252, - (byte) 96, - (byte) 170, - (byte) 10, - (byte) 15, - (byte) 3, - (byte) 3, - (byte) 186, - (byte) 108, - (byte) 197, - (byte) 63, - (byte) 127, - (byte) 54, - (byte) 211, - (byte) 6, - (byte) 80, - (byte) 4, - (byte) 241, - (byte) 219, - (byte) 200, - (byte) 10, - (byte) 15, - (byte) 17, - (byte) 3, - (byte) 167, - (byte) 195, - (byte) 8, - (byte) 57, - (byte) 19, - (byte) 204, - (byte) 22, - (byte) 6, - (byte) 105, - (byte) 51, - (byte) 254, - (byte) 182, - (byte) 152, - (byte) 10, - (byte) 15, - (byte) 18, - (byte) 3, - }; - SBPMessage sbp = new SBPMessage(0xf081, 0x4a, payload); - MsgObs msg = new MsgObs(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsTest.test1"); + byte[] payload = new byte[] {(byte)152,(byte)202,(byte)226,(byte)25,(byte)0,(byte)0,(byte)0,(byte)0,(byte)106,(byte)8,(byte)32,(byte)49,(byte)227,(byte)254,(byte)62,(byte)121,(byte)242,(byte)158,(byte)6,(byte)146,(byte)0,(byte)250,(byte)172,(byte)182,(byte)10,(byte)15,(byte)10,(byte)0,(byte)30,(byte)228,(byte)254,(byte)62,(byte)12,(byte)189,(byte)40,(byte)5,(byte)59,(byte)83,(byte)251,(byte)172,(byte)178,(byte)10,(byte)15,(byte)10,(byte)1,(byte)215,(byte)205,(byte)144,(byte)72,(byte)106,(byte)111,(byte)160,(byte)7,(byte)243,(byte)109,(byte)243,(byte)119,(byte)158,(byte)10,(byte)15,(byte)18,(byte)0,(byte)25,(byte)207,(byte)144,(byte)72,(byte)223,(byte)96,(byte)241,(byte)5,(byte)12,(byte)52,(byte)246,(byte)27,(byte)125,(byte)9,(byte)11,(byte)18,(byte)1,(byte)34,(byte)184,(byte)223,(byte)74,(byte)150,(byte)138,(byte)222,(byte)7,(byte)53,(byte)13,(byte)11,(byte)245,(byte)114,(byte)9,(byte)15,(byte)22,(byte)0,(byte)113,(byte)80,(byte)6,(byte)69,(byte)162,(byte)41,(byte)65,(byte)7,(byte)70,(byte)127,(byte)246,(byte)246,(byte)189,(byte)9,(byte)15,(byte)23,(byte)0,(byte)247,(byte)80,(byte)6,(byte)69,(byte)213,(byte)35,(byte)167,(byte)5,(byte)221,(byte)152,(byte)248,(byte)231,(byte)158,(byte)9,(byte)11,(byte)23,(byte)1,(byte)8,(byte)146,(byte)166,(byte)64,(byte)12,(byte)122,(byte)203,(byte)6,(byte)114,(byte)51,(byte)248,(byte)67,(byte)93,(byte)3,(byte)11,(byte)27,(byte)0,(byte)221,(byte)172,(byte)173,(byte)75,(byte)217,(byte)47,(byte)244,(byte)7,(byte)232,(byte)225,(byte)11,(byte)237,(byte)123,(byte)5,(byte)15,(byte)31,(byte)0,(byte)250,(byte)174,(byte)173,(byte)75,(byte)216,(byte)163,(byte)50,(byte)6,(byte)40,(byte)70,(byte)9,(byte)62,(byte)120,(byte)3,(byte)11,(byte)31,(byte)1,(byte)135,(byte)16,(byte)6,(byte)66,(byte)99,(byte)218,(byte)11,(byte)7,(byte)7,(byte)138,(byte)242,(byte)96,(byte)176,(byte)10,(byte)15,(byte)2,(byte)3,(byte)148,(byte)130,(byte)6,(byte)58,(byte)217,(byte)88,(byte)54,(byte)6,(byte)203,(byte)21,(byte)252,(byte)96,(byte)170,(byte)10,(byte)15,(byte)3,(byte)3,(byte)186,(byte)108,(byte)197,(byte)63,(byte)127,(byte)54,(byte)211,(byte)6,(byte)80,(byte)4,(byte)241,(byte)219,(byte)200,(byte)10,(byte)15,(byte)17,(byte)3,(byte)167,(byte)195,(byte)8,(byte)57,(byte)19,(byte)204,(byte)22,(byte)6,(byte)105,(byte)51,(byte)254,(byte)182,(byte)152,(byte)10,(byte)15,(byte)18,(byte)3, }; + SBPMessage sbp = new SBPMessage( 0xf081, 0x4a, payload ); + MsgObs msg = new MsgObs( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -297,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.t.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.t.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -307,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 434293400 + "'", - value.equals(BigInteger.valueOf(434293400L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 434293400 + "'", value.equals(BigInteger.valueOf( 434293400L ) ) ); } else { value = value.longValue(); expected = 434293400L; @@ -317,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -327,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs[0].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].D.f + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].D.f + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -337,9 +82,7 @@ public void test1() throws Throwable { } value = msg.obs[0].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].D.i + "' != '" + -1536 + "'", - value.equals(BigInteger.valueOf(-1536L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].D.i + "' != '" + -1536 + "'", value.equals(BigInteger.valueOf( -1536L ) ) ); } else { value = value.longValue(); expected = -1536L; @@ -347,9 +90,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -357,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 111080057 + "'", - value.equals(BigInteger.valueOf(111080057L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 111080057 + "'", value.equals(BigInteger.valueOf( 111080057L ) ) ); } else { value = value.longValue(); expected = 111080057L; @@ -367,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1056891697 + "'", - value.equals(BigInteger.valueOf(1056891697L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1056891697 + "'", value.equals(BigInteger.valueOf( 1056891697L ) ) ); } else { value = value.longValue(); expected = 1056891697L; @@ -377,9 +114,7 @@ public void test1() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -387,9 +122,7 @@ public void test1() throws Throwable { } value = msg.obs[0].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -397,9 +130,7 @@ public void test1() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -407,9 +138,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -417,9 +146,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -427,9 +154,7 @@ public void test1() throws Throwable { } value = msg.obs[1].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].D.f + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].D.f + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -437,9 +162,7 @@ public void test1() throws Throwable { } value = msg.obs[1].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].D.i + "' != '" + -1197 + "'", - value.equals(BigInteger.valueOf(-1197L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].D.i + "' != '" + -1197 + "'", value.equals(BigInteger.valueOf( -1197L ) ) ); } else { value = value.longValue(); expected = -1197L; @@ -447,9 +170,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -457,9 +178,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 86555916 + "'", - value.equals(BigInteger.valueOf(86555916L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 86555916 + "'", value.equals(BigInteger.valueOf( 86555916L ) ) ); } else { value = value.longValue(); expected = 86555916L; @@ -467,9 +186,7 @@ public void test1() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1056891934 + "'", - value.equals(BigInteger.valueOf(1056891934L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1056891934 + "'", value.equals(BigInteger.valueOf( 1056891934L ) ) ); } else { value = value.longValue(); expected = 1056891934L; @@ -477,9 +194,7 @@ public void test1() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -487,9 +202,7 @@ public void test1() throws Throwable { } value = msg.obs[1].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -497,9 +210,7 @@ public void test1() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -507,9 +218,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -517,9 +226,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -527,9 +234,7 @@ public void test1() throws Throwable { } value = msg.obs[2].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].D.f + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].D.f + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -537,9 +242,7 @@ public void test1() throws Throwable { } value = msg.obs[2].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].D.i + "' != '" + -3219 + "'", - value.equals(BigInteger.valueOf(-3219L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].D.i + "' != '" + -3219 + "'", value.equals(BigInteger.valueOf( -3219L ) ) ); } else { value = value.longValue(); expected = -3219L; @@ -547,9 +250,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -557,9 +258,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 127954794 + "'", - value.equals(BigInteger.valueOf(127954794L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 127954794 + "'", value.equals(BigInteger.valueOf( 127954794L ) ) ); } else { value = value.longValue(); expected = 127954794L; @@ -567,9 +266,7 @@ public void test1() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1217449431 + "'", - value.equals(BigInteger.valueOf(1217449431L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1217449431 + "'", value.equals(BigInteger.valueOf( 1217449431L ) ) ); } else { value = value.longValue(); expected = 1217449431L; @@ -577,9 +274,7 @@ public void test1() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -587,9 +282,7 @@ public void test1() throws Throwable { } value = msg.obs[2].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -597,9 +290,7 @@ public void test1() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -607,9 +298,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -617,9 +306,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -627,9 +314,7 @@ public void test1() throws Throwable { } value = msg.obs[3].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].D.f + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].D.f + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -637,9 +322,7 @@ public void test1() throws Throwable { } value = msg.obs[3].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].D.i + "' != '" + -2508 + "'", - value.equals(BigInteger.valueOf(-2508L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].D.i + "' != '" + -2508 + "'", value.equals(BigInteger.valueOf( -2508L ) ) ); } else { value = value.longValue(); expected = -2508L; @@ -647,9 +330,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -657,9 +338,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 99705055 + "'", - value.equals(BigInteger.valueOf(99705055L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 99705055 + "'", value.equals(BigInteger.valueOf( 99705055L ) ) ); } else { value = value.longValue(); expected = 99705055L; @@ -667,9 +346,7 @@ public void test1() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 1217449753 + "'", - value.equals(BigInteger.valueOf(1217449753L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 1217449753 + "'", value.equals(BigInteger.valueOf( 1217449753L ) ) ); } else { value = value.longValue(); expected = 1217449753L; @@ -677,9 +354,7 @@ public void test1() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -687,9 +362,7 @@ public void test1() throws Throwable { } value = msg.obs[3].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -697,9 +370,7 @@ public void test1() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -707,9 +378,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -717,9 +386,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -727,9 +394,7 @@ public void test1() throws Throwable { } value = msg.obs[4].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].D.f + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].D.f + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -737,9 +402,7 @@ public void test1() throws Throwable { } value = msg.obs[4].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].D.i + "' != '" + 2829 + "'", - value.equals(BigInteger.valueOf(2829L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].D.i + "' != '" + 2829 + "'", value.equals(BigInteger.valueOf( 2829L ) ) ); } else { value = value.longValue(); expected = 2829L; @@ -747,9 +410,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -757,9 +418,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 132024982 + "'", - value.equals(BigInteger.valueOf(132024982L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 132024982 + "'", value.equals(BigInteger.valueOf( 132024982L ) ) ); } else { value = value.longValue(); expected = 132024982L; @@ -767,9 +426,7 @@ public void test1() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1256175650 + "'", - value.equals(BigInteger.valueOf(1256175650L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1256175650 + "'", value.equals(BigInteger.valueOf( 1256175650L ) ) ); } else { value = value.longValue(); expected = 1256175650L; @@ -777,9 +434,7 @@ public void test1() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -787,9 +442,7 @@ public void test1() throws Throwable { } value = msg.obs[4].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -797,9 +450,7 @@ public void test1() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -807,9 +458,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -817,9 +466,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -827,9 +474,7 @@ public void test1() throws Throwable { } value = msg.obs[5].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].D.f + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].D.f + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -837,9 +482,7 @@ public void test1() throws Throwable { } value = msg.obs[5].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].D.i + "' != '" + -2433 + "'", - value.equals(BigInteger.valueOf(-2433L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].D.i + "' != '" + -2433 + "'", value.equals(BigInteger.valueOf( -2433L ) ) ); } else { value = value.longValue(); expected = -2433L; @@ -847,9 +490,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -857,9 +498,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 121711010 + "'", - value.equals(BigInteger.valueOf(121711010L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 121711010 + "'", value.equals(BigInteger.valueOf( 121711010L ) ) ); } else { value = value.longValue(); expected = 121711010L; @@ -867,9 +506,7 @@ public void test1() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 1158041713 + "'", - value.equals(BigInteger.valueOf(1158041713L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 1158041713 + "'", value.equals(BigInteger.valueOf( 1158041713L ) ) ); } else { value = value.longValue(); expected = 1158041713L; @@ -877,9 +514,7 @@ public void test1() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -887,9 +522,7 @@ public void test1() throws Throwable { } value = msg.obs[5].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -897,9 +530,7 @@ public void test1() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -907,9 +538,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -917,9 +546,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -927,9 +554,7 @@ public void test1() throws Throwable { } value = msg.obs[6].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].D.f + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].D.f + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -937,9 +562,7 @@ public void test1() throws Throwable { } value = msg.obs[6].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].D.i + "' != '" + -1896 + "'", - value.equals(BigInteger.valueOf(-1896L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].D.i + "' != '" + -1896 + "'", value.equals(BigInteger.valueOf( -1896L ) ) ); } else { value = value.longValue(); expected = -1896L; @@ -947,9 +570,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.f + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.f + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -957,9 +578,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.i + "' != '" + 94839765 + "'", - value.equals(BigInteger.valueOf(94839765L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.i + "' != '" + 94839765 + "'", value.equals(BigInteger.valueOf( 94839765L ) ) ); } else { value = value.longValue(); expected = 94839765L; @@ -967,9 +586,7 @@ public void test1() throws Throwable { } value = msg.obs[6].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].P + "' != '" + 1158041847 + "'", - value.equals(BigInteger.valueOf(1158041847L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].P + "' != '" + 1158041847 + "'", value.equals(BigInteger.valueOf( 1158041847L ) ) ); } else { value = value.longValue(); expected = 1158041847L; @@ -977,9 +594,7 @@ public void test1() throws Throwable { } value = msg.obs[6].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].cn0 + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].cn0 + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -987,9 +602,7 @@ public void test1() throws Throwable { } value = msg.obs[6].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -997,9 +610,7 @@ public void test1() throws Throwable { } value = msg.obs[6].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].lock + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].lock + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1007,9 +618,7 @@ public void test1() throws Throwable { } value = msg.obs[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1017,9 +626,7 @@ public void test1() throws Throwable { } value = msg.obs[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1027,9 +634,7 @@ public void test1() throws Throwable { } value = msg.obs[7].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].D.f + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].D.f + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1037,9 +642,7 @@ public void test1() throws Throwable { } value = msg.obs[7].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].D.i + "' != '" + -1997 + "'", - value.equals(BigInteger.valueOf(-1997L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].D.i + "' != '" + -1997 + "'", value.equals(BigInteger.valueOf( -1997L ) ) ); } else { value = value.longValue(); expected = -1997L; @@ -1047,9 +650,7 @@ public void test1() throws Throwable { } value = msg.obs[7].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].L.f + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].L.f + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1057,9 +658,7 @@ public void test1() throws Throwable { } value = msg.obs[7].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].L.i + "' != '" + 113998348 + "'", - value.equals(BigInteger.valueOf(113998348L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].L.i + "' != '" + 113998348 + "'", value.equals(BigInteger.valueOf( 113998348L ) ) ); } else { value = value.longValue(); expected = 113998348L; @@ -1067,9 +666,7 @@ public void test1() throws Throwable { } value = msg.obs[7].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].P + "' != '" + 1084658184 + "'", - value.equals(BigInteger.valueOf(1084658184L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].P + "' != '" + 1084658184 + "'", value.equals(BigInteger.valueOf( 1084658184L ) ) ); } else { value = value.longValue(); expected = 1084658184L; @@ -1077,9 +674,7 @@ public void test1() throws Throwable { } value = msg.obs[7].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].cn0 + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].cn0 + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1087,9 +682,7 @@ public void test1() throws Throwable { } value = msg.obs[7].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1097,9 +690,7 @@ public void test1() throws Throwable { } value = msg.obs[7].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].lock + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].lock + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1107,9 +698,7 @@ public void test1() throws Throwable { } value = msg.obs[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1117,9 +706,7 @@ public void test1() throws Throwable { } value = msg.obs[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1127,9 +714,7 @@ public void test1() throws Throwable { } value = msg.obs[8].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].D.f + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].D.f + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1137,9 +722,7 @@ public void test1() throws Throwable { } value = msg.obs[8].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].D.i + "' != '" + 3041 + "'", - value.equals(BigInteger.valueOf(3041L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].D.i + "' != '" + 3041 + "'", value.equals(BigInteger.valueOf( 3041L ) ) ); } else { value = value.longValue(); expected = 3041L; @@ -1147,9 +730,7 @@ public void test1() throws Throwable { } value = msg.obs[8].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].L.f + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].L.f + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1157,9 +738,7 @@ public void test1() throws Throwable { } value = msg.obs[8].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].L.i + "' != '" + 133443545 + "'", - value.equals(BigInteger.valueOf(133443545L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].L.i + "' != '" + 133443545 + "'", value.equals(BigInteger.valueOf( 133443545L ) ) ); } else { value = value.longValue(); expected = 133443545L; @@ -1167,9 +746,7 @@ public void test1() throws Throwable { } value = msg.obs[8].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].P + "' != '" + 1269673181 + "'", - value.equals(BigInteger.valueOf(1269673181L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].P + "' != '" + 1269673181 + "'", value.equals(BigInteger.valueOf( 1269673181L ) ) ); } else { value = value.longValue(); expected = 1269673181L; @@ -1177,9 +754,7 @@ public void test1() throws Throwable { } value = msg.obs[8].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].cn0 + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].cn0 + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1187,9 +762,7 @@ public void test1() throws Throwable { } value = msg.obs[8].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1197,9 +770,7 @@ public void test1() throws Throwable { } value = msg.obs[8].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].lock + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].lock + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1207,9 +778,7 @@ public void test1() throws Throwable { } value = msg.obs[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1217,9 +786,7 @@ public void test1() throws Throwable { } value = msg.obs[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].sid.sat + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].sid.sat + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1227,9 +794,7 @@ public void test1() throws Throwable { } value = msg.obs[9].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].D.f + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].D.f + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1237,9 +802,7 @@ public void test1() throws Throwable { } value = msg.obs[9].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].D.i + "' != '" + 2374 + "'", - value.equals(BigInteger.valueOf(2374L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].D.i + "' != '" + 2374 + "'", value.equals(BigInteger.valueOf( 2374L ) ) ); } else { value = value.longValue(); expected = 2374L; @@ -1247,9 +810,7 @@ public void test1() throws Throwable { } value = msg.obs[9].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].L.f + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].L.f + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1257,9 +818,7 @@ public void test1() throws Throwable { } value = msg.obs[9].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].L.i + "' != '" + 103982040 + "'", - value.equals(BigInteger.valueOf(103982040L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].L.i + "' != '" + 103982040 + "'", value.equals(BigInteger.valueOf( 103982040L ) ) ); } else { value = value.longValue(); expected = 103982040L; @@ -1267,9 +826,7 @@ public void test1() throws Throwable { } value = msg.obs[9].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].P + "' != '" + 1269673722 + "'", - value.equals(BigInteger.valueOf(1269673722L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].P + "' != '" + 1269673722 + "'", value.equals(BigInteger.valueOf( 1269673722L ) ) ); } else { value = value.longValue(); expected = 1269673722L; @@ -1277,9 +834,7 @@ public void test1() throws Throwable { } value = msg.obs[9].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].cn0 + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].cn0 + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1287,9 +842,7 @@ public void test1() throws Throwable { } value = msg.obs[9].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1297,9 +850,7 @@ public void test1() throws Throwable { } value = msg.obs[9].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].lock + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].lock + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1307,9 +858,7 @@ public void test1() throws Throwable { } value = msg.obs[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].sid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].sid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1317,9 +866,7 @@ public void test1() throws Throwable { } value = msg.obs[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].sid.sat + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].sid.sat + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1327,9 +874,7 @@ public void test1() throws Throwable { } value = msg.obs[10].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].D.f + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].D.f + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1337,9 +882,7 @@ public void test1() throws Throwable { } value = msg.obs[10].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].D.i + "' != '" + -3446 + "'", - value.equals(BigInteger.valueOf(-3446L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].D.i + "' != '" + -3446 + "'", value.equals(BigInteger.valueOf( -3446L ) ) ); } else { value = value.longValue(); expected = -3446L; @@ -1347,9 +890,7 @@ public void test1() throws Throwable { } value = msg.obs[10].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].L.f + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].L.f + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1357,9 +898,7 @@ public void test1() throws Throwable { } value = msg.obs[10].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].L.i + "' != '" + 118217315 + "'", - value.equals(BigInteger.valueOf(118217315L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].L.i + "' != '" + 118217315 + "'", value.equals(BigInteger.valueOf( 118217315L ) ) ); } else { value = value.longValue(); expected = 118217315L; @@ -1367,9 +906,7 @@ public void test1() throws Throwable { } value = msg.obs[10].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].P + "' != '" + 1107693703 + "'", - value.equals(BigInteger.valueOf(1107693703L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].P + "' != '" + 1107693703 + "'", value.equals(BigInteger.valueOf( 1107693703L ) ) ); } else { value = value.longValue(); expected = 1107693703L; @@ -1377,9 +914,7 @@ public void test1() throws Throwable { } value = msg.obs[10].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].cn0 + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].cn0 + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1387,9 +922,7 @@ public void test1() throws Throwable { } value = msg.obs[10].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1397,9 +930,7 @@ public void test1() throws Throwable { } value = msg.obs[10].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1407,9 +938,7 @@ public void test1() throws Throwable { } value = msg.obs[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1417,9 +946,7 @@ public void test1() throws Throwable { } value = msg.obs[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].sid.sat + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].sid.sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1427,9 +954,7 @@ public void test1() throws Throwable { } value = msg.obs[11].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].D.f + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].D.f + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1437,9 +962,7 @@ public void test1() throws Throwable { } value = msg.obs[11].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].D.i + "' != '" + -1003 + "'", - value.equals(BigInteger.valueOf(-1003L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].D.i + "' != '" + -1003 + "'", value.equals(BigInteger.valueOf( -1003L ) ) ); } else { value = value.longValue(); expected = -1003L; @@ -1447,9 +970,7 @@ public void test1() throws Throwable { } value = msg.obs[11].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].L.f + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].L.f + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1457,9 +978,7 @@ public void test1() throws Throwable { } value = msg.obs[11].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].L.i + "' != '" + 104224985 + "'", - value.equals(BigInteger.valueOf(104224985L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].L.i + "' != '" + 104224985 + "'", value.equals(BigInteger.valueOf( 104224985L ) ) ); } else { value = value.longValue(); expected = 104224985L; @@ -1467,9 +986,7 @@ public void test1() throws Throwable { } value = msg.obs[11].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].P + "' != '" + 973505172 + "'", - value.equals(BigInteger.valueOf(973505172L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].P + "' != '" + 973505172 + "'", value.equals(BigInteger.valueOf( 973505172L ) ) ); } else { value = value.longValue(); expected = 973505172L; @@ -1477,9 +994,7 @@ public void test1() throws Throwable { } value = msg.obs[11].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].cn0 + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].cn0 + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1487,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.obs[11].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1497,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.obs[11].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1507,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.obs[11].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1517,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.obs[11].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].sid.sat + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].sid.sat + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1527,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.obs[12].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].D.f + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].D.f + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1537,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.obs[12].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].D.i + "' != '" + -3836 + "'", - value.equals(BigInteger.valueOf(-3836L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].D.i + "' != '" + -3836 + "'", value.equals(BigInteger.valueOf( -3836L ) ) ); } else { value = value.longValue(); expected = -3836L; @@ -1547,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.obs[12].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].L.f + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].L.f + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -1557,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.obs[12].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].L.i + "' != '" + 114505343 + "'", - value.equals(BigInteger.valueOf(114505343L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].L.i + "' != '" + 114505343 + "'", value.equals(BigInteger.valueOf( 114505343L ) ) ); } else { value = value.longValue(); expected = 114505343L; @@ -1567,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.obs[12].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].P + "' != '" + 1069903034 + "'", - value.equals(BigInteger.valueOf(1069903034L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].P + "' != '" + 1069903034 + "'", value.equals(BigInteger.valueOf( 1069903034L ) ) ); } else { value = value.longValue(); expected = 1069903034L; @@ -1577,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.obs[12].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].cn0 + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].cn0 + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1587,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.obs[12].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1597,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.obs[12].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1607,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.obs[12].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1617,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.obs[12].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[12].sid.sat + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.obs[12].sid.sat + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1627,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.obs[13].D.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].D.f + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].D.f + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1637,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.obs[13].D.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].D.i + "' != '" + -461 + "'", - value.equals(BigInteger.valueOf(-461L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].D.i + "' != '" + -461 + "'", value.equals(BigInteger.valueOf( -461L ) ) ); } else { value = value.longValue(); expected = -461L; @@ -1647,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.obs[13].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].L.f + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].L.f + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1657,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.obs[13].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].L.i + "' != '" + 102157331 + "'", - value.equals(BigInteger.valueOf(102157331L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].L.i + "' != '" + 102157331 + "'", value.equals(BigInteger.valueOf( 102157331L ) ) ); } else { value = value.longValue(); expected = 102157331L; @@ -1667,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.obs[13].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].P + "' != '" + 956875687 + "'", - value.equals(BigInteger.valueOf(956875687L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].P + "' != '" + 956875687 + "'", value.equals(BigInteger.valueOf( 956875687L ) ) ); } else { value = value.longValue(); expected = 956875687L; @@ -1677,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.obs[13].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].cn0 + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].cn0 + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1687,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.obs[13].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1697,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.obs[13].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].lock + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].lock + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1707,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.obs[13].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1717,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.obs[13].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[13].sid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.obs[13].sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1731,31 +1198,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsTest.test2"); - byte[] payload = - new byte[] { - (byte) 152, - (byte) 202, - (byte) 226, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 16, - }; - SBPMessage sbp = new SBPMessage(0xf081, 0x4a, payload); - MsgObs msg = new MsgObs(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgObsTest.test2"); + byte[] payload = new byte[] {(byte)152,(byte)202,(byte)226,(byte)25,(byte)0,(byte)0,(byte)0,(byte)0,(byte)106,(byte)8,(byte)16, }; + SBPMessage sbp = new SBPMessage( 0xf081, 0x4a, payload ); + MsgObs msg = new MsgObs( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1763,9 +1216,7 @@ public void test2() throws Throwable { } value = msg.header.t.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.t.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1773,9 +1224,7 @@ public void test2() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 434293400 + "'", - value.equals(BigInteger.valueOf(434293400L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 434293400 + "'", value.equals(BigInteger.valueOf( 434293400L ) ) ); } else { value = value.longValue(); expected = 434293400L; @@ -1783,9 +1232,7 @@ public void test2() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_MsgOsrTest.java b/java/test/auto_check_sbp_observation_MsgOsrTest.java index 9753e5e2af..264b42906e 100644 --- a/java/test/auto_check_sbp_observation_MsgOsrTest.java +++ b/java/test/auto_check_sbp_observation_MsgOsrTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgOsr.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgOsr.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgOsr; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgOsrTest { @@ -27,259 +32,17 @@ public class auto_check_sbp_observation_MsgOsrTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgOsrTest.test1"); - byte[] payload = - new byte[] { - (byte) 248, - (byte) 225, - (byte) 233, - (byte) 29, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 104, - (byte) 8, - (byte) 64, - (byte) 75, - (byte) 143, - (byte) 241, - (byte) 68, - (byte) 230, - (byte) 250, - (byte) 62, - (byte) 7, - (byte) 66, - (byte) 15, - (byte) 3, - (byte) 1, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 7, - (byte) 0, - (byte) 7, - (byte) 0, - (byte) 206, - (byte) 232, - (byte) 105, - (byte) 63, - (byte) 236, - (byte) 49, - (byte) 170, - (byte) 6, - (byte) 75, - (byte) 15, - (byte) 3, - (byte) 13, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 45, - (byte) 145, - (byte) 198, - (byte) 62, - (byte) 33, - (byte) 7, - (byte) 153, - (byte) 6, - (byte) 128, - (byte) 15, - (byte) 3, - (byte) 14, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 89, - (byte) 132, - (byte) 204, - (byte) 67, - (byte) 143, - (byte) 46, - (byte) 32, - (byte) 7, - (byte) 127, - (byte) 15, - (byte) 3, - (byte) 15, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 244, - (byte) 254, - (byte) 164, - (byte) 60, - (byte) 22, - (byte) 176, - (byte) 95, - (byte) 6, - (byte) 55, - (byte) 15, - (byte) 3, - (byte) 17, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 106, - (byte) 157, - (byte) 101, - (byte) 62, - (byte) 151, - (byte) 214, - (byte) 142, - (byte) 6, - (byte) 108, - (byte) 15, - (byte) 3, - (byte) 19, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 81, - (byte) 237, - (byte) 60, - (byte) 63, - (byte) 181, - (byte) 119, - (byte) 165, - (byte) 6, - (byte) 206, - (byte) 15, - (byte) 3, - (byte) 28, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 134, - (byte) 228, - (byte) 110, - (byte) 64, - (byte) 183, - (byte) 159, - (byte) 197, - (byte) 6, - (byte) 200, - (byte) 15, - (byte) 3, - (byte) 30, - (byte) 0, - (byte) 13, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 53, - (byte) 144, - (byte) 241, - (byte) 68, - (byte) 78, - (byte) 112, - (byte) 165, - (byte) 5, - (byte) 170, - (byte) 15, - (byte) 3, - (byte) 1, - (byte) 6, - (byte) 21, - (byte) 0, - (byte) 7, - (byte) 0, - (byte) 7, - (byte) 0, - (byte) 251, - (byte) 232, - (byte) 105, - (byte) 63, - (byte) 163, - (byte) 128, - (byte) 49, - (byte) 5, - (byte) 129, - (byte) 15, - (byte) 3, - (byte) 13, - (byte) 6, - (byte) 21, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 112, - (byte) 145, - (byte) 198, - (byte) 62, - (byte) 37, - (byte) 32, - (byte) 36, - (byte) 5, - (byte) 46, - (byte) 15, - (byte) 3, - (byte) 14, - (byte) 6, - (byte) 21, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 166, - (byte) 132, - (byte) 204, - (byte) 67, - (byte) 184, - (byte) 112, - (byte) 141, - (byte) 5, - (byte) 95, - (byte) 15, - (byte) 3, - (byte) 15, - (byte) 6, - (byte) 21, - (byte) 0, - (byte) 5, - (byte) 0, - (byte) 5, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0, 0x640, payload); - MsgOsr msg = new MsgOsr(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgOsrTest.test1"); + byte[] payload = new byte[] {(byte)248,(byte)225,(byte)233,(byte)29,(byte)0,(byte)0,(byte)0,(byte)0,(byte)104,(byte)8,(byte)64,(byte)75,(byte)143,(byte)241,(byte)68,(byte)230,(byte)250,(byte)62,(byte)7,(byte)66,(byte)15,(byte)3,(byte)1,(byte)0,(byte)13,(byte)0,(byte)7,(byte)0,(byte)7,(byte)0,(byte)206,(byte)232,(byte)105,(byte)63,(byte)236,(byte)49,(byte)170,(byte)6,(byte)75,(byte)15,(byte)3,(byte)13,(byte)0,(byte)13,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)45,(byte)145,(byte)198,(byte)62,(byte)33,(byte)7,(byte)153,(byte)6,(byte)128,(byte)15,(byte)3,(byte)14,(byte)0,(byte)13,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)89,(byte)132,(byte)204,(byte)67,(byte)143,(byte)46,(byte)32,(byte)7,(byte)127,(byte)15,(byte)3,(byte)15,(byte)0,(byte)13,(byte)0,(byte)5,(byte)0,(byte)5,(byte)0,(byte)244,(byte)254,(byte)164,(byte)60,(byte)22,(byte)176,(byte)95,(byte)6,(byte)55,(byte)15,(byte)3,(byte)17,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)2,(byte)0,(byte)106,(byte)157,(byte)101,(byte)62,(byte)151,(byte)214,(byte)142,(byte)6,(byte)108,(byte)15,(byte)3,(byte)19,(byte)0,(byte)13,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)81,(byte)237,(byte)60,(byte)63,(byte)181,(byte)119,(byte)165,(byte)6,(byte)206,(byte)15,(byte)3,(byte)28,(byte)0,(byte)13,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)134,(byte)228,(byte)110,(byte)64,(byte)183,(byte)159,(byte)197,(byte)6,(byte)200,(byte)15,(byte)3,(byte)30,(byte)0,(byte)13,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)53,(byte)144,(byte)241,(byte)68,(byte)78,(byte)112,(byte)165,(byte)5,(byte)170,(byte)15,(byte)3,(byte)1,(byte)6,(byte)21,(byte)0,(byte)7,(byte)0,(byte)7,(byte)0,(byte)251,(byte)232,(byte)105,(byte)63,(byte)163,(byte)128,(byte)49,(byte)5,(byte)129,(byte)15,(byte)3,(byte)13,(byte)6,(byte)21,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)112,(byte)145,(byte)198,(byte)62,(byte)37,(byte)32,(byte)36,(byte)5,(byte)46,(byte)15,(byte)3,(byte)14,(byte)6,(byte)21,(byte)0,(byte)3,(byte)0,(byte)3,(byte)0,(byte)166,(byte)132,(byte)204,(byte)67,(byte)184,(byte)112,(byte)141,(byte)5,(byte)95,(byte)15,(byte)3,(byte)15,(byte)6,(byte)21,(byte)0,(byte)5,(byte)0,(byte)5,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0, 0x640, payload ); + MsgOsr msg = new MsgOsr( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -287,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.t.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.ns_residual + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.t.ns_residual + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -297,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 501867000 + "'", - value.equals(BigInteger.valueOf(501867000L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 501867000 + "'", value.equals(BigInteger.valueOf( 501867000L ) ) ); } else { value = value.longValue(); expected = 501867000L; @@ -307,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 2152 + "'", - value.equals(BigInteger.valueOf(2152L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 2152 + "'", value.equals(BigInteger.valueOf( 2152L ) ) ); } else { value = value.longValue(); expected = 2152L; @@ -317,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -327,9 +82,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 121567974 + "'", - value.equals(BigInteger.valueOf(121567974L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 121567974 + "'", value.equals(BigInteger.valueOf( 121567974L ) ) ); } else { value = value.longValue(); expected = 121567974L; @@ -337,9 +90,7 @@ public void test1() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1156681547 + "'", - value.equals(BigInteger.valueOf(1156681547L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1156681547 + "'", value.equals(BigInteger.valueOf( 1156681547L ) ) ); } else { value = value.longValue(); expected = 1156681547L; @@ -347,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs[0].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -357,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs[0].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -367,9 +114,7 @@ public void test1() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -377,9 +122,7 @@ public void test1() throws Throwable { } value = msg.obs[0].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].range_std + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].range_std + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -387,9 +130,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -397,9 +138,7 @@ public void test1() throws Throwable { } value = msg.obs[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].sid.sat + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -407,9 +146,7 @@ public void test1() throws Throwable { } value = msg.obs[0].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].tropo_std + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].tropo_std + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -417,9 +154,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -427,9 +162,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 111817196 + "'", - value.equals(BigInteger.valueOf(111817196L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 111817196 + "'", value.equals(BigInteger.valueOf( 111817196L ) ) ); } else { value = value.longValue(); expected = 111817196L; @@ -437,9 +170,7 @@ public void test1() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 1063905486 + "'", - value.equals(BigInteger.valueOf(1063905486L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 1063905486 + "'", value.equals(BigInteger.valueOf( 1063905486L ) ) ); } else { value = value.longValue(); expected = 1063905486L; @@ -447,9 +178,7 @@ public void test1() throws Throwable { } value = msg.obs[1].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -457,9 +186,7 @@ public void test1() throws Throwable { } value = msg.obs[1].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -467,9 +194,7 @@ public void test1() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -477,9 +202,7 @@ public void test1() throws Throwable { } value = msg.obs[1].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -487,9 +210,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -497,9 +218,7 @@ public void test1() throws Throwable { } value = msg.obs[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].sid.sat + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].sid.sat + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -507,9 +226,7 @@ public void test1() throws Throwable { } value = msg.obs[1].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -517,9 +234,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -527,9 +242,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + 110692129 + "'", - value.equals(BigInteger.valueOf(110692129L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + 110692129 + "'", value.equals(BigInteger.valueOf( 110692129L ) ) ); } else { value = value.longValue(); expected = 110692129L; @@ -537,9 +250,7 @@ public void test1() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 1053200685 + "'", - value.equals(BigInteger.valueOf(1053200685L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 1053200685 + "'", value.equals(BigInteger.valueOf( 1053200685L ) ) ); } else { value = value.longValue(); expected = 1053200685L; @@ -547,9 +258,7 @@ public void test1() throws Throwable { } value = msg.obs[2].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -557,9 +266,7 @@ public void test1() throws Throwable { } value = msg.obs[2].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -567,9 +274,7 @@ public void test1() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -577,9 +282,7 @@ public void test1() throws Throwable { } value = msg.obs[2].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -587,9 +290,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -597,9 +298,7 @@ public void test1() throws Throwable { } value = msg.obs[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].sid.sat + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].sid.sat + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -607,9 +306,7 @@ public void test1() throws Throwable { } value = msg.obs[2].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -617,9 +314,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -627,9 +322,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 119549583 + "'", - value.equals(BigInteger.valueOf(119549583L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 119549583 + "'", value.equals(BigInteger.valueOf( 119549583L ) ) ); } else { value = value.longValue(); expected = 119549583L; @@ -637,9 +330,7 @@ public void test1() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 1137476697 + "'", - value.equals(BigInteger.valueOf(1137476697L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 1137476697 + "'", value.equals(BigInteger.valueOf( 1137476697L ) ) ); } else { value = value.longValue(); expected = 1137476697L; @@ -647,9 +338,7 @@ public void test1() throws Throwable { } value = msg.obs[3].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -657,9 +346,7 @@ public void test1() throws Throwable { } value = msg.obs[3].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -667,9 +354,7 @@ public void test1() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -677,9 +362,7 @@ public void test1() throws Throwable { } value = msg.obs[3].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].range_std + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].range_std + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -687,9 +370,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -697,9 +378,7 @@ public void test1() throws Throwable { } value = msg.obs[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].sid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -707,9 +386,7 @@ public void test1() throws Throwable { } value = msg.obs[3].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].tropo_std + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].tropo_std + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -717,9 +394,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -727,9 +402,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + 106934294 + "'", - value.equals(BigInteger.valueOf(106934294L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + 106934294 + "'", value.equals(BigInteger.valueOf( 106934294L ) ) ); } else { value = value.longValue(); expected = 106934294L; @@ -737,9 +410,7 @@ public void test1() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1017446132 + "'", - value.equals(BigInteger.valueOf(1017446132L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1017446132 + "'", value.equals(BigInteger.valueOf( 1017446132L ) ) ); } else { value = value.longValue(); expected = 1017446132L; @@ -747,9 +418,7 @@ public void test1() throws Throwable { } value = msg.obs[4].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -757,9 +426,7 @@ public void test1() throws Throwable { } value = msg.obs[4].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].iono_std + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].iono_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -767,9 +434,7 @@ public void test1() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -777,9 +442,7 @@ public void test1() throws Throwable { } value = msg.obs[4].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].range_std + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].range_std + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -787,9 +450,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -797,9 +458,7 @@ public void test1() throws Throwable { } value = msg.obs[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].sid.sat + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].sid.sat + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -807,9 +466,7 @@ public void test1() throws Throwable { } value = msg.obs[4].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].tropo_std + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].tropo_std + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -817,9 +474,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -827,9 +482,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 110024343 + "'", - value.equals(BigInteger.valueOf(110024343L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 110024343 + "'", value.equals(BigInteger.valueOf( 110024343L ) ) ); } else { value = value.longValue(); expected = 110024343L; @@ -837,9 +490,7 @@ public void test1() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 1046846826 + "'", - value.equals(BigInteger.valueOf(1046846826L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 1046846826 + "'", value.equals(BigInteger.valueOf( 1046846826L ) ) ); } else { value = value.longValue(); expected = 1046846826L; @@ -847,9 +498,7 @@ public void test1() throws Throwable { } value = msg.obs[5].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -857,9 +506,7 @@ public void test1() throws Throwable { } value = msg.obs[5].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -867,9 +514,7 @@ public void test1() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -877,9 +522,7 @@ public void test1() throws Throwable { } value = msg.obs[5].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -887,9 +530,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -897,9 +538,7 @@ public void test1() throws Throwable { } value = msg.obs[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].sid.sat + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].sid.sat + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -907,9 +546,7 @@ public void test1() throws Throwable { } value = msg.obs[5].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -917,9 +554,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.f + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.f + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -927,9 +562,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.i + "' != '" + 111507381 + "'", - value.equals(BigInteger.valueOf(111507381L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.i + "' != '" + 111507381 + "'", value.equals(BigInteger.valueOf( 111507381L ) ) ); } else { value = value.longValue(); expected = 111507381L; @@ -937,9 +570,7 @@ public void test1() throws Throwable { } value = msg.obs[6].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].P + "' != '" + 1060957521 + "'", - value.equals(BigInteger.valueOf(1060957521L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].P + "' != '" + 1060957521 + "'", value.equals(BigInteger.valueOf( 1060957521L ) ) ); } else { value = value.longValue(); expected = 1060957521L; @@ -947,9 +578,7 @@ public void test1() throws Throwable { } value = msg.obs[6].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -957,9 +586,7 @@ public void test1() throws Throwable { } value = msg.obs[6].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -967,9 +594,7 @@ public void test1() throws Throwable { } value = msg.obs[6].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -977,9 +602,7 @@ public void test1() throws Throwable { } value = msg.obs[6].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -987,9 +610,7 @@ public void test1() throws Throwable { } value = msg.obs[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -997,9 +618,7 @@ public void test1() throws Throwable { } value = msg.obs[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].sid.sat + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].sid.sat + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1007,9 +626,7 @@ public void test1() throws Throwable { } value = msg.obs[6].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1017,9 +634,7 @@ public void test1() throws Throwable { } value = msg.obs[7].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].L.f + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].L.f + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1027,9 +642,7 @@ public void test1() throws Throwable { } value = msg.obs[7].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].L.i + "' != '" + 113614775 + "'", - value.equals(BigInteger.valueOf(113614775L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].L.i + "' != '" + 113614775 + "'", value.equals(BigInteger.valueOf( 113614775L ) ) ); } else { value = value.longValue(); expected = 113614775L; @@ -1037,9 +650,7 @@ public void test1() throws Throwable { } value = msg.obs[7].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].P + "' != '" + 1081009286 + "'", - value.equals(BigInteger.valueOf(1081009286L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].P + "' != '" + 1081009286 + "'", value.equals(BigInteger.valueOf( 1081009286L ) ) ); } else { value = value.longValue(); expected = 1081009286L; @@ -1047,9 +658,7 @@ public void test1() throws Throwable { } value = msg.obs[7].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1057,9 +666,7 @@ public void test1() throws Throwable { } value = msg.obs[7].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].iono_std + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].iono_std + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1067,9 +674,7 @@ public void test1() throws Throwable { } value = msg.obs[7].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1077,9 +682,7 @@ public void test1() throws Throwable { } value = msg.obs[7].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1087,9 +690,7 @@ public void test1() throws Throwable { } value = msg.obs[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1097,9 +698,7 @@ public void test1() throws Throwable { } value = msg.obs[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].sid.sat + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].sid.sat + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1107,9 +706,7 @@ public void test1() throws Throwable { } value = msg.obs[7].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[7].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[7].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1117,9 +714,7 @@ public void test1() throws Throwable { } value = msg.obs[8].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].L.f + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].L.f + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1127,9 +722,7 @@ public void test1() throws Throwable { } value = msg.obs[8].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].L.i + "' != '" + 94728270 + "'", - value.equals(BigInteger.valueOf(94728270L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].L.i + "' != '" + 94728270 + "'", value.equals(BigInteger.valueOf( 94728270L ) ) ); } else { value = value.longValue(); expected = 94728270L; @@ -1137,9 +730,7 @@ public void test1() throws Throwable { } value = msg.obs[8].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].P + "' != '" + 1156681781 + "'", - value.equals(BigInteger.valueOf(1156681781L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].P + "' != '" + 1156681781 + "'", value.equals(BigInteger.valueOf( 1156681781L ) ) ); } else { value = value.longValue(); expected = 1156681781L; @@ -1147,9 +738,7 @@ public void test1() throws Throwable { } value = msg.obs[8].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1157,9 +746,7 @@ public void test1() throws Throwable { } value = msg.obs[8].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].iono_std + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].iono_std + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1167,9 +754,7 @@ public void test1() throws Throwable { } value = msg.obs[8].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1177,9 +762,7 @@ public void test1() throws Throwable { } value = msg.obs[8].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].range_std + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].range_std + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1187,9 +770,7 @@ public void test1() throws Throwable { } value = msg.obs[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1197,9 +778,7 @@ public void test1() throws Throwable { } value = msg.obs[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].sid.sat + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1207,9 +786,7 @@ public void test1() throws Throwable { } value = msg.obs[8].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[8].tropo_std + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.obs[8].tropo_std + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1217,9 +794,7 @@ public void test1() throws Throwable { } value = msg.obs[9].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].L.f + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].L.f + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1227,9 +802,7 @@ public void test1() throws Throwable { } value = msg.obs[9].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].L.i + "' != '" + 87130275 + "'", - value.equals(BigInteger.valueOf(87130275L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].L.i + "' != '" + 87130275 + "'", value.equals(BigInteger.valueOf( 87130275L ) ) ); } else { value = value.longValue(); expected = 87130275L; @@ -1237,9 +810,7 @@ public void test1() throws Throwable { } value = msg.obs[9].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].P + "' != '" + 1063905531 + "'", - value.equals(BigInteger.valueOf(1063905531L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].P + "' != '" + 1063905531 + "'", value.equals(BigInteger.valueOf( 1063905531L ) ) ); } else { value = value.longValue(); expected = 1063905531L; @@ -1247,9 +818,7 @@ public void test1() throws Throwable { } value = msg.obs[9].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1257,9 +826,7 @@ public void test1() throws Throwable { } value = msg.obs[9].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].iono_std + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].iono_std + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1267,9 +834,7 @@ public void test1() throws Throwable { } value = msg.obs[9].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1277,9 +842,7 @@ public void test1() throws Throwable { } value = msg.obs[9].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1287,9 +850,7 @@ public void test1() throws Throwable { } value = msg.obs[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1297,9 +858,7 @@ public void test1() throws Throwable { } value = msg.obs[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].sid.sat + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].sid.sat + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1307,9 +866,7 @@ public void test1() throws Throwable { } value = msg.obs[9].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[9].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[9].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1317,9 +874,7 @@ public void test1() throws Throwable { } value = msg.obs[10].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].L.f + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].L.f + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1327,9 +882,7 @@ public void test1() throws Throwable { } value = msg.obs[10].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].L.i + "' != '" + 86253605 + "'", - value.equals(BigInteger.valueOf(86253605L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].L.i + "' != '" + 86253605 + "'", value.equals(BigInteger.valueOf( 86253605L ) ) ); } else { value = value.longValue(); expected = 86253605L; @@ -1337,9 +890,7 @@ public void test1() throws Throwable { } value = msg.obs[10].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].P + "' != '" + 1053200752 + "'", - value.equals(BigInteger.valueOf(1053200752L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].P + "' != '" + 1053200752 + "'", value.equals(BigInteger.valueOf( 1053200752L ) ) ); } else { value = value.longValue(); expected = 1053200752L; @@ -1347,9 +898,7 @@ public void test1() throws Throwable { } value = msg.obs[10].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1357,9 +906,7 @@ public void test1() throws Throwable { } value = msg.obs[10].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].iono_std + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].iono_std + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1367,9 +914,7 @@ public void test1() throws Throwable { } value = msg.obs[10].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1377,9 +922,7 @@ public void test1() throws Throwable { } value = msg.obs[10].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].range_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].range_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1387,9 +930,7 @@ public void test1() throws Throwable { } value = msg.obs[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1397,9 +938,7 @@ public void test1() throws Throwable { } value = msg.obs[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].sid.sat + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].sid.sat + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1407,9 +946,7 @@ public void test1() throws Throwable { } value = msg.obs[10].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[10].tropo_std + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[10].tropo_std + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1417,9 +954,7 @@ public void test1() throws Throwable { } value = msg.obs[11].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].L.f + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].L.f + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -1427,9 +962,7 @@ public void test1() throws Throwable { } value = msg.obs[11].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].L.i + "' != '" + 93155512 + "'", - value.equals(BigInteger.valueOf(93155512L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].L.i + "' != '" + 93155512 + "'", value.equals(BigInteger.valueOf( 93155512L ) ) ); } else { value = value.longValue(); expected = 93155512L; @@ -1437,9 +970,7 @@ public void test1() throws Throwable { } value = msg.obs[11].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].P + "' != '" + 1137476774 + "'", - value.equals(BigInteger.valueOf(1137476774L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].P + "' != '" + 1137476774 + "'", value.equals(BigInteger.valueOf( 1137476774L ) ) ); } else { value = value.longValue(); expected = 1137476774L; @@ -1447,9 +978,7 @@ public void test1() throws Throwable { } value = msg.obs[11].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1457,9 +986,7 @@ public void test1() throws Throwable { } value = msg.obs[11].iono_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].iono_std + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].iono_std + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1467,9 +994,7 @@ public void test1() throws Throwable { } value = msg.obs[11].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].lock + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].lock + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1477,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.obs[11].range_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].range_std + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].range_std + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1487,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.obs[11].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].sid.code + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].sid.code + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1497,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.obs[11].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].sid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1507,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.obs[11].tropo_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[11].tropo_std + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.obs[11].tropo_std + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; diff --git a/java/test/auto_check_sbp_observation_MsgSvAzElTest.java b/java/test/auto_check_sbp_observation_MsgSvAzElTest.java index a36aa58019..cc50af5a78 100644 --- a/java/test/auto_check_sbp_observation_MsgSvAzElTest.java +++ b/java/test/auto_check_sbp_observation_MsgSvAzElTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgSvAzEl.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgSvAzEl.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgSvAzEl; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgSvAzElTest { @@ -27,39 +32,17 @@ public class auto_check_sbp_observation_MsgSvAzElTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_MsgSvAzElTest.test1"); - byte[] payload = - new byte[] { - (byte) 8, (byte) 0, (byte) 160, (byte) 12, (byte) 10, (byte) 0, (byte) 139, - (byte) 66, (byte) 13, (byte) 0, (byte) 16, (byte) 1, (byte) 15, (byte) 0, - (byte) 24, (byte) 25, (byte) 16, (byte) 0, (byte) 127, (byte) 18, (byte) 18, - (byte) 0, (byte) 42, (byte) 53, (byte) 20, (byte) 0, (byte) 31, (byte) 16, - (byte) 23, (byte) 0, (byte) 12, (byte) 67, (byte) 24, (byte) 0, (byte) 47, - (byte) 10, (byte) 26, (byte) 0, (byte) 116, (byte) 8, (byte) 27, (byte) 0, - (byte) 153, (byte) 43, (byte) 29, (byte) 0, (byte) 77, (byte) 10, (byte) 32, - (byte) 0, (byte) 94, (byte) 26, (byte) 1, (byte) 3, (byte) 16, (byte) 58, - (byte) 2, (byte) 3, (byte) 108, (byte) 53, (byte) 8, (byte) 3, (byte) 17, - (byte) 13, (byte) 17, (byte) 3, (byte) 165, (byte) 40, (byte) 23, (byte) 3, - (byte) 63, (byte) 35, (byte) 24, (byte) 3, (byte) 41, (byte) 73, (byte) 20, - (byte) 12, (byte) 114, (byte) 26, (byte) 27, (byte) 12, (byte) 72, (byte) 54, - (byte) 28, (byte) 12, (byte) 69, (byte) 3, (byte) 29, (byte) 12, (byte) 158, - (byte) 14, (byte) 30, (byte) 12, (byte) 152, (byte) 68, (byte) 32, (byte) 12, - (byte) 120, (byte) 82, (byte) 2, (byte) 14, (byte) 131, (byte) 6, (byte) 4, - (byte) 14, (byte) 27, (byte) 44, (byte) 5, (byte) 14, (byte) 101, (byte) 21, - (byte) 9, (byte) 14, (byte) 81, (byte) 65, (byte) 11, (byte) 14, (byte) 49, - (byte) 56, (byte) 12, (byte) 14, (byte) 59, (byte) 6, (byte) 30, (byte) 14, - (byte) 154, (byte) 4, (byte) 36, (byte) 14, (byte) 165, (byte) 62, - }; - SBPMessage sbp = new SBPMessage(0x79CF, 0x97, payload); - MsgSvAzEl msg = new MsgSvAzEl(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgSvAzElTest.test1"); + byte[] payload = new byte[] {(byte)8,(byte)0,(byte)160,(byte)12,(byte)10,(byte)0,(byte)139,(byte)66,(byte)13,(byte)0,(byte)16,(byte)1,(byte)15,(byte)0,(byte)24,(byte)25,(byte)16,(byte)0,(byte)127,(byte)18,(byte)18,(byte)0,(byte)42,(byte)53,(byte)20,(byte)0,(byte)31,(byte)16,(byte)23,(byte)0,(byte)12,(byte)67,(byte)24,(byte)0,(byte)47,(byte)10,(byte)26,(byte)0,(byte)116,(byte)8,(byte)27,(byte)0,(byte)153,(byte)43,(byte)29,(byte)0,(byte)77,(byte)10,(byte)32,(byte)0,(byte)94,(byte)26,(byte)1,(byte)3,(byte)16,(byte)58,(byte)2,(byte)3,(byte)108,(byte)53,(byte)8,(byte)3,(byte)17,(byte)13,(byte)17,(byte)3,(byte)165,(byte)40,(byte)23,(byte)3,(byte)63,(byte)35,(byte)24,(byte)3,(byte)41,(byte)73,(byte)20,(byte)12,(byte)114,(byte)26,(byte)27,(byte)12,(byte)72,(byte)54,(byte)28,(byte)12,(byte)69,(byte)3,(byte)29,(byte)12,(byte)158,(byte)14,(byte)30,(byte)12,(byte)152,(byte)68,(byte)32,(byte)12,(byte)120,(byte)82,(byte)2,(byte)14,(byte)131,(byte)6,(byte)4,(byte)14,(byte)27,(byte)44,(byte)5,(byte)14,(byte)101,(byte)21,(byte)9,(byte)14,(byte)81,(byte)65,(byte)11,(byte)14,(byte)49,(byte)56,(byte)12,(byte)14,(byte)59,(byte)6,(byte)30,(byte)14,(byte)154,(byte)4,(byte)36,(byte)14,(byte)165,(byte)62, }; + SBPMessage sbp = new SBPMessage( 0x79CF, 0x97, payload ); + MsgSvAzEl msg = new MsgSvAzEl( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.azel[0].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[0].az + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.azel[0].az + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -67,9 +50,7 @@ public void test1() throws Throwable { } value = msg.azel[0].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[0].el + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[0].el + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -77,9 +58,7 @@ public void test1() throws Throwable { } value = msg.azel[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -87,9 +66,7 @@ public void test1() throws Throwable { } value = msg.azel[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[0].sid.sat + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.azel[0].sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -97,9 +74,7 @@ public void test1() throws Throwable { } value = msg.azel[1].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[1].az + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.azel[1].az + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -107,9 +82,7 @@ public void test1() throws Throwable { } value = msg.azel[1].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[1].el + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.azel[1].el + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -117,9 +90,7 @@ public void test1() throws Throwable { } value = msg.azel[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -127,9 +98,7 @@ public void test1() throws Throwable { } value = msg.azel[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[1].sid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.azel[1].sid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -137,9 +106,7 @@ public void test1() throws Throwable { } value = msg.azel[2].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[2].az + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.azel[2].az + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -147,9 +114,7 @@ public void test1() throws Throwable { } value = msg.azel[2].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[2].el + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.azel[2].el + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -157,9 +122,7 @@ public void test1() throws Throwable { } value = msg.azel[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -167,9 +130,7 @@ public void test1() throws Throwable { } value = msg.azel[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[2].sid.sat + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.azel[2].sid.sat + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -177,9 +138,7 @@ public void test1() throws Throwable { } value = msg.azel[3].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[3].az + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.azel[3].az + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -187,9 +146,7 @@ public void test1() throws Throwable { } value = msg.azel[3].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[3].el + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.azel[3].el + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -197,9 +154,7 @@ public void test1() throws Throwable { } value = msg.azel[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -207,9 +162,7 @@ public void test1() throws Throwable { } value = msg.azel[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[3].sid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.azel[3].sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -217,9 +170,7 @@ public void test1() throws Throwable { } value = msg.azel[4].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[4].az + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.azel[4].az + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -227,9 +178,7 @@ public void test1() throws Throwable { } value = msg.azel[4].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[4].el + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.azel[4].el + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -237,9 +186,7 @@ public void test1() throws Throwable { } value = msg.azel[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -247,9 +194,7 @@ public void test1() throws Throwable { } value = msg.azel[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[4].sid.sat + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.azel[4].sid.sat + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -257,9 +202,7 @@ public void test1() throws Throwable { } value = msg.azel[5].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[5].az + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.azel[5].az + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -267,9 +210,7 @@ public void test1() throws Throwable { } value = msg.azel[5].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[5].el + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.azel[5].el + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -277,9 +218,7 @@ public void test1() throws Throwable { } value = msg.azel[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -287,9 +226,7 @@ public void test1() throws Throwable { } value = msg.azel[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[5].sid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.azel[5].sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -297,9 +234,7 @@ public void test1() throws Throwable { } value = msg.azel[6].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[6].az + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.azel[6].az + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -307,9 +242,7 @@ public void test1() throws Throwable { } value = msg.azel[6].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[6].el + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.azel[6].el + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -317,9 +250,7 @@ public void test1() throws Throwable { } value = msg.azel[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -327,9 +258,7 @@ public void test1() throws Throwable { } value = msg.azel[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[6].sid.sat + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.azel[6].sid.sat + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -337,9 +266,7 @@ public void test1() throws Throwable { } value = msg.azel[7].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[7].az + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[7].az + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -347,9 +274,7 @@ public void test1() throws Throwable { } value = msg.azel[7].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[7].el + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.azel[7].el + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -357,9 +282,7 @@ public void test1() throws Throwable { } value = msg.azel[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -367,9 +290,7 @@ public void test1() throws Throwable { } value = msg.azel[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[7].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.azel[7].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -377,9 +298,7 @@ public void test1() throws Throwable { } value = msg.azel[8].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[8].az + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.azel[8].az + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -387,9 +306,7 @@ public void test1() throws Throwable { } value = msg.azel[8].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[8].el + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.azel[8].el + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -397,9 +314,7 @@ public void test1() throws Throwable { } value = msg.azel[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -407,9 +322,7 @@ public void test1() throws Throwable { } value = msg.azel[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[8].sid.sat + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.azel[8].sid.sat + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -417,9 +330,7 @@ public void test1() throws Throwable { } value = msg.azel[9].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[9].az + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.azel[9].az + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -427,9 +338,7 @@ public void test1() throws Throwable { } value = msg.azel[9].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[9].el + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.azel[9].el + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -437,9 +346,7 @@ public void test1() throws Throwable { } value = msg.azel[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -447,9 +354,7 @@ public void test1() throws Throwable { } value = msg.azel[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[9].sid.sat + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.azel[9].sid.sat + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -457,9 +362,7 @@ public void test1() throws Throwable { } value = msg.azel[10].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[10].az + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.azel[10].az + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -467,9 +370,7 @@ public void test1() throws Throwable { } value = msg.azel[10].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[10].el + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.azel[10].el + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -477,9 +378,7 @@ public void test1() throws Throwable { } value = msg.azel[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -487,9 +386,7 @@ public void test1() throws Throwable { } value = msg.azel[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[10].sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.azel[10].sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -497,9 +394,7 @@ public void test1() throws Throwable { } value = msg.azel[11].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[11].az + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.azel[11].az + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -507,9 +402,7 @@ public void test1() throws Throwable { } value = msg.azel[11].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[11].el + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.azel[11].el + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -517,9 +410,7 @@ public void test1() throws Throwable { } value = msg.azel[11].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[11].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[11].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -527,9 +418,7 @@ public void test1() throws Throwable { } value = msg.azel[11].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[11].sid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.azel[11].sid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -537,9 +426,7 @@ public void test1() throws Throwable { } value = msg.azel[12].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[12].az + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.azel[12].az + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -547,9 +434,7 @@ public void test1() throws Throwable { } value = msg.azel[12].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[12].el + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.azel[12].el + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -557,9 +442,7 @@ public void test1() throws Throwable { } value = msg.azel[12].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[12].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.azel[12].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -567,9 +450,7 @@ public void test1() throws Throwable { } value = msg.azel[12].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[12].sid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.azel[12].sid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -577,9 +458,7 @@ public void test1() throws Throwable { } value = msg.azel[13].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[13].az + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.azel[13].az + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -587,9 +466,7 @@ public void test1() throws Throwable { } value = msg.azel[13].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[13].el + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.azel[13].el + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -597,9 +474,7 @@ public void test1() throws Throwable { } value = msg.azel[13].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[13].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[13].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -607,9 +482,7 @@ public void test1() throws Throwable { } value = msg.azel[13].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[13].sid.sat + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.azel[13].sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -617,9 +490,7 @@ public void test1() throws Throwable { } value = msg.azel[14].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[14].az + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.azel[14].az + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -627,9 +498,7 @@ public void test1() throws Throwable { } value = msg.azel[14].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[14].el + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.azel[14].el + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -637,9 +506,7 @@ public void test1() throws Throwable { } value = msg.azel[14].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[14].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[14].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -647,9 +514,7 @@ public void test1() throws Throwable { } value = msg.azel[14].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[14].sid.sat + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.azel[14].sid.sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -657,9 +522,7 @@ public void test1() throws Throwable { } value = msg.azel[15].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[15].az + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.azel[15].az + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -667,9 +530,7 @@ public void test1() throws Throwable { } value = msg.azel[15].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[15].el + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.azel[15].el + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -677,9 +538,7 @@ public void test1() throws Throwable { } value = msg.azel[15].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[15].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[15].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -687,9 +546,7 @@ public void test1() throws Throwable { } value = msg.azel[15].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[15].sid.sat + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.azel[15].sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -697,9 +554,7 @@ public void test1() throws Throwable { } value = msg.azel[16].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[16].az + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.azel[16].az + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -707,9 +562,7 @@ public void test1() throws Throwable { } value = msg.azel[16].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[16].el + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.azel[16].el + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -717,9 +570,7 @@ public void test1() throws Throwable { } value = msg.azel[16].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[16].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[16].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -727,9 +578,7 @@ public void test1() throws Throwable { } value = msg.azel[16].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[16].sid.sat + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.azel[16].sid.sat + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -737,9 +586,7 @@ public void test1() throws Throwable { } value = msg.azel[17].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[17].az + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.azel[17].az + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -747,9 +594,7 @@ public void test1() throws Throwable { } value = msg.azel[17].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[17].el + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.azel[17].el + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -757,9 +602,7 @@ public void test1() throws Throwable { } value = msg.azel[17].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[17].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[17].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -767,9 +610,7 @@ public void test1() throws Throwable { } value = msg.azel[17].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[17].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.azel[17].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -777,9 +618,7 @@ public void test1() throws Throwable { } value = msg.azel[18].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[18].az + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.azel[18].az + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -787,9 +626,7 @@ public void test1() throws Throwable { } value = msg.azel[18].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[18].el + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.azel[18].el + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -797,9 +634,7 @@ public void test1() throws Throwable { } value = msg.azel[18].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[18].sid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[18].sid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -807,9 +642,7 @@ public void test1() throws Throwable { } value = msg.azel[18].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[18].sid.sat + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.azel[18].sid.sat + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -817,9 +650,7 @@ public void test1() throws Throwable { } value = msg.azel[19].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[19].az + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.azel[19].az + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -827,9 +658,7 @@ public void test1() throws Throwable { } value = msg.azel[19].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[19].el + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.azel[19].el + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -837,9 +666,7 @@ public void test1() throws Throwable { } value = msg.azel[19].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[19].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[19].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -847,9 +674,7 @@ public void test1() throws Throwable { } value = msg.azel[19].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[19].sid.sat + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.azel[19].sid.sat + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -857,9 +682,7 @@ public void test1() throws Throwable { } value = msg.azel[20].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[20].az + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.azel[20].az + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -867,9 +690,7 @@ public void test1() throws Throwable { } value = msg.azel[20].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[20].el + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.azel[20].el + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -877,9 +698,7 @@ public void test1() throws Throwable { } value = msg.azel[20].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[20].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[20].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -887,9 +706,7 @@ public void test1() throws Throwable { } value = msg.azel[20].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[20].sid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.azel[20].sid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -897,9 +714,7 @@ public void test1() throws Throwable { } value = msg.azel[21].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[21].az + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.azel[21].az + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -907,9 +722,7 @@ public void test1() throws Throwable { } value = msg.azel[21].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[21].el + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.azel[21].el + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -917,9 +730,7 @@ public void test1() throws Throwable { } value = msg.azel[21].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[21].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[21].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -927,9 +738,7 @@ public void test1() throws Throwable { } value = msg.azel[21].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[21].sid.sat + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.azel[21].sid.sat + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -937,9 +746,7 @@ public void test1() throws Throwable { } value = msg.azel[22].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[22].az + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.azel[22].az + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -947,9 +754,7 @@ public void test1() throws Throwable { } value = msg.azel[22].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[22].el + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[22].el + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -957,9 +762,7 @@ public void test1() throws Throwable { } value = msg.azel[22].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[22].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[22].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -967,9 +770,7 @@ public void test1() throws Throwable { } value = msg.azel[22].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[22].sid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.azel[22].sid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -977,9 +778,7 @@ public void test1() throws Throwable { } value = msg.azel[23].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[23].az + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.azel[23].az + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -987,9 +786,7 @@ public void test1() throws Throwable { } value = msg.azel[23].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[23].el + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.azel[23].el + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -997,9 +794,7 @@ public void test1() throws Throwable { } value = msg.azel[23].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[23].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[23].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1007,9 +802,7 @@ public void test1() throws Throwable { } value = msg.azel[23].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[23].sid.sat + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.azel[23].sid.sat + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1017,9 +810,7 @@ public void test1() throws Throwable { } value = msg.azel[24].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[24].az + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.azel[24].az + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1027,9 +818,7 @@ public void test1() throws Throwable { } value = msg.azel[24].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[24].el + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.azel[24].el + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1037,9 +826,7 @@ public void test1() throws Throwable { } value = msg.azel[24].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[24].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[24].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1047,9 +834,7 @@ public void test1() throws Throwable { } value = msg.azel[24].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[24].sid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.azel[24].sid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1057,9 +842,7 @@ public void test1() throws Throwable { } value = msg.azel[25].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[25].az + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.azel[25].az + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1067,9 +850,7 @@ public void test1() throws Throwable { } value = msg.azel[25].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[25].el + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.azel[25].el + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1077,9 +858,7 @@ public void test1() throws Throwable { } value = msg.azel[25].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[25].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[25].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1087,9 +866,7 @@ public void test1() throws Throwable { } value = msg.azel[25].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[25].sid.sat + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.azel[25].sid.sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1097,9 +874,7 @@ public void test1() throws Throwable { } value = msg.azel[26].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[26].az + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.azel[26].az + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1107,9 +882,7 @@ public void test1() throws Throwable { } value = msg.azel[26].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[26].el + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.azel[26].el + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1117,9 +890,7 @@ public void test1() throws Throwable { } value = msg.azel[26].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[26].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[26].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1127,9 +898,7 @@ public void test1() throws Throwable { } value = msg.azel[26].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[26].sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.azel[26].sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1137,9 +906,7 @@ public void test1() throws Throwable { } value = msg.azel[27].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[27].az + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.azel[27].az + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1147,9 +914,7 @@ public void test1() throws Throwable { } value = msg.azel[27].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[27].el + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.azel[27].el + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1157,9 +922,7 @@ public void test1() throws Throwable { } value = msg.azel[27].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[27].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[27].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1167,9 +930,7 @@ public void test1() throws Throwable { } value = msg.azel[27].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[27].sid.sat + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.azel[27].sid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1177,9 +938,7 @@ public void test1() throws Throwable { } value = msg.azel[28].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[28].az + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.azel[28].az + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1187,9 +946,7 @@ public void test1() throws Throwable { } value = msg.azel[28].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[28].el + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.azel[28].el + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1197,9 +954,7 @@ public void test1() throws Throwable { } value = msg.azel[28].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[28].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[28].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1207,9 +962,7 @@ public void test1() throws Throwable { } value = msg.azel[28].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[28].sid.sat + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.azel[28].sid.sat + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1217,9 +970,7 @@ public void test1() throws Throwable { } value = msg.azel[29].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[29].az + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.azel[29].az + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1227,9 +978,7 @@ public void test1() throws Throwable { } value = msg.azel[29].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[29].el + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.azel[29].el + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1237,9 +986,7 @@ public void test1() throws Throwable { } value = msg.azel[29].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[29].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[29].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1247,9 +994,7 @@ public void test1() throws Throwable { } value = msg.azel[29].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[29].sid.sat + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.azel[29].sid.sat + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1257,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.azel[30].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[30].az + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.azel[30].az + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1267,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.azel[30].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[30].el + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.azel[30].el + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1277,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.azel[30].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[30].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[30].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1287,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.azel[30].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[30].sid.sat + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.azel[30].sid.sat + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1297,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.azel[31].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[31].az + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.azel[31].az + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -1307,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.azel[31].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[31].el + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.azel[31].el + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1317,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.azel[31].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[31].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[31].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1327,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.azel[31].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[31].sid.sat + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.azel[31].sid.sat + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1337,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.azel[32].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[32].az + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.azel[32].az + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1347,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.azel[32].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[32].el + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.azel[32].el + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1357,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.azel[32].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[32].sid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.azel[32].sid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1367,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.azel[32].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.azel[32].sid.sat + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.azel[32].sid.sat + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; diff --git a/java/test/auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.java b/java/test/auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.java index 12089b2d67..5c2128c76a 100644 --- a/java/test/auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.java +++ b/java/test/auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_MsgSvConfigurationGpsDep.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_MsgSvConfigurationGpsDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgSvConfigurationGPSDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_MsgSvConfigurationGpsDepTest { @@ -29,31 +33,16 @@ public class auto_check_sbp_observation_MsgSvConfigurationGpsDepTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 66, - (byte) 188, - (byte) 101, - (byte) 167, - }; - SBPMessage sbp = new SBPMessage(0x007b, 0x91, payload); - MsgSvConfigurationGPSDep msg = new MsgSvConfigurationGPSDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_observation_MsgSvConfigurationGpsDepTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)66,(byte)188,(byte)101,(byte)167, }; + SBPMessage sbp = new SBPMessage( 0x007b, 0x91, payload ); + MsgSvConfigurationGPSDep msg = new MsgSvConfigurationGPSDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.l2c_mask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.l2c_mask + "' != '" + 2808462402L + "'", - value.equals(new BigInteger("2808462402"))); + org.junit.Assert.assertTrue("'" + msg.l2c_mask + "' != '" + 2808462402L + "'", value.equals( new BigInteger( "2808462402" ) ) ); } else { value = value.longValue(); expected = 2808462402L; @@ -61,9 +50,7 @@ public void test1() throws Throwable { } value = msg.t_nmct.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.tow + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -71,8 +58,7 @@ public void test1() throws Throwable { } value = msg.t_nmct.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t_nmct.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.t_nmct.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_observation_msgEphemerisDepBTest.java b/java/test/auto_check_sbp_observation_msgEphemerisDepBTest.java index e11c157559..936fa4c56e 100644 --- a/java/test/auto_check_sbp_observation_msgEphemerisDepBTest.java +++ b/java/test/auto_check_sbp_observation_msgEphemerisDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_msgEphemerisDepB.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_msgEphemerisDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_msgEphemerisDepBTest { @@ -30,187 +34,9 @@ public class auto_check_sbp_observation_msgEphemerisDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 60, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 186, - (byte) 82, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 76, - (byte) 109, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 132, - (byte) 208, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 254, - (byte) 220, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 113, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 133, - (byte) 190, - (byte) 28, - (byte) 36, - (byte) 25, - (byte) 81, - (byte) 223, - (byte) 254, - (byte) 52, - (byte) 62, - (byte) 220, - (byte) 116, - (byte) 216, - (byte) 39, - (byte) 33, - (byte) 189, - (byte) 3, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 156, - (byte) 177, - (byte) 204, - (byte) 134, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 220, - (byte) 182, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 152, - (byte) 225, - (byte) 192, - (byte) 44, - (byte) 254, - (byte) 76, - (byte) 238, - (byte) 191, - (byte) 41, - (byte) 150, - (byte) 24, - (byte) 2, - (byte) 148, - (byte) 156, - (byte) 65, - (byte) 190, - (byte) 252, - (byte) 90, - (byte) 119, - (byte) 48, - (byte) 15, - (byte) 215, - (byte) 240, - (byte) 63, - (byte) 124, - (byte) 127, - (byte) 115, - (byte) 94, - (byte) 208, - (byte) 16, - (byte) 238, - (byte) 63, - (byte) 165, - (byte) 115, - (byte) 52, - (byte) 74, - (byte) 97, - (byte) 167, - (byte) 246, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 180, - (byte) 229, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 112, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 3, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)60,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)186,(byte)82,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)76,(byte)109,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)132,(byte)208,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)254,(byte)220,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)113,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)133,(byte)190,(byte)28,(byte)36,(byte)25,(byte)81,(byte)223,(byte)254,(byte)52,(byte)62,(byte)220,(byte)116,(byte)216,(byte)39,(byte)33,(byte)189,(byte)3,(byte)64,(byte)0,(byte)0,(byte)0,(byte)156,(byte)177,(byte)204,(byte)134,(byte)63,(byte)0,(byte)0,(byte)160,(byte)220,(byte)182,(byte)33,(byte)180,(byte)64,(byte)152,(byte)225,(byte)192,(byte)44,(byte)254,(byte)76,(byte)238,(byte)191,(byte)41,(byte)150,(byte)24,(byte)2,(byte)148,(byte)156,(byte)65,(byte)190,(byte)252,(byte)90,(byte)119,(byte)48,(byte)15,(byte)215,(byte)240,(byte)63,(byte)124,(byte)127,(byte)115,(byte)94,(byte)208,(byte)16,(byte)238,(byte)63,(byte)165,(byte)115,(byte)52,(byte)74,(byte)97,(byte)167,(byte)246,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)180,(byte)229,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)112,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)3,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -227,8 +53,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 1.11326099140569568e-02, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -238,8 +63,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -3.29656588662985413e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -250,8 +74,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.20105589261047769e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -262,9 +85,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -273,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -283,8 +102,7 @@ public void test1() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -299,187 +117,9 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test2"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 68, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 72, - (byte) 66, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 188, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 193, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 164, - (byte) 204, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 130, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 62, - (byte) 72, - (byte) 181, - (byte) 127, - (byte) 6, - (byte) 208, - (byte) 225, - (byte) 52, - (byte) 62, - (byte) 158, - (byte) 174, - (byte) 129, - (byte) 91, - (byte) 27, - (byte) 105, - (byte) 249, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 96, - (byte) 204, - (byte) 57, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 35, - (byte) 146, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 247, - (byte) 169, - (byte) 1, - (byte) 36, - (byte) 133, - (byte) 206, - (byte) 243, - (byte) 63, - (byte) 79, - (byte) 11, - (byte) 109, - (byte) 92, - (byte) 156, - (byte) 208, - (byte) 65, - (byte) 190, - (byte) 103, - (byte) 78, - (byte) 3, - (byte) 253, - (byte) 223, - (byte) 147, - (byte) 255, - (byte) 191, - (byte) 164, - (byte) 214, - (byte) 90, - (byte) 250, - (byte) 218, - (byte) 240, - (byte) 238, - (byte) 63, - (byte) 94, - (byte) 239, - (byte) 187, - (byte) 37, - (byte) 36, - (byte) 10, - (byte) 242, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 91, - (byte) 19, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 137, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 13, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)68,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)72,(byte)66,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)188,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)193,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)164,(byte)204,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)130,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)62,(byte)72,(byte)181,(byte)127,(byte)6,(byte)208,(byte)225,(byte)52,(byte)62,(byte)158,(byte)174,(byte)129,(byte)91,(byte)27,(byte)105,(byte)249,(byte)191,(byte)0,(byte)0,(byte)0,(byte)96,(byte)204,(byte)57,(byte)128,(byte)63,(byte)0,(byte)0,(byte)160,(byte)35,(byte)146,(byte)33,(byte)180,(byte)64,(byte)247,(byte)169,(byte)1,(byte)36,(byte)133,(byte)206,(byte)243,(byte)63,(byte)79,(byte)11,(byte)109,(byte)92,(byte)156,(byte)208,(byte)65,(byte)190,(byte)103,(byte)78,(byte)3,(byte)253,(byte)223,(byte)147,(byte)255,(byte)191,(byte)164,(byte)214,(byte)90,(byte)250,(byte)218,(byte)240,(byte)238,(byte)63,(byte)94,(byte)239,(byte)187,(byte)37,(byte)36,(byte)10,(byte)242,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)176,(byte)91,(byte)19,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)137,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)13,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -496,8 +136,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 7.92274158447980881e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -507,8 +146,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, 2.62510934634121662e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -519,8 +157,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.29570269217244098e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -531,9 +168,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -542,9 +177,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -552,8 +185,7 @@ public void test2() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -568,187 +200,9 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test3"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 56, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 81, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 129, - (byte) 109, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 28, - (byte) 205, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 76, - (byte) 223, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 105, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 92, - (byte) 190, - (byte) 134, - (byte) 161, - (byte) 223, - (byte) 255, - (byte) 243, - (byte) 43, - (byte) 51, - (byte) 62, - (byte) 146, - (byte) 176, - (byte) 113, - (byte) 142, - (byte) 234, - (byte) 164, - (byte) 5, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 56, - (byte) 175, - (byte) 140, - (byte) 112, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 90, - (byte) 171, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 36, - (byte) 38, - (byte) 237, - (byte) 255, - (byte) 200, - (byte) 160, - (byte) 237, - (byte) 191, - (byte) 204, - (byte) 92, - (byte) 63, - (byte) 154, - (byte) 49, - (byte) 91, - (byte) 65, - (byte) 190, - (byte) 125, - (byte) 94, - (byte) 251, - (byte) 132, - (byte) 52, - (byte) 61, - (byte) 216, - (byte) 63, - (byte) 2, - (byte) 139, - (byte) 28, - (byte) 27, - (byte) 231, - (byte) 199, - (byte) 238, - (byte) 63, - (byte) 124, - (byte) 183, - (byte) 4, - (byte) 180, - (byte) 194, - (byte) 30, - (byte) 247, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 104, - (byte) 222, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 96, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)56,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)81,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)129,(byte)109,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)28,(byte)205,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)76,(byte)223,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)105,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)92,(byte)190,(byte)134,(byte)161,(byte)223,(byte)255,(byte)243,(byte)43,(byte)51,(byte)62,(byte)146,(byte)176,(byte)113,(byte)142,(byte)234,(byte)164,(byte)5,(byte)64,(byte)0,(byte)0,(byte)0,(byte)56,(byte)175,(byte)140,(byte)112,(byte)63,(byte)0,(byte)0,(byte)192,(byte)90,(byte)171,(byte)33,(byte)180,(byte)64,(byte)36,(byte)38,(byte)237,(byte)255,(byte)200,(byte)160,(byte)237,(byte)191,(byte)204,(byte)92,(byte)63,(byte)154,(byte)49,(byte)91,(byte)65,(byte)190,(byte)125,(byte)94,(byte)251,(byte)132,(byte)52,(byte)61,(byte)216,(byte)63,(byte)2,(byte)139,(byte)28,(byte)27,(byte)231,(byte)199,(byte)238,(byte)63,(byte)124,(byte)183,(byte)4,(byte)180,(byte)194,(byte)30,(byte)247,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)104,(byte)222,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)96,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -765,8 +219,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 4.04041714500635862e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -776,8 +229,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -3.36442585612711049e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -788,8 +240,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.08212236712318227e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -800,9 +251,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -811,9 +260,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -821,8 +268,7 @@ public void test3() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -837,187 +283,9 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test4"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 68, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 72, - (byte) 66, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 188, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 80, - (byte) 193, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 164, - (byte) 204, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 130, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 62, - (byte) 72, - (byte) 181, - (byte) 127, - (byte) 6, - (byte) 208, - (byte) 225, - (byte) 52, - (byte) 62, - (byte) 158, - (byte) 174, - (byte) 129, - (byte) 91, - (byte) 27, - (byte) 105, - (byte) 249, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 96, - (byte) 204, - (byte) 57, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 35, - (byte) 146, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 247, - (byte) 169, - (byte) 1, - (byte) 36, - (byte) 133, - (byte) 206, - (byte) 243, - (byte) 63, - (byte) 79, - (byte) 11, - (byte) 109, - (byte) 92, - (byte) 156, - (byte) 208, - (byte) 65, - (byte) 190, - (byte) 103, - (byte) 78, - (byte) 3, - (byte) 253, - (byte) 223, - (byte) 147, - (byte) 255, - (byte) 191, - (byte) 164, - (byte) 214, - (byte) 90, - (byte) 250, - (byte) 218, - (byte) 240, - (byte) 238, - (byte) 63, - (byte) 94, - (byte) 239, - (byte) 187, - (byte) 37, - (byte) 36, - (byte) 10, - (byte) 242, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 176, - (byte) 91, - (byte) 19, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 137, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 13, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)68,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)72,(byte)66,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)188,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)193,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)164,(byte)204,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)130,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)62,(byte)72,(byte)181,(byte)127,(byte)6,(byte)208,(byte)225,(byte)52,(byte)62,(byte)158,(byte)174,(byte)129,(byte)91,(byte)27,(byte)105,(byte)249,(byte)191,(byte)0,(byte)0,(byte)0,(byte)96,(byte)204,(byte)57,(byte)128,(byte)63,(byte)0,(byte)0,(byte)160,(byte)35,(byte)146,(byte)33,(byte)180,(byte)64,(byte)247,(byte)169,(byte)1,(byte)36,(byte)133,(byte)206,(byte)243,(byte)63,(byte)79,(byte)11,(byte)109,(byte)92,(byte)156,(byte)208,(byte)65,(byte)190,(byte)103,(byte)78,(byte)3,(byte)253,(byte)223,(byte)147,(byte)255,(byte)191,(byte)164,(byte)214,(byte)90,(byte)250,(byte)218,(byte)240,(byte)238,(byte)63,(byte)94,(byte)239,(byte)187,(byte)37,(byte)36,(byte)10,(byte)242,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)176,(byte)91,(byte)19,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)137,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)13,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -1034,8 +302,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 7.92274158447980881e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1045,8 +312,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, 2.62510934634121662e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1057,8 +323,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.29570269217244098e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1069,9 +334,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1080,9 +343,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1090,8 +351,7 @@ public void test4() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1106,187 +366,9 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test5"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 85, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 156, - (byte) 69, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 19, - (byte) 115, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 193, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 152, - (byte) 207, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 97, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 139, - (byte) 190, - (byte) 26, - (byte) 26, - (byte) 13, - (byte) 149, - (byte) 16, - (byte) 152, - (byte) 54, - (byte) 62, - (byte) 104, - (byte) 7, - (byte) 46, - (byte) 214, - (byte) 75, - (byte) 84, - (byte) 5, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 230, - (byte) 82, - (byte) 132, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 252, - (byte) 162, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 73, - (byte) 6, - (byte) 130, - (byte) 54, - (byte) 217, - (byte) 171, - (byte) 242, - (byte) 63, - (byte) 81, - (byte) 224, - (byte) 163, - (byte) 123, - (byte) 238, - (byte) 42, - (byte) 66, - (byte) 190, - (byte) 206, - (byte) 43, - (byte) 141, - (byte) 67, - (byte) 243, - (byte) 157, - (byte) 5, - (byte) 192, - (byte) 113, - (byte) 179, - (byte) 153, - (byte) 187, - (byte) 43, - (byte) 92, - (byte) 238, - (byte) 63, - (byte) 254, - (byte) 236, - (byte) 31, - (byte) 43, - (byte) 224, - (byte) 157, - (byte) 244, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 232, - (byte) 4, - (byte) 26, - (byte) 191, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 134, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 22, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)85,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)156,(byte)69,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)19,(byte)115,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)160,(byte)193,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)152,(byte)207,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)97,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)139,(byte)190,(byte)26,(byte)26,(byte)13,(byte)149,(byte)16,(byte)152,(byte)54,(byte)62,(byte)104,(byte)7,(byte)46,(byte)214,(byte)75,(byte)84,(byte)5,(byte)192,(byte)0,(byte)0,(byte)0,(byte)128,(byte)230,(byte)82,(byte)132,(byte)63,(byte)0,(byte)0,(byte)160,(byte)252,(byte)162,(byte)33,(byte)180,(byte)64,(byte)73,(byte)6,(byte)130,(byte)54,(byte)217,(byte)171,(byte)242,(byte)63,(byte)81,(byte)224,(byte)163,(byte)123,(byte)238,(byte)42,(byte)66,(byte)190,(byte)206,(byte)43,(byte)141,(byte)67,(byte)243,(byte)157,(byte)5,(byte)192,(byte)113,(byte)179,(byte)153,(byte)187,(byte)43,(byte)92,(byte)238,(byte)63,(byte)254,(byte)236,(byte)31,(byte)43,(byte)224,(byte)157,(byte)244,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)232,(byte)4,(byte)26,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)134,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)22,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -1303,8 +385,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 9.92374494671821594e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1314,8 +395,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, 3.00012496724710486e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1326,8 +406,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -8.45999524990263948e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1338,9 +417,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1349,9 +426,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1359,8 +434,7 @@ public void test5() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1375,187 +449,9 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisDepBTest.test6"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 77, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 122, - (byte) 83, - (byte) 192, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 233, - (byte) 110, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 60, - (byte) 207, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 28, - (byte) 222, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 120, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 108, - (byte) 62, - (byte) 10, - (byte) 230, - (byte) 183, - (byte) 140, - (byte) 214, - (byte) 230, - (byte) 50, - (byte) 62, - (byte) 54, - (byte) 86, - (byte) 196, - (byte) 164, - (byte) 252, - (byte) 10, - (byte) 255, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 36, - (byte) 247, - (byte) 191, - (byte) 128, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 160, - (byte) 5, - (byte) 193, - (byte) 33, - (byte) 180, - (byte) 64, - (byte) 186, - (byte) 138, - (byte) 81, - (byte) 129, - (byte) 88, - (byte) 239, - (byte) 1, - (byte) 64, - (byte) 94, - (byte) 210, - (byte) 120, - (byte) 170, - (byte) 106, - (byte) 25, - (byte) 65, - (byte) 190, - (byte) 103, - (byte) 213, - (byte) 32, - (byte) 155, - (byte) 227, - (byte) 194, - (byte) 224, - (byte) 191, - (byte) 156, - (byte) 47, - (byte) 104, - (byte) 93, - (byte) 101, - (byte) 55, - (byte) 239, - (byte) 63, - (byte) 196, - (byte) 83, - (byte) 100, - (byte) 254, - (byte) 51, - (byte) 54, - (byte) 4, - (byte) 190, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 50, - (byte) 242, - (byte) 52, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 114, - (byte) 189, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 12, - (byte) 25, - (byte) 65, - (byte) 46, - (byte) 7, - (byte) 1, - (byte) 1, - (byte) 30, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x46, payload); - MsgEphemerisDepB msg = new MsgEphemerisDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)77,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)122,(byte)83,(byte)192,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)233,(byte)110,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)60,(byte)207,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)28,(byte)222,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)120,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)108,(byte)62,(byte)10,(byte)230,(byte)183,(byte)140,(byte)214,(byte)230,(byte)50,(byte)62,(byte)54,(byte)86,(byte)196,(byte)164,(byte)252,(byte)10,(byte)255,(byte)63,(byte)0,(byte)0,(byte)0,(byte)36,(byte)247,(byte)191,(byte)128,(byte)63,(byte)0,(byte)0,(byte)160,(byte)5,(byte)193,(byte)33,(byte)180,(byte)64,(byte)186,(byte)138,(byte)81,(byte)129,(byte)88,(byte)239,(byte)1,(byte)64,(byte)94,(byte)210,(byte)120,(byte)170,(byte)106,(byte)25,(byte)65,(byte)190,(byte)103,(byte)213,(byte)32,(byte)155,(byte)227,(byte)194,(byte)224,(byte)191,(byte)156,(byte)47,(byte)104,(byte)93,(byte)101,(byte)55,(byte)239,(byte)63,(byte)196,(byte)83,(byte)100,(byte)254,(byte)51,(byte)54,(byte)4,(byte)190,(byte)0,(byte)0,(byte)0,(byte)0,(byte)50,(byte)242,(byte)52,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)114,(byte)189,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)12,(byte)25,(byte)65,(byte)46,(byte)7,(byte)1,(byte)1,(byte)30,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x46, payload ); + MsgEphemerisDepB msg = new MsgEphemerisDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -1572,8 +468,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.ecc, 8.17864493001252413e-03, DELTA); value = msg.healthy; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.healthy + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1583,8 +478,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, -5.88238788220950205e-10, DELTA); value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1595,8 +489,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.omegadot, -7.96247452616749420e-09, DELTA); value = msg.prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1607,9 +500,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.toc_tow, 4.10400000000000000e+05, DELTA); value = msg.toc_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toc_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1618,9 +509,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.toe_tow, 4.10400000000000000e+05, DELTA); value = msg.toe_wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toe_wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.toe_wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1628,8 +517,7 @@ public void test6() throws Throwable { } value = msg.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.valid + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_observation_msgEphemerisQzssTest.java b/java/test/auto_check_sbp_observation_msgEphemerisQzssTest.java index 3209dc52bb..5dfe415b44 100644 --- a/java/test/auto_check_sbp_observation_msgEphemerisQzssTest.java +++ b/java/test/auto_check_sbp_observation_msgEphemerisQzssTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_msgEphemerisQzss.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_msgEphemerisQzss.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgEphemerisQzss; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_msgEphemerisQzssTest { @@ -30,150 +34,9 @@ public class auto_check_sbp_observation_msgEphemerisQzssTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgEphemerisQzssTest.test1"); - byte[] payload = - new byte[] { - (byte) 193, - (byte) 31, - (byte) 208, - (byte) 221, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 56, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 192, - (byte) 177, - (byte) 0, - (byte) 232, - (byte) 228, - (byte) 195, - (byte) 0, - (byte) 160, - (byte) 19, - (byte) 194, - (byte) 0, - (byte) 224, - (byte) 135, - (byte) 183, - (byte) 0, - (byte) 96, - (byte) 10, - (byte) 55, - (byte) 0, - (byte) 192, - (byte) 157, - (byte) 181, - (byte) 0, - (byte) 0, - (byte) 46, - (byte) 52, - (byte) 167, - (byte) 72, - (byte) 107, - (byte) 105, - (byte) 179, - (byte) 1, - (byte) 39, - (byte) 62, - (byte) 15, - (byte) 224, - (byte) 158, - (byte) 211, - (byte) 241, - (byte) 164, - (byte) 211, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 24, - (byte) 251, - (byte) 83, - (byte) 179, - (byte) 63, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 34, - (byte) 44, - (byte) 93, - (byte) 185, - (byte) 64, - (byte) 143, - (byte) 62, - (byte) 206, - (byte) 232, - (byte) 193, - (byte) 181, - (byte) 242, - (byte) 191, - (byte) 207, - (byte) 216, - (byte) 69, - (byte) 106, - (byte) 98, - (byte) 255, - (byte) 39, - (byte) 190, - (byte) 65, - (byte) 132, - (byte) 95, - (byte) 22, - (byte) 48, - (byte) 15, - (byte) 249, - (byte) 191, - (byte) 249, - (byte) 82, - (byte) 67, - (byte) 94, - (byte) 30, - (byte) 100, - (byte) 231, - (byte) 63, - (byte) 117, - (byte) 167, - (byte) 187, - (byte) 233, - (byte) 187, - (byte) 253, - (byte) 181, - (byte) 61, - (byte) 160, - (byte) 129, - (byte) 193, - (byte) 185, - (byte) 0, - (byte) 0, - (byte) 168, - (byte) 172, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 208, - (byte) 221, - (byte) 6, - (byte) 0, - (byte) 106, - (byte) 8, - (byte) 49, - (byte) 49, - (byte) 3, - }; - SBPMessage sbp = new SBPMessage(0xf080, 0x8e, payload); - MsgEphemerisQzss msg = new MsgEphemerisQzss(sbp); + byte[] payload = new byte[] {(byte)193,(byte)31,(byte)208,(byte)221,(byte)6,(byte)0,(byte)106,(byte)8,(byte)0,(byte)0,(byte)0,(byte)64,(byte)64,(byte)56,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)192,(byte)177,(byte)0,(byte)232,(byte)228,(byte)195,(byte)0,(byte)160,(byte)19,(byte)194,(byte)0,(byte)224,(byte)135,(byte)183,(byte)0,(byte)96,(byte)10,(byte)55,(byte)0,(byte)192,(byte)157,(byte)181,(byte)0,(byte)0,(byte)46,(byte)52,(byte)167,(byte)72,(byte)107,(byte)105,(byte)179,(byte)1,(byte)39,(byte)62,(byte)15,(byte)224,(byte)158,(byte)211,(byte)241,(byte)164,(byte)211,(byte)63,(byte)0,(byte)0,(byte)0,(byte)24,(byte)251,(byte)83,(byte)179,(byte)63,(byte)0,(byte)0,(byte)0,(byte)34,(byte)44,(byte)93,(byte)185,(byte)64,(byte)143,(byte)62,(byte)206,(byte)232,(byte)193,(byte)181,(byte)242,(byte)191,(byte)207,(byte)216,(byte)69,(byte)106,(byte)98,(byte)255,(byte)39,(byte)190,(byte)65,(byte)132,(byte)95,(byte)22,(byte)48,(byte)15,(byte)249,(byte)191,(byte)249,(byte)82,(byte)67,(byte)94,(byte)30,(byte)100,(byte)231,(byte)63,(byte)117,(byte)167,(byte)187,(byte)233,(byte)187,(byte)253,(byte)181,(byte)61,(byte)160,(byte)129,(byte)193,(byte)185,(byte)0,(byte)0,(byte)168,(byte)172,(byte)0,(byte)0,(byte)0,(byte)0,(byte)208,(byte)221,(byte)6,(byte)0,(byte)106,(byte)8,(byte)49,(byte)49,(byte)3, }; + SBPMessage sbp = new SBPMessage( 0xf080, 0x8e, payload ); + MsgEphemerisQzss msg = new MsgEphemerisQzss( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -188,9 +51,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.c_us, 8.24779272079467773e-06, DELTA); value = msg.common.fit_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.fit_interval + "' != '" + 14400 + "'", - value.equals(BigInteger.valueOf(14400L))); + org.junit.Assert.assertTrue("'" + msg.common.fit_interval + "' != '" + 14400 + "'", value.equals(BigInteger.valueOf( 14400L ) ) ); } else { value = value.longValue(); expected = 14400L; @@ -198,9 +59,7 @@ public void test1() throws Throwable { } value = msg.common.health_bits; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.health_bits + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.health_bits + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -208,9 +67,7 @@ public void test1() throws Throwable { } value = msg.common.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.code + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.code + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -218,9 +75,7 @@ public void test1() throws Throwable { } value = msg.common.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.sid.sat + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.common.sid.sat + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -228,9 +83,7 @@ public void test1() throws Throwable { } value = msg.common.toe.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.tow + "' != '" + 450000 + "'", - value.equals(BigInteger.valueOf(450000L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.tow + "' != '" + 450000 + "'", value.equals(BigInteger.valueOf( 450000L ) ) ); } else { value = value.longValue(); expected = 450000L; @@ -238,9 +91,7 @@ public void test1() throws Throwable { } value = msg.common.toe.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.toe.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.common.toe.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; @@ -249,9 +100,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.common.ura, 2.00000000000000000e+00, DELTA); value = msg.common.valid; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.common.valid + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.common.valid + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -263,8 +112,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.inc_dot, 2.00008331149806980e-11, DELTA); value = msg.iodc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iodc + "' != '" + 817 + "'", value.equals(BigInteger.valueOf(817L))); + org.junit.Assert.assertTrue("'" + msg.iodc + "' != '" + 817 + "'", value.equals(BigInteger.valueOf( 817L ) ) ); } else { value = value.longValue(); expected = 817L; @@ -272,8 +120,7 @@ public void test1() throws Throwable { } value = msg.iode; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iode + "' != '" + 49 + "'", value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.iode + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -286,9 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.tgd, -5.58793544769287109e-09, DELTA); value = msg.toc.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.tow + "' != '" + 450000 + "'", - value.equals(BigInteger.valueOf(450000L))); + org.junit.Assert.assertTrue("'" + msg.toc.tow + "' != '" + 450000 + "'", value.equals(BigInteger.valueOf( 450000L ) ) ); } else { value = value.longValue(); expected = 450000L; @@ -296,9 +141,7 @@ public void test1() throws Throwable { } value = msg.toc.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.toc.wn + "' != '" + 2154 + "'", - value.equals(BigInteger.valueOf(2154L))); + org.junit.Assert.assertTrue("'" + msg.toc.wn + "' != '" + 2154 + "'", value.equals(BigInteger.valueOf( 2154L ) ) ); } else { value = value.longValue(); expected = 2154L; diff --git a/java/test/auto_check_sbp_observation_msgObsDepATest.java b/java/test/auto_check_sbp_observation_msgObsDepATest.java index 0a1e0c7e43..83e9affc98 100644 --- a/java/test/auto_check_sbp_observation_msgObsDepATest.java +++ b/java/test/auto_check_sbp_observation_msgObsDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_msgObsDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_msgObsDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.observation.MsgObsDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_observation_msgObsDepATest { @@ -27,118 +32,17 @@ public class auto_check_sbp_observation_msgObsDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 56, - (byte) 158, - (byte) 67, - (byte) 24, - (byte) 46, - (byte) 7, - (byte) 32, - (byte) 56, - (byte) 235, - (byte) 249, - (byte) 121, - (byte) 244, - (byte) 114, - (byte) 255, - (byte) 255, - (byte) 33, - (byte) 46, - (byte) 67, - (byte) 218, - (byte) 0, - (byte) 238, - (byte) 203, - (byte) 70, - (byte) 124, - (byte) 22, - (byte) 25, - (byte) 3, - (byte) 0, - (byte) 98, - (byte) 43, - (byte) 184, - (byte) 157, - (byte) 2, - (byte) 176, - (byte) 133, - (byte) 197, - (byte) 125, - (byte) 126, - (byte) 71, - (byte) 253, - (byte) 255, - (byte) 185, - (byte) 39, - (byte) 68, - (byte) 55, - (byte) 3, - (byte) 60, - (byte) 173, - (byte) 162, - (byte) 131, - (byte) 98, - (byte) 231, - (byte) 253, - (byte) 255, - (byte) 139, - (byte) 30, - (byte) 33, - (byte) 16, - (byte) 10, - (byte) 128, - (byte) 178, - (byte) 248, - (byte) 136, - (byte) 42, - (byte) 113, - (byte) 253, - (byte) 255, - (byte) 40, - (byte) 20, - (byte) 42, - (byte) 71, - (byte) 13, - (byte) 246, - (byte) 246, - (byte) 17, - (byte) 135, - (byte) 255, - (byte) 51, - (byte) 3, - (byte) 0, - (byte) 64, - (byte) 27, - (byte) 108, - (byte) 249, - (byte) 22, - (byte) 210, - (byte) 41, - (byte) 114, - (byte) 118, - (byte) 131, - (byte) 48, - (byte) 255, - (byte) 255, - (byte) 31, - (byte) 52, - (byte) 226, - (byte) 58, - (byte) 30, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test1"); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)46,(byte)7,(byte)32,(byte)56,(byte)235,(byte)249,(byte)121,(byte)244,(byte)114,(byte)255,(byte)255,(byte)33,(byte)46,(byte)67,(byte)218,(byte)0,(byte)238,(byte)203,(byte)70,(byte)124,(byte)22,(byte)25,(byte)3,(byte)0,(byte)98,(byte)43,(byte)184,(byte)157,(byte)2,(byte)176,(byte)133,(byte)197,(byte)125,(byte)126,(byte)71,(byte)253,(byte)255,(byte)185,(byte)39,(byte)68,(byte)55,(byte)3,(byte)60,(byte)173,(byte)162,(byte)131,(byte)98,(byte)231,(byte)253,(byte)255,(byte)139,(byte)30,(byte)33,(byte)16,(byte)10,(byte)128,(byte)178,(byte)248,(byte)136,(byte)42,(byte)113,(byte)253,(byte)255,(byte)40,(byte)20,(byte)42,(byte)71,(byte)13,(byte)246,(byte)246,(byte)17,(byte)135,(byte)255,(byte)51,(byte)3,(byte)0,(byte)64,(byte)27,(byte)108,(byte)249,(byte)22,(byte)210,(byte)41,(byte)114,(byte)118,(byte)131,(byte)48,(byte)255,(byte)255,(byte)31,(byte)52,(byte)226,(byte)58,(byte)30, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -146,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -156,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -166,9 +66,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -176,9 +74,7 @@ public void test1() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -36108 + "'", - value.equals(BigInteger.valueOf(-36108L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -36108 + "'", value.equals(BigInteger.valueOf( -36108L ) ) ); } else { value = value.longValue(); expected = -36108L; @@ -186,9 +82,7 @@ public void test1() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2046421816 + "'", - value.equals(BigInteger.valueOf(2046421816L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2046421816 + "'", value.equals(BigInteger.valueOf( 2046421816L ) ) ); } else { value = value.longValue(); expected = 2046421816L; @@ -196,9 +90,7 @@ public void test1() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -206,9 +98,7 @@ public void test1() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 55875 + "'", - value.equals(BigInteger.valueOf(55875L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 55875 + "'", value.equals(BigInteger.valueOf( 55875L ) ) ); } else { value = value.longValue(); expected = 55875L; @@ -216,9 +106,7 @@ public void test1() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -226,9 +114,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -236,9 +122,7 @@ public void test1() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 203030 + "'", - value.equals(BigInteger.valueOf(203030L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 203030 + "'", value.equals(BigInteger.valueOf( 203030L ) ) ); } else { value = value.longValue(); expected = 203030L; @@ -246,9 +130,7 @@ public void test1() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2085014510 + "'", - value.equals(BigInteger.valueOf(2085014510L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2085014510 + "'", value.equals(BigInteger.valueOf( 2085014510L ) ) ); } else { value = value.longValue(); expected = 2085014510L; @@ -256,9 +138,7 @@ public void test1() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -266,9 +146,7 @@ public void test1() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 40376 + "'", - value.equals(BigInteger.valueOf(40376L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 40376 + "'", value.equals(BigInteger.valueOf( 40376L ) ) ); } else { value = value.longValue(); expected = 40376L; @@ -276,9 +154,7 @@ public void test1() throws Throwable { } value = msg.obs[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -286,9 +162,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -296,9 +170,7 @@ public void test1() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -178306 + "'", - value.equals(BigInteger.valueOf(-178306L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -178306 + "'", value.equals(BigInteger.valueOf( -178306L ) ) ); } else { value = value.longValue(); expected = -178306L; @@ -306,9 +178,7 @@ public void test1() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2110096816 + "'", - value.equals(BigInteger.valueOf(2110096816L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2110096816 + "'", value.equals(BigInteger.valueOf( 2110096816L ) ) ); } else { value = value.longValue(); expected = 2110096816L; @@ -316,9 +186,7 @@ public void test1() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -326,9 +194,7 @@ public void test1() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 14148 + "'", - value.equals(BigInteger.valueOf(14148L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 14148 + "'", value.equals(BigInteger.valueOf( 14148L ) ) ); } else { value = value.longValue(); expected = 14148L; @@ -336,9 +202,7 @@ public void test1() throws Throwable { } value = msg.obs[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -346,9 +210,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -356,9 +218,7 @@ public void test1() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + -137374 + "'", - value.equals(BigInteger.valueOf(-137374L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + -137374 + "'", value.equals(BigInteger.valueOf( -137374L ) ) ); } else { value = value.longValue(); expected = -137374L; @@ -366,9 +226,7 @@ public void test1() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2208476476L + "'", - value.equals(new BigInteger("2208476476"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2208476476L + "'", value.equals( new BigInteger( "2208476476" ) ) ); } else { value = value.longValue(); expected = 2208476476L; @@ -376,9 +234,7 @@ public void test1() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -386,9 +242,7 @@ public void test1() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 4129 + "'", - value.equals(BigInteger.valueOf(4129L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 4129 + "'", value.equals(BigInteger.valueOf( 4129L ) ) ); } else { value = value.longValue(); expected = 4129L; @@ -396,9 +250,7 @@ public void test1() throws Throwable { } value = msg.obs[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].prn + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].prn + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -406,9 +258,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -416,9 +266,7 @@ public void test1() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + -167638 + "'", - value.equals(BigInteger.valueOf(-167638L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + -167638 + "'", value.equals(BigInteger.valueOf( -167638L ) ) ); } else { value = value.longValue(); expected = -167638L; @@ -426,9 +274,7 @@ public void test1() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 2298000000L + "'", - value.equals(new BigInteger("2298000000"))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 2298000000L + "'", value.equals( new BigInteger( "2298000000" ) ) ); } else { value = value.longValue(); expected = 2298000000L; @@ -436,9 +282,7 @@ public void test1() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -446,9 +290,7 @@ public void test1() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 18218 + "'", - value.equals(BigInteger.valueOf(18218L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 18218 + "'", value.equals(BigInteger.valueOf( 18218L ) ) ); } else { value = value.longValue(); expected = 18218L; @@ -456,9 +298,7 @@ public void test1() throws Throwable { } value = msg.obs[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -466,9 +306,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -476,9 +314,7 @@ public void test1() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 209919 + "'", - value.equals(BigInteger.valueOf(209919L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 209919 + "'", value.equals(BigInteger.valueOf( 209919L ) ) ); } else { value = value.longValue(); expected = 209919L; @@ -486,9 +322,7 @@ public void test1() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 2266101494L + "'", - value.equals(new BigInteger("2266101494"))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 2266101494L + "'", value.equals( new BigInteger( "2266101494" ) ) ); } else { value = value.longValue(); expected = 2266101494L; @@ -496,9 +330,7 @@ public void test1() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -506,9 +338,7 @@ public void test1() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 63852 + "'", - value.equals(BigInteger.valueOf(63852L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 63852 + "'", value.equals(BigInteger.valueOf( 63852L ) ) ); } else { value = value.longValue(); expected = 63852L; @@ -516,9 +346,7 @@ public void test1() throws Throwable { } value = msg.obs[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -526,9 +354,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.f + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.f + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -536,9 +362,7 @@ public void test1() throws Throwable { } value = msg.obs[6].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.i + "' != '" + -53117 + "'", - value.equals(BigInteger.valueOf(-53117L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.i + "' != '" + -53117 + "'", value.equals(BigInteger.valueOf( -53117L ) ) ); } else { value = value.longValue(); expected = -53117L; @@ -546,9 +370,7 @@ public void test1() throws Throwable { } value = msg.obs[6].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].P + "' != '" + 1987193298 + "'", - value.equals(BigInteger.valueOf(1987193298L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].P + "' != '" + 1987193298 + "'", value.equals(BigInteger.valueOf( 1987193298L ) ) ); } else { value = value.longValue(); expected = 1987193298L; @@ -556,9 +378,7 @@ public void test1() throws Throwable { } value = msg.obs[6].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].cn0 + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].cn0 + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -566,9 +386,7 @@ public void test1() throws Throwable { } value = msg.obs[6].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].lock + "' != '" + 15074 + "'", - value.equals(BigInteger.valueOf(15074L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].lock + "' != '" + 15074 + "'", value.equals(BigInteger.valueOf( 15074L ) ) ); } else { value = value.longValue(); expected = 15074L; @@ -576,9 +394,7 @@ public void test1() throws Throwable { } value = msg.obs[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -590,23 +406,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 56, (byte) 158, (byte) 67, (byte) 24, (byte) 46, (byte) 7, (byte) 33, - (byte) 84, (byte) 52, (byte) 164, (byte) 117, (byte) 102, (byte) 32, (byte) 0, - (byte) 0, (byte) 147, (byte) 62, (byte) 62, (byte) 250, (byte) 31, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test2"); + byte[] payload = new byte[] {(byte)56,(byte)158,(byte)67,(byte)24,(byte)46,(byte)7,(byte)33,(byte)84,(byte)52,(byte)164,(byte)117,(byte)102,(byte)32,(byte)0,(byte)0,(byte)147,(byte)62,(byte)62,(byte)250,(byte)31, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -614,9 +424,7 @@ public void test2() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407084600 + "'", - value.equals(BigInteger.valueOf(407084600L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407084600 + "'", value.equals(BigInteger.valueOf( 407084600L ) ) ); } else { value = value.longValue(); expected = 407084600L; @@ -624,9 +432,7 @@ public void test2() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -634,9 +440,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -644,9 +448,7 @@ public void test2() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 8294 + "'", - value.equals(BigInteger.valueOf(8294L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 8294 + "'", value.equals(BigInteger.valueOf( 8294L ) ) ); } else { value = value.longValue(); expected = 8294L; @@ -654,9 +456,7 @@ public void test2() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1973695572 + "'", - value.equals(BigInteger.valueOf(1973695572L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1973695572 + "'", value.equals(BigInteger.valueOf( 1973695572L ) ) ); } else { value = value.longValue(); expected = 1973695572L; @@ -664,9 +464,7 @@ public void test2() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -674,9 +472,7 @@ public void test2() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 64062 + "'", - value.equals(BigInteger.valueOf(64062L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 64062 + "'", value.equals(BigInteger.valueOf( 64062L ) ) ); } else { value = value.longValue(); expected = 64062L; @@ -684,9 +480,7 @@ public void test2() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -698,118 +492,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 159, - (byte) 67, - (byte) 24, - (byte) 46, - (byte) 7, - (byte) 32, - (byte) 32, - (byte) 209, - (byte) 249, - (byte) 121, - (byte) 145, - (byte) 114, - (byte) 255, - (byte) 255, - (byte) 141, - (byte) 45, - (byte) 67, - (byte) 218, - (byte) 0, - (byte) 177, - (byte) 128, - (byte) 70, - (byte) 124, - (byte) 79, - (byte) 27, - (byte) 3, - (byte) 0, - (byte) 159, - (byte) 44, - (byte) 184, - (byte) 157, - (byte) 2, - (byte) 59, - (byte) 135, - (byte) 197, - (byte) 125, - (byte) 175, - (byte) 69, - (byte) 253, - (byte) 255, - (byte) 77, - (byte) 40, - (byte) 68, - (byte) 55, - (byte) 3, - (byte) 211, - (byte) 172, - (byte) 162, - (byte) 131, - (byte) 177, - (byte) 229, - (byte) 253, - (byte) 255, - (byte) 20, - (byte) 31, - (byte) 33, - (byte) 16, - (byte) 10, - (byte) 128, - (byte) 178, - (byte) 248, - (byte) 136, - (byte) 116, - (byte) 111, - (byte) 253, - (byte) 255, - (byte) 94, - (byte) 21, - (byte) 42, - (byte) 71, - (byte) 13, - (byte) 182, - (byte) 173, - (byte) 17, - (byte) 135, - (byte) 37, - (byte) 54, - (byte) 3, - (byte) 0, - (byte) 214, - (byte) 27, - (byte) 108, - (byte) 249, - (byte) 22, - (byte) 91, - (byte) 20, - (byte) 114, - (byte) 118, - (byte) 240, - (byte) 47, - (byte) 255, - (byte) 255, - (byte) 129, - (byte) 52, - (byte) 226, - (byte) 58, - (byte) 30, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test3"); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)46,(byte)7,(byte)32,(byte)32,(byte)209,(byte)249,(byte)121,(byte)145,(byte)114,(byte)255,(byte)255,(byte)141,(byte)45,(byte)67,(byte)218,(byte)0,(byte)177,(byte)128,(byte)70,(byte)124,(byte)79,(byte)27,(byte)3,(byte)0,(byte)159,(byte)44,(byte)184,(byte)157,(byte)2,(byte)59,(byte)135,(byte)197,(byte)125,(byte)175,(byte)69,(byte)253,(byte)255,(byte)77,(byte)40,(byte)68,(byte)55,(byte)3,(byte)211,(byte)172,(byte)162,(byte)131,(byte)177,(byte)229,(byte)253,(byte)255,(byte)20,(byte)31,(byte)33,(byte)16,(byte)10,(byte)128,(byte)178,(byte)248,(byte)136,(byte)116,(byte)111,(byte)253,(byte)255,(byte)94,(byte)21,(byte)42,(byte)71,(byte)13,(byte)182,(byte)173,(byte)17,(byte)135,(byte)37,(byte)54,(byte)3,(byte)0,(byte)214,(byte)27,(byte)108,(byte)249,(byte)22,(byte)91,(byte)20,(byte)114,(byte)118,(byte)240,(byte)47,(byte)255,(byte)255,(byte)129,(byte)52,(byte)226,(byte)58,(byte)30, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -817,9 +510,7 @@ public void test3() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -827,9 +518,7 @@ public void test3() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -837,9 +526,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -847,9 +534,7 @@ public void test3() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -36207 + "'", - value.equals(BigInteger.valueOf(-36207L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -36207 + "'", value.equals(BigInteger.valueOf( -36207L ) ) ); } else { value = value.longValue(); expected = -36207L; @@ -857,9 +542,7 @@ public void test3() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2046415136 + "'", - value.equals(BigInteger.valueOf(2046415136L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2046415136 + "'", value.equals(BigInteger.valueOf( 2046415136L ) ) ); } else { value = value.longValue(); expected = 2046415136L; @@ -867,9 +550,7 @@ public void test3() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -877,9 +558,7 @@ public void test3() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 55875 + "'", - value.equals(BigInteger.valueOf(55875L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 55875 + "'", value.equals(BigInteger.valueOf( 55875L ) ) ); } else { value = value.longValue(); expected = 55875L; @@ -887,9 +566,7 @@ public void test3() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -897,9 +574,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -907,9 +582,7 @@ public void test3() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + 203599 + "'", - value.equals(BigInteger.valueOf(203599L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + 203599 + "'", value.equals(BigInteger.valueOf( 203599L ) ) ); } else { value = value.longValue(); expected = 203599L; @@ -917,9 +590,7 @@ public void test3() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2084995249 + "'", - value.equals(BigInteger.valueOf(2084995249L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2084995249 + "'", value.equals(BigInteger.valueOf( 2084995249L ) ) ); } else { value = value.longValue(); expected = 2084995249L; @@ -927,9 +598,7 @@ public void test3() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -937,9 +606,7 @@ public void test3() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 40376 + "'", - value.equals(BigInteger.valueOf(40376L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 40376 + "'", value.equals(BigInteger.valueOf( 40376L ) ) ); } else { value = value.longValue(); expected = 40376L; @@ -947,9 +614,7 @@ public void test3() throws Throwable { } value = msg.obs[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -957,9 +622,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -967,9 +630,7 @@ public void test3() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -178769 + "'", - value.equals(BigInteger.valueOf(-178769L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -178769 + "'", value.equals(BigInteger.valueOf( -178769L ) ) ); } else { value = value.longValue(); expected = -178769L; @@ -977,9 +638,7 @@ public void test3() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2110097211 + "'", - value.equals(BigInteger.valueOf(2110097211L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2110097211 + "'", value.equals(BigInteger.valueOf( 2110097211L ) ) ); } else { value = value.longValue(); expected = 2110097211L; @@ -987,9 +646,7 @@ public void test3() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -997,9 +654,7 @@ public void test3() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 14148 + "'", - value.equals(BigInteger.valueOf(14148L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 14148 + "'", value.equals(BigInteger.valueOf( 14148L ) ) ); } else { value = value.longValue(); expected = 14148L; @@ -1007,9 +662,7 @@ public void test3() throws Throwable { } value = msg.obs[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1017,9 +670,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1027,9 +678,7 @@ public void test3() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + -137807 + "'", - value.equals(BigInteger.valueOf(-137807L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + -137807 + "'", value.equals(BigInteger.valueOf( -137807L ) ) ); } else { value = value.longValue(); expected = -137807L; @@ -1037,9 +686,7 @@ public void test3() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2208476371L + "'", - value.equals(new BigInteger("2208476371"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2208476371L + "'", value.equals( new BigInteger( "2208476371" ) ) ); } else { value = value.longValue(); expected = 2208476371L; @@ -1047,9 +694,7 @@ public void test3() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1057,9 +702,7 @@ public void test3() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 4129 + "'", - value.equals(BigInteger.valueOf(4129L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 4129 + "'", value.equals(BigInteger.valueOf( 4129L ) ) ); } else { value = value.longValue(); expected = 4129L; @@ -1067,9 +710,7 @@ public void test3() throws Throwable { } value = msg.obs[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].prn + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].prn + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1077,9 +718,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1087,9 +726,7 @@ public void test3() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + -168076 + "'", - value.equals(BigInteger.valueOf(-168076L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + -168076 + "'", value.equals(BigInteger.valueOf( -168076L ) ) ); } else { value = value.longValue(); expected = -168076L; @@ -1097,9 +734,7 @@ public void test3() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 2298000000L + "'", - value.equals(new BigInteger("2298000000"))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 2298000000L + "'", value.equals( new BigInteger( "2298000000" ) ) ); } else { value = value.longValue(); expected = 2298000000L; @@ -1107,9 +742,7 @@ public void test3() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1117,9 +750,7 @@ public void test3() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 18218 + "'", - value.equals(BigInteger.valueOf(18218L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 18218 + "'", value.equals(BigInteger.valueOf( 18218L ) ) ); } else { value = value.longValue(); expected = 18218L; @@ -1127,9 +758,7 @@ public void test3() throws Throwable { } value = msg.obs[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1137,9 +766,7 @@ public void test3() throws Throwable { } value = msg.obs[5].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.f + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.f + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1147,9 +774,7 @@ public void test3() throws Throwable { } value = msg.obs[5].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].L.i + "' != '" + 210469 + "'", - value.equals(BigInteger.valueOf(210469L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].L.i + "' != '" + 210469 + "'", value.equals(BigInteger.valueOf( 210469L ) ) ); } else { value = value.longValue(); expected = 210469L; @@ -1157,9 +782,7 @@ public void test3() throws Throwable { } value = msg.obs[5].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].P + "' != '" + 2266082742L + "'", - value.equals(new BigInteger("2266082742"))); + org.junit.Assert.assertTrue("'" + msg.obs[5].P + "' != '" + 2266082742L + "'", value.equals( new BigInteger( "2266082742" ) ) ); } else { value = value.longValue(); expected = 2266082742L; @@ -1167,9 +790,7 @@ public void test3() throws Throwable { } value = msg.obs[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].cn0 + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].cn0 + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1177,9 +798,7 @@ public void test3() throws Throwable { } value = msg.obs[5].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].lock + "' != '" + 63852 + "'", - value.equals(BigInteger.valueOf(63852L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].lock + "' != '" + 63852 + "'", value.equals(BigInteger.valueOf( 63852L ) ) ); } else { value = value.longValue(); expected = 63852L; @@ -1187,9 +806,7 @@ public void test3() throws Throwable { } value = msg.obs[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[5].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.obs[5].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1197,9 +814,7 @@ public void test3() throws Throwable { } value = msg.obs[6].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.f + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.f + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1207,9 +822,7 @@ public void test3() throws Throwable { } value = msg.obs[6].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].L.i + "' != '" + -53264 + "'", - value.equals(BigInteger.valueOf(-53264L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].L.i + "' != '" + -53264 + "'", value.equals(BigInteger.valueOf( -53264L ) ) ); } else { value = value.longValue(); expected = -53264L; @@ -1217,9 +830,7 @@ public void test3() throws Throwable { } value = msg.obs[6].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].P + "' != '" + 1987187803 + "'", - value.equals(BigInteger.valueOf(1987187803L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].P + "' != '" + 1987187803 + "'", value.equals(BigInteger.valueOf( 1987187803L ) ) ); } else { value = value.longValue(); expected = 1987187803L; @@ -1227,9 +838,7 @@ public void test3() throws Throwable { } value = msg.obs[6].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].cn0 + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].cn0 + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -1237,9 +846,7 @@ public void test3() throws Throwable { } value = msg.obs[6].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].lock + "' != '" + 15074 + "'", - value.equals(BigInteger.valueOf(15074L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].lock + "' != '" + 15074 + "'", value.equals(BigInteger.valueOf( 15074L ) ) ); } else { value = value.longValue(); expected = 15074L; @@ -1247,9 +854,7 @@ public void test3() throws Throwable { } value = msg.obs[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[6].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[6].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1261,23 +866,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 159, (byte) 67, (byte) 24, (byte) 46, (byte) 7, (byte) 33, - (byte) 49, (byte) 19, (byte) 164, (byte) 117, (byte) 120, (byte) 32, (byte) 0, - (byte) 0, (byte) 222, (byte) 63, (byte) 62, (byte) 250, (byte) 31, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test4"); + byte[] payload = new byte[] {(byte)0,(byte)159,(byte)67,(byte)24,(byte)46,(byte)7,(byte)33,(byte)49,(byte)19,(byte)164,(byte)117,(byte)120,(byte)32,(byte)0,(byte)0,(byte)222,(byte)63,(byte)62,(byte)250,(byte)31, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1285,9 +884,7 @@ public void test4() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407084800 + "'", - value.equals(BigInteger.valueOf(407084800L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407084800 + "'", value.equals(BigInteger.valueOf( 407084800L ) ) ); } else { value = value.longValue(); expected = 407084800L; @@ -1295,9 +892,7 @@ public void test4() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1305,9 +900,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1315,9 +908,7 @@ public void test4() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + 8312 + "'", - value.equals(BigInteger.valueOf(8312L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + 8312 + "'", value.equals(BigInteger.valueOf( 8312L ) ) ); } else { value = value.longValue(); expected = 8312L; @@ -1325,9 +916,7 @@ public void test4() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 1973687089 + "'", - value.equals(BigInteger.valueOf(1973687089L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 1973687089 + "'", value.equals(BigInteger.valueOf( 1973687089L ) ) ); } else { value = value.longValue(); expected = 1973687089L; @@ -1335,9 +924,7 @@ public void test4() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1345,9 +932,7 @@ public void test4() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 64062 + "'", - value.equals(BigInteger.valueOf(64062L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 64062 + "'", value.equals(BigInteger.valueOf( 64062L ) ) ); } else { value = value.longValue(); expected = 64062L; @@ -1355,9 +940,7 @@ public void test4() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1369,92 +952,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 96, - (byte) 162, - (byte) 68, - (byte) 24, - (byte) 46, - (byte) 7, - (byte) 16, - (byte) 87, - (byte) 132, - (byte) 217, - (byte) 121, - (byte) 121, - (byte) 148, - (byte) 255, - (byte) 255, - (byte) 189, - (byte) 43, - (byte) 175, - (byte) 147, - (byte) 0, - (byte) 132, - (byte) 64, - (byte) 200, - (byte) 125, - (byte) 106, - (byte) 31, - (byte) 254, - (byte) 255, - (byte) 1, - (byte) 41, - (byte) 14, - (byte) 177, - (byte) 3, - (byte) 128, - (byte) 178, - (byte) 248, - (byte) 136, - (byte) 70, - (byte) 68, - (byte) 254, - (byte) 255, - (byte) 166, - (byte) 18, - (byte) 184, - (byte) 133, - (byte) 13, - (byte) 24, - (byte) 127, - (byte) 178, - (byte) 134, - (byte) 6, - (byte) 25, - (byte) 2, - (byte) 0, - (byte) 249, - (byte) 28, - (byte) 33, - (byte) 96, - (byte) 22, - (byte) 170, - (byte) 104, - (byte) 86, - (byte) 118, - (byte) 67, - (byte) 112, - (byte) 255, - (byte) 255, - (byte) 203, - (byte) 56, - (byte) 208, - (byte) 88, - (byte) 30, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test5"); + byte[] payload = new byte[] {(byte)96,(byte)162,(byte)68,(byte)24,(byte)46,(byte)7,(byte)16,(byte)87,(byte)132,(byte)217,(byte)121,(byte)121,(byte)148,(byte)255,(byte)255,(byte)189,(byte)43,(byte)175,(byte)147,(byte)0,(byte)132,(byte)64,(byte)200,(byte)125,(byte)106,(byte)31,(byte)254,(byte)255,(byte)1,(byte)41,(byte)14,(byte)177,(byte)3,(byte)128,(byte)178,(byte)248,(byte)136,(byte)70,(byte)68,(byte)254,(byte)255,(byte)166,(byte)18,(byte)184,(byte)133,(byte)13,(byte)24,(byte)127,(byte)178,(byte)134,(byte)6,(byte)25,(byte)2,(byte)0,(byte)249,(byte)28,(byte)33,(byte)96,(byte)22,(byte)170,(byte)104,(byte)86,(byte)118,(byte)67,(byte)112,(byte)255,(byte)255,(byte)203,(byte)56,(byte)208,(byte)88,(byte)30, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1462,9 +970,7 @@ public void test5() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407151200 + "'", - value.equals(BigInteger.valueOf(407151200L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407151200 + "'", value.equals(BigInteger.valueOf( 407151200L ) ) ); } else { value = value.longValue(); expected = 407151200L; @@ -1472,9 +978,7 @@ public void test5() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1482,9 +986,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1492,9 +994,7 @@ public void test5() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -27527 + "'", - value.equals(BigInteger.valueOf(-27527L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -27527 + "'", value.equals(BigInteger.valueOf( -27527L ) ) ); } else { value = value.longValue(); expected = -27527L; @@ -1502,9 +1002,7 @@ public void test5() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2044298327 + "'", - value.equals(BigInteger.valueOf(2044298327L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2044298327 + "'", value.equals(BigInteger.valueOf( 2044298327L ) ) ); } else { value = value.longValue(); expected = 2044298327L; @@ -1512,9 +1010,7 @@ public void test5() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1522,9 +1018,7 @@ public void test5() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 37807 + "'", - value.equals(BigInteger.valueOf(37807L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 37807 + "'", value.equals(BigInteger.valueOf( 37807L ) ) ); } else { value = value.longValue(); expected = 37807L; @@ -1532,9 +1026,7 @@ public void test5() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1542,9 +1034,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1552,9 +1042,7 @@ public void test5() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + -123030 + "'", - value.equals(BigInteger.valueOf(-123030L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + -123030 + "'", value.equals(BigInteger.valueOf( -123030L ) ) ); } else { value = value.longValue(); expected = -123030L; @@ -1562,9 +1050,7 @@ public void test5() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2110275716 + "'", - value.equals(BigInteger.valueOf(2110275716L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2110275716 + "'", value.equals(BigInteger.valueOf( 2110275716L ) ) ); } else { value = value.longValue(); expected = 2110275716L; @@ -1572,9 +1058,7 @@ public void test5() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1582,9 +1066,7 @@ public void test5() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 45326 + "'", - value.equals(BigInteger.valueOf(45326L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 45326 + "'", value.equals(BigInteger.valueOf( 45326L ) ) ); } else { value = value.longValue(); expected = 45326L; @@ -1592,9 +1074,7 @@ public void test5() throws Throwable { } value = msg.obs[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1602,9 +1082,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1612,9 +1090,7 @@ public void test5() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -113594 + "'", - value.equals(BigInteger.valueOf(-113594L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -113594 + "'", value.equals(BigInteger.valueOf( -113594L ) ) ); } else { value = value.longValue(); expected = -113594L; @@ -1622,9 +1098,7 @@ public void test5() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2298000000L + "'", - value.equals(new BigInteger("2298000000"))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2298000000L + "'", value.equals( new BigInteger( "2298000000" ) ) ); } else { value = value.longValue(); expected = 2298000000L; @@ -1632,9 +1106,7 @@ public void test5() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1642,9 +1114,7 @@ public void test5() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 34232 + "'", - value.equals(BigInteger.valueOf(34232L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 34232 + "'", value.equals(BigInteger.valueOf( 34232L ) ) ); } else { value = value.longValue(); expected = 34232L; @@ -1652,9 +1122,7 @@ public void test5() throws Throwable { } value = msg.obs[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1662,9 +1130,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1672,9 +1138,7 @@ public void test5() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 137478 + "'", - value.equals(BigInteger.valueOf(137478L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 137478 + "'", value.equals(BigInteger.valueOf( 137478L ) ) ); } else { value = value.longValue(); expected = 137478L; @@ -1682,9 +1146,7 @@ public void test5() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2259844888L + "'", - value.equals(new BigInteger("2259844888"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2259844888L + "'", value.equals( new BigInteger( "2259844888" ) ) ); } else { value = value.longValue(); expected = 2259844888L; @@ -1692,9 +1154,7 @@ public void test5() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1702,9 +1162,7 @@ public void test5() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 24609 + "'", - value.equals(BigInteger.valueOf(24609L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 24609 + "'", value.equals(BigInteger.valueOf( 24609L ) ) ); } else { value = value.longValue(); expected = 24609L; @@ -1712,9 +1170,7 @@ public void test5() throws Throwable { } value = msg.obs[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1722,9 +1178,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1732,9 +1186,7 @@ public void test5() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + -36797 + "'", - value.equals(BigInteger.valueOf(-36797L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + -36797 + "'", value.equals(BigInteger.valueOf( -36797L ) ) ); } else { value = value.longValue(); expected = -36797L; @@ -1742,9 +1194,7 @@ public void test5() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1985374378 + "'", - value.equals(BigInteger.valueOf(1985374378L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1985374378 + "'", value.equals(BigInteger.valueOf( 1985374378L ) ) ); } else { value = value.longValue(); expected = 1985374378L; @@ -1752,9 +1202,7 @@ public void test5() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1762,9 +1210,7 @@ public void test5() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 22736 + "'", - value.equals(BigInteger.valueOf(22736L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 22736 + "'", value.equals(BigInteger.valueOf( 22736L ) ) ); } else { value = value.longValue(); expected = 22736L; @@ -1772,9 +1218,7 @@ public void test5() throws Throwable { } value = msg.obs[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1786,92 +1230,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 40, - (byte) 163, - (byte) 68, - (byte) 24, - (byte) 46, - (byte) 7, - (byte) 16, - (byte) 132, - (byte) 107, - (byte) 217, - (byte) 121, - (byte) 14, - (byte) 148, - (byte) 255, - (byte) 255, - (byte) 1, - (byte) 44, - (byte) 175, - (byte) 147, - (byte) 0, - (byte) 129, - (byte) 66, - (byte) 200, - (byte) 125, - (byte) 148, - (byte) 29, - (byte) 254, - (byte) 255, - (byte) 153, - (byte) 41, - (byte) 14, - (byte) 177, - (byte) 3, - (byte) 128, - (byte) 178, - (byte) 248, - (byte) 136, - (byte) 143, - (byte) 66, - (byte) 254, - (byte) 255, - (byte) 222, - (byte) 18, - (byte) 184, - (byte) 133, - (byte) 13, - (byte) 158, - (byte) 53, - (byte) 178, - (byte) 134, - (byte) 42, - (byte) 27, - (byte) 2, - (byte) 0, - (byte) 237, - (byte) 30, - (byte) 33, - (byte) 96, - (byte) 22, - (byte) 38, - (byte) 83, - (byte) 86, - (byte) 118, - (byte) 168, - (byte) 111, - (byte) 255, - (byte) 255, - (byte) 45, - (byte) 56, - (byte) 208, - (byte) 88, - (byte) 30, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x45, payload); - MsgObsDepA msg = new MsgObsDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_observation_msgObsDepATest.test6"); + byte[] payload = new byte[] {(byte)40,(byte)163,(byte)68,(byte)24,(byte)46,(byte)7,(byte)16,(byte)132,(byte)107,(byte)217,(byte)121,(byte)14,(byte)148,(byte)255,(byte)255,(byte)1,(byte)44,(byte)175,(byte)147,(byte)0,(byte)129,(byte)66,(byte)200,(byte)125,(byte)148,(byte)29,(byte)254,(byte)255,(byte)153,(byte)41,(byte)14,(byte)177,(byte)3,(byte)128,(byte)178,(byte)248,(byte)136,(byte)143,(byte)66,(byte)254,(byte)255,(byte)222,(byte)18,(byte)184,(byte)133,(byte)13,(byte)158,(byte)53,(byte)178,(byte)134,(byte)42,(byte)27,(byte)2,(byte)0,(byte)237,(byte)30,(byte)33,(byte)96,(byte)22,(byte)38,(byte)83,(byte)86,(byte)118,(byte)168,(byte)111,(byte)255,(byte)255,(byte)45,(byte)56,(byte)208,(byte)88,(byte)30, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x45, payload ); + MsgObsDepA msg = new MsgObsDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.n_obs + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.header.n_obs + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1879,9 +1248,7 @@ public void test6() throws Throwable { } value = msg.header.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.tow + "' != '" + 407151400 + "'", - value.equals(BigInteger.valueOf(407151400L))); + org.junit.Assert.assertTrue("'" + msg.header.t.tow + "' != '" + 407151400 + "'", value.equals(BigInteger.valueOf( 407151400L ) ) ); } else { value = value.longValue(); expected = 407151400L; @@ -1889,9 +1256,7 @@ public void test6() throws Throwable { } value = msg.header.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.t.wn + "' != '" + 1838 + "'", - value.equals(BigInteger.valueOf(1838L))); + org.junit.Assert.assertTrue("'" + msg.header.t.wn + "' != '" + 1838 + "'", value.equals(BigInteger.valueOf( 1838L ) ) ); } else { value = value.longValue(); expected = 1838L; @@ -1899,9 +1264,7 @@ public void test6() throws Throwable { } value = msg.obs[0].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.f + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.f + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1909,9 +1272,7 @@ public void test6() throws Throwable { } value = msg.obs[0].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].L.i + "' != '" + -27634 + "'", - value.equals(BigInteger.valueOf(-27634L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].L.i + "' != '" + -27634 + "'", value.equals(BigInteger.valueOf( -27634L ) ) ); } else { value = value.longValue(); expected = -27634L; @@ -1919,9 +1280,7 @@ public void test6() throws Throwable { } value = msg.obs[0].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].P + "' != '" + 2044291972 + "'", - value.equals(BigInteger.valueOf(2044291972L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].P + "' != '" + 2044291972 + "'", value.equals(BigInteger.valueOf( 2044291972L ) ) ); } else { value = value.longValue(); expected = 2044291972L; @@ -1929,9 +1288,7 @@ public void test6() throws Throwable { } value = msg.obs[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].cn0 + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].cn0 + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1939,9 +1296,7 @@ public void test6() throws Throwable { } value = msg.obs[0].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].lock + "' != '" + 37807 + "'", - value.equals(BigInteger.valueOf(37807L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].lock + "' != '" + 37807 + "'", value.equals(BigInteger.valueOf( 37807L ) ) ); } else { value = value.longValue(); expected = 37807L; @@ -1949,9 +1304,7 @@ public void test6() throws Throwable { } value = msg.obs[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.obs[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1959,9 +1312,7 @@ public void test6() throws Throwable { } value = msg.obs[1].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.f + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.f + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1969,9 +1320,7 @@ public void test6() throws Throwable { } value = msg.obs[1].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].L.i + "' != '" + -123500 + "'", - value.equals(BigInteger.valueOf(-123500L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].L.i + "' != '" + -123500 + "'", value.equals(BigInteger.valueOf( -123500L ) ) ); } else { value = value.longValue(); expected = -123500L; @@ -1979,9 +1328,7 @@ public void test6() throws Throwable { } value = msg.obs[1].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].P + "' != '" + 2110276225 + "'", - value.equals(BigInteger.valueOf(2110276225L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].P + "' != '" + 2110276225 + "'", value.equals(BigInteger.valueOf( 2110276225L ) ) ); } else { value = value.longValue(); expected = 2110276225L; @@ -1989,9 +1336,7 @@ public void test6() throws Throwable { } value = msg.obs[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].cn0 + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].cn0 + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1999,9 +1344,7 @@ public void test6() throws Throwable { } value = msg.obs[1].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].lock + "' != '" + 45326 + "'", - value.equals(BigInteger.valueOf(45326L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].lock + "' != '" + 45326 + "'", value.equals(BigInteger.valueOf( 45326L ) ) ); } else { value = value.longValue(); expected = 45326L; @@ -2009,9 +1352,7 @@ public void test6() throws Throwable { } value = msg.obs[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[1].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.obs[1].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -2019,9 +1360,7 @@ public void test6() throws Throwable { } value = msg.obs[2].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.f + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.f + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2029,9 +1368,7 @@ public void test6() throws Throwable { } value = msg.obs[2].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].L.i + "' != '" + -114033 + "'", - value.equals(BigInteger.valueOf(-114033L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].L.i + "' != '" + -114033 + "'", value.equals(BigInteger.valueOf( -114033L ) ) ); } else { value = value.longValue(); expected = -114033L; @@ -2039,9 +1376,7 @@ public void test6() throws Throwable { } value = msg.obs[2].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].P + "' != '" + 2298000000L + "'", - value.equals(new BigInteger("2298000000"))); + org.junit.Assert.assertTrue("'" + msg.obs[2].P + "' != '" + 2298000000L + "'", value.equals( new BigInteger( "2298000000" ) ) ); } else { value = value.longValue(); expected = 2298000000L; @@ -2049,9 +1384,7 @@ public void test6() throws Throwable { } value = msg.obs[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].cn0 + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].cn0 + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2059,9 +1392,7 @@ public void test6() throws Throwable { } value = msg.obs[2].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].lock + "' != '" + 34232 + "'", - value.equals(BigInteger.valueOf(34232L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].lock + "' != '" + 34232 + "'", value.equals(BigInteger.valueOf( 34232L ) ) ); } else { value = value.longValue(); expected = 34232L; @@ -2069,9 +1400,7 @@ public void test6() throws Throwable { } value = msg.obs[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[2].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.obs[2].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2079,9 +1408,7 @@ public void test6() throws Throwable { } value = msg.obs[3].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.f + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.f + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -2089,9 +1416,7 @@ public void test6() throws Throwable { } value = msg.obs[3].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].L.i + "' != '" + 138026 + "'", - value.equals(BigInteger.valueOf(138026L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].L.i + "' != '" + 138026 + "'", value.equals(BigInteger.valueOf( 138026L ) ) ); } else { value = value.longValue(); expected = 138026L; @@ -2099,9 +1424,7 @@ public void test6() throws Throwable { } value = msg.obs[3].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].P + "' != '" + 2259826078L + "'", - value.equals(new BigInteger("2259826078"))); + org.junit.Assert.assertTrue("'" + msg.obs[3].P + "' != '" + 2259826078L + "'", value.equals( new BigInteger( "2259826078" ) ) ); } else { value = value.longValue(); expected = 2259826078L; @@ -2109,9 +1432,7 @@ public void test6() throws Throwable { } value = msg.obs[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].cn0 + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].cn0 + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -2119,9 +1440,7 @@ public void test6() throws Throwable { } value = msg.obs[3].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].lock + "' != '" + 24609 + "'", - value.equals(BigInteger.valueOf(24609L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].lock + "' != '" + 24609 + "'", value.equals(BigInteger.valueOf( 24609L ) ) ); } else { value = value.longValue(); expected = 24609L; @@ -2129,9 +1448,7 @@ public void test6() throws Throwable { } value = msg.obs[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[3].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.obs[3].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -2139,9 +1456,7 @@ public void test6() throws Throwable { } value = msg.obs[4].L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.f + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.f + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2149,9 +1464,7 @@ public void test6() throws Throwable { } value = msg.obs[4].L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].L.i + "' != '" + -36952 + "'", - value.equals(BigInteger.valueOf(-36952L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].L.i + "' != '" + -36952 + "'", value.equals(BigInteger.valueOf( -36952L ) ) ); } else { value = value.longValue(); expected = -36952L; @@ -2159,9 +1472,7 @@ public void test6() throws Throwable { } value = msg.obs[4].P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].P + "' != '" + 1985368870 + "'", - value.equals(BigInteger.valueOf(1985368870L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].P + "' != '" + 1985368870 + "'", value.equals(BigInteger.valueOf( 1985368870L ) ) ); } else { value = value.longValue(); expected = 1985368870L; @@ -2169,9 +1480,7 @@ public void test6() throws Throwable { } value = msg.obs[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].cn0 + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].cn0 + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2179,9 +1488,7 @@ public void test6() throws Throwable { } value = msg.obs[4].lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].lock + "' != '" + 22736 + "'", - value.equals(BigInteger.valueOf(22736L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].lock + "' != '" + 22736 + "'", value.equals(BigInteger.valueOf( 22736L ) ) ); } else { value = value.longValue(); expected = 22736L; @@ -2189,9 +1496,7 @@ public void test6() throws Throwable { } value = msg.obs[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs[4].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.obs[4].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; diff --git a/java/test/auto_check_sbp_observation_observation_structsTest.java b/java/test/auto_check_sbp_observation_observation_structsTest.java index b6708b23d3..4b850f2b5c 100644 --- a/java/test/auto_check_sbp_observation_observation_structsTest.java +++ b/java/test/auto_check_sbp_observation_observation_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/observation/test_observation_structs.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/observation/test_observation_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_observation_observation_structsTest { diff --git a/java/test/auto_check_sbp_orientation_MsgAngularRateTest.java b/java/test/auto_check_sbp_orientation_MsgAngularRateTest.java index 58beb9cacd..8c9abda913 100644 --- a/java/test/auto_check_sbp_orientation_MsgAngularRateTest.java +++ b/java/test/auto_check_sbp_orientation_MsgAngularRateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/orientation/test_MsgAngularRate.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/orientation/test_MsgAngularRate.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.orientation.MsgAngularRate; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_orientation_MsgAngularRateTest { @@ -30,21 +34,15 @@ public class auto_check_sbp_orientation_MsgAngularRateTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_orientation_MsgAngularRateTest.test1"); - byte[] payload = - new byte[] { - (byte) 2, (byte) 0, (byte) 0, (byte) 0, (byte) 2, (byte) 0, (byte) 0, (byte) 0, - (byte) 5, (byte) 0, (byte) 0, (byte) 0, (byte) 2, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x222, payload); - MsgAngularRate msg = new MsgAngularRate(sbp); + byte[] payload = new byte[] {(byte)2,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)5,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x222, payload ); + MsgAngularRate msg = new MsgAngularRate( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -52,8 +50,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -61,8 +58,7 @@ public void test1() throws Throwable { } value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -70,8 +66,7 @@ public void test1() throws Throwable { } value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -79,8 +74,7 @@ public void test1() throws Throwable { } value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; diff --git a/java/test/auto_check_sbp_orientation_MsgBaselineHeadingTest.java b/java/test/auto_check_sbp_orientation_MsgBaselineHeadingTest.java index 87a3fa1b75..010bdf2c36 100644 --- a/java/test/auto_check_sbp_orientation_MsgBaselineHeadingTest.java +++ b/java/test/auto_check_sbp_orientation_MsgBaselineHeadingTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/orientation/test_MsgBaselineHeading.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/orientation/test_MsgBaselineHeading.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.orientation.MsgBaselineHeading; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_orientation_MsgBaselineHeadingTest { @@ -30,28 +34,15 @@ public class auto_check_sbp_orientation_MsgBaselineHeadingTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_orientation_MsgBaselineHeadingTest.test1"); - byte[] payload = - new byte[] { - (byte) 156, - (byte) 45, - (byte) 13, - (byte) 196, - (byte) 44, - (byte) 84, - (byte) 197, - (byte) 61, - (byte) 91, - (byte) 91, - }; - SBPMessage sbp = new SBPMessage(0x5dd3, 0x20f, payload); - MsgBaselineHeading msg = new MsgBaselineHeading(sbp); + byte[] payload = new byte[] {(byte)156,(byte)45,(byte)13,(byte)196,(byte)44,(byte)84,(byte)197,(byte)61,(byte)91,(byte)91, }; + SBPMessage sbp = new SBPMessage( 0x5dd3, 0x20f, payload ); + MsgBaselineHeading msg = new MsgBaselineHeading( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 91 + "'", value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -59,9 +50,7 @@ public void test1() throws Throwable { } value = msg.heading; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.heading + "' != '" + 1036342316 + "'", - value.equals(BigInteger.valueOf(1036342316L))); + org.junit.Assert.assertTrue("'" + msg.heading + "' != '" + 1036342316 + "'", value.equals(BigInteger.valueOf( 1036342316L ) ) ); } else { value = value.longValue(); expected = 1036342316L; @@ -69,8 +58,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 91 + "'", value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -78,9 +66,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 3289197980L + "'", - value.equals(new BigInteger("3289197980"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 3289197980L + "'", value.equals( new BigInteger( "3289197980" ) ) ); } else { value = value.longValue(); expected = 3289197980L; diff --git a/java/test/auto_check_sbp_orientation_MsgOrientEulerTest.java b/java/test/auto_check_sbp_orientation_MsgOrientEulerTest.java index 9a62d6031e..e38ef43f29 100644 --- a/java/test/auto_check_sbp_orientation_MsgOrientEulerTest.java +++ b/java/test/auto_check_sbp_orientation_MsgOrientEulerTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/orientation/test_MsgOrientEuler.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/orientation/test_MsgOrientEuler.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.orientation.MsgOrientEuler; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_orientation_MsgOrientEulerTest { @@ -30,47 +34,15 @@ public class auto_check_sbp_orientation_MsgOrientEulerTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_orientation_MsgOrientEulerTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 224, - (byte) 64, - (byte) 3, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x221, payload); - MsgOrientEuler msg = new MsgOrientEuler(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)0,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)224,(byte)64,(byte)0,(byte)0,(byte)64,(byte)64,(byte)0,(byte)0,(byte)224,(byte)64,(byte)3, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x221, payload ); + MsgOrientEuler msg = new MsgOrientEuler( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -78,8 +50,7 @@ public void test1() throws Throwable { } value = msg.pitch; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pitch + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.pitch + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -88,8 +59,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.pitch_accuracy, 3.00000000000000000e+00, DELTA); value = msg.roll; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.roll + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.roll + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -98,8 +68,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.roll_accuracy, 7.00000000000000000e+00, DELTA); value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -107,8 +76,7 @@ public void test1() throws Throwable { } value = msg.yaw; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.yaw + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.yaw + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; diff --git a/java/test/auto_check_sbp_orientation_MsgOrientQuatTest.java b/java/test/auto_check_sbp_orientation_MsgOrientQuatTest.java index c2ab4b87cd..a53a82e1f2 100644 --- a/java/test/auto_check_sbp_orientation_MsgOrientQuatTest.java +++ b/java/test/auto_check_sbp_orientation_MsgOrientQuatTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/orientation/test_MsgOrientQuat.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/orientation/test_MsgOrientQuat.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.orientation.MsgOrientQuat; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_orientation_MsgOrientQuatTest { @@ -30,55 +34,15 @@ public class auto_check_sbp_orientation_MsgOrientQuatTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_orientation_MsgOrientQuatTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 64, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 64, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x220, payload); - MsgOrientQuat msg = new MsgOrientQuat(sbp); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)0,(byte)0,(byte)7,(byte)0,(byte)0,(byte)0,(byte)8,(byte)0,(byte)0,(byte)0,(byte)4,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)64,(byte)64,(byte)0,(byte)0,(byte)128,(byte)64,(byte)0,(byte)0,(byte)0,(byte)65,(byte)0,(byte)0,(byte)64,(byte)64,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x220, payload ); + MsgOrientQuat msg = new MsgOrientQuat( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -86,8 +50,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -95,8 +58,7 @@ public void test1() throws Throwable { } value = msg.w; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.w + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.w + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -105,8 +67,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.w_accuracy, 3.00000000000000000e+00, DELTA); value = msg.x; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.x + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.x + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -115,8 +76,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.x_accuracy, 4.00000000000000000e+00, DELTA); value = msg.y; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.y + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.y + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -125,8 +85,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.y_accuracy, 8.00000000000000000e+00, DELTA); value = msg.z; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.z + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; diff --git a/java/test/auto_check_sbp_piksi_MsgAlmanacTest.java b/java/test/auto_check_sbp_piksi_MsgAlmanacTest.java index 351bd25223..7dbb8542d1 100644 --- a/java/test/auto_check_sbp_piksi_MsgAlmanacTest.java +++ b/java/test/auto_check_sbp_piksi_MsgAlmanacTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgAlmanac.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgAlmanac.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgAlmanac; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgAlmanacTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgAlmanacTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgAlmanacTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x8a6c, 0x69, payload); - MsgAlmanac msg = new MsgAlmanac(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgAlmanacTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x8a6c, 0x69, payload ); + MsgAlmanac msg = new MsgAlmanac( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgCellModemStatusTest.java b/java/test/auto_check_sbp_piksi_MsgCellModemStatusTest.java index 0b8734c99e..18bb0ead71 100644 --- a/java/test/auto_check_sbp_piksi_MsgCellModemStatusTest.java +++ b/java/test/auto_check_sbp_piksi_MsgCellModemStatusTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCellModemStatus.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCellModemStatus.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgCellModemStatus; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgCellModemStatusTest { @@ -27,275 +32,17 @@ public class auto_check_sbp_piksi_MsgCellModemStatusTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCellModemStatusTest.test1"); - byte[] payload = - new byte[] { - (byte) 103, - (byte) 205, - (byte) 48, - (byte) 6, - (byte) 70, - (byte) 123, - (byte) 242, - (byte) 46, - (byte) 52, - (byte) 64, - (byte) 176, - (byte) 154, - (byte) 98, - (byte) 43, - (byte) 132, - (byte) 196, - (byte) 89, - (byte) 253, - (byte) 161, - (byte) 250, - (byte) 174, - (byte) 204, - (byte) 110, - (byte) 47, - (byte) 38, - (byte) 187, - (byte) 63, - (byte) 102, - (byte) 177, - (byte) 162, - (byte) 49, - (byte) 80, - (byte) 194, - (byte) 37, - (byte) 107, - (byte) 60, - (byte) 225, - (byte) 52, - (byte) 101, - (byte) 178, - (byte) 142, - (byte) 246, - (byte) 21, - (byte) 17, - (byte) 93, - (byte) 75, - (byte) 169, - (byte) 86, - (byte) 16, - (byte) 209, - (byte) 80, - (byte) 243, - (byte) 30, - (byte) 206, - (byte) 220, - (byte) 206, - (byte) 115, - (byte) 47, - (byte) 154, - (byte) 91, - (byte) 227, - (byte) 88, - (byte) 11, - (byte) 1, - (byte) 85, - (byte) 146, - (byte) 100, - (byte) 190, - (byte) 232, - (byte) 207, - (byte) 61, - (byte) 61, - (byte) 201, - (byte) 220, - (byte) 31, - (byte) 78, - (byte) 34, - (byte) 57, - (byte) 82, - (byte) 59, - (byte) 104, - (byte) 65, - (byte) 221, - (byte) 0, - (byte) 43, - (byte) 210, - (byte) 9, - (byte) 32, - (byte) 122, - (byte) 29, - (byte) 237, - (byte) 11, - (byte) 151, - (byte) 223, - (byte) 18, - (byte) 81, - (byte) 204, - (byte) 172, - (byte) 234, - (byte) 127, - (byte) 3, - (byte) 82, - (byte) 133, - (byte) 169, - (byte) 12, - (byte) 176, - (byte) 193, - (byte) 0, - (byte) 24, - (byte) 121, - (byte) 85, - (byte) 55, - (byte) 214, - (byte) 198, - (byte) 75, - (byte) 234, - (byte) 179, - (byte) 214, - (byte) 85, - (byte) 94, - (byte) 115, - (byte) 21, - (byte) 73, - (byte) 121, - (byte) 75, - (byte) 46, - (byte) 158, - (byte) 63, - (byte) 100, - (byte) 122, - (byte) 213, - (byte) 20, - (byte) 85, - (byte) 212, - (byte) 131, - (byte) 50, - (byte) 224, - (byte) 218, - (byte) 215, - (byte) 215, - (byte) 149, - (byte) 2, - (byte) 19, - (byte) 129, - (byte) 39, - (byte) 164, - (byte) 5, - (byte) 175, - (byte) 6, - (byte) 62, - (byte) 51, - (byte) 78, - (byte) 66, - (byte) 248, - (byte) 116, - (byte) 88, - (byte) 90, - (byte) 128, - (byte) 226, - (byte) 177, - (byte) 0, - (byte) 47, - (byte) 140, - (byte) 33, - (byte) 126, - (byte) 221, - (byte) 110, - (byte) 144, - (byte) 97, - (byte) 74, - (byte) 250, - (byte) 181, - (byte) 199, - (byte) 27, - (byte) 176, - (byte) 65, - (byte) 185, - (byte) 110, - (byte) 92, - (byte) 34, - (byte) 44, - (byte) 131, - (byte) 96, - (byte) 178, - (byte) 40, - (byte) 176, - (byte) 4, - (byte) 90, - (byte) 36, - (byte) 7, - (byte) 180, - (byte) 244, - (byte) 244, - (byte) 23, - (byte) 108, - (byte) 171, - (byte) 204, - (byte) 196, - (byte) 61, - (byte) 51, - (byte) 179, - (byte) 242, - (byte) 156, - (byte) 81, - (byte) 83, - (byte) 16, - (byte) 15, - (byte) 134, - (byte) 40, - (byte) 245, - (byte) 253, - (byte) 150, - (byte) 94, - (byte) 150, - (byte) 144, - (byte) 197, - (byte) 113, - (byte) 5, - (byte) 141, - (byte) 232, - (byte) 33, - (byte) 101, - (byte) 231, - (byte) 38, - (byte) 75, - (byte) 178, - (byte) 243, - (byte) 119, - (byte) 1, - (byte) 248, - (byte) 218, - (byte) 86, - (byte) 7, - (byte) 88, - (byte) 197, - (byte) 148, - (byte) 240, - (byte) 227, - (byte) 2, - (byte) 65, - (byte) 173, - (byte) 122, - (byte) 143, - (byte) 251, - (byte) 156, - (byte) 217, - (byte) 67, - (byte) 239, - (byte) 219, - (byte) 31, - (byte) 224, - (byte) 176, - (byte) 129, - (byte) 81, - (byte) 80, - }; - SBPMessage sbp = new SBPMessage(0x1b13, 0xbe, payload); - MsgCellModemStatus msg = new MsgCellModemStatus(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCellModemStatusTest.test1"); + byte[] payload = new byte[] {(byte)103,(byte)205,(byte)48,(byte)6,(byte)70,(byte)123,(byte)242,(byte)46,(byte)52,(byte)64,(byte)176,(byte)154,(byte)98,(byte)43,(byte)132,(byte)196,(byte)89,(byte)253,(byte)161,(byte)250,(byte)174,(byte)204,(byte)110,(byte)47,(byte)38,(byte)187,(byte)63,(byte)102,(byte)177,(byte)162,(byte)49,(byte)80,(byte)194,(byte)37,(byte)107,(byte)60,(byte)225,(byte)52,(byte)101,(byte)178,(byte)142,(byte)246,(byte)21,(byte)17,(byte)93,(byte)75,(byte)169,(byte)86,(byte)16,(byte)209,(byte)80,(byte)243,(byte)30,(byte)206,(byte)220,(byte)206,(byte)115,(byte)47,(byte)154,(byte)91,(byte)227,(byte)88,(byte)11,(byte)1,(byte)85,(byte)146,(byte)100,(byte)190,(byte)232,(byte)207,(byte)61,(byte)61,(byte)201,(byte)220,(byte)31,(byte)78,(byte)34,(byte)57,(byte)82,(byte)59,(byte)104,(byte)65,(byte)221,(byte)0,(byte)43,(byte)210,(byte)9,(byte)32,(byte)122,(byte)29,(byte)237,(byte)11,(byte)151,(byte)223,(byte)18,(byte)81,(byte)204,(byte)172,(byte)234,(byte)127,(byte)3,(byte)82,(byte)133,(byte)169,(byte)12,(byte)176,(byte)193,(byte)0,(byte)24,(byte)121,(byte)85,(byte)55,(byte)214,(byte)198,(byte)75,(byte)234,(byte)179,(byte)214,(byte)85,(byte)94,(byte)115,(byte)21,(byte)73,(byte)121,(byte)75,(byte)46,(byte)158,(byte)63,(byte)100,(byte)122,(byte)213,(byte)20,(byte)85,(byte)212,(byte)131,(byte)50,(byte)224,(byte)218,(byte)215,(byte)215,(byte)149,(byte)2,(byte)19,(byte)129,(byte)39,(byte)164,(byte)5,(byte)175,(byte)6,(byte)62,(byte)51,(byte)78,(byte)66,(byte)248,(byte)116,(byte)88,(byte)90,(byte)128,(byte)226,(byte)177,(byte)0,(byte)47,(byte)140,(byte)33,(byte)126,(byte)221,(byte)110,(byte)144,(byte)97,(byte)74,(byte)250,(byte)181,(byte)199,(byte)27,(byte)176,(byte)65,(byte)185,(byte)110,(byte)92,(byte)34,(byte)44,(byte)131,(byte)96,(byte)178,(byte)40,(byte)176,(byte)4,(byte)90,(byte)36,(byte)7,(byte)180,(byte)244,(byte)244,(byte)23,(byte)108,(byte)171,(byte)204,(byte)196,(byte)61,(byte)51,(byte)179,(byte)242,(byte)156,(byte)81,(byte)83,(byte)16,(byte)15,(byte)134,(byte)40,(byte)245,(byte)253,(byte)150,(byte)94,(byte)150,(byte)144,(byte)197,(byte)113,(byte)5,(byte)141,(byte)232,(byte)33,(byte)101,(byte)231,(byte)38,(byte)75,(byte)178,(byte)243,(byte)119,(byte)1,(byte)248,(byte)218,(byte)86,(byte)7,(byte)88,(byte)197,(byte)148,(byte)240,(byte)227,(byte)2,(byte)65,(byte)173,(byte)122,(byte)143,(byte)251,(byte)156,(byte)217,(byte)67,(byte)239,(byte)219,(byte)31,(byte)224,(byte)176,(byte)129,(byte)81,(byte)80, }; + SBPMessage sbp = new SBPMessage( 0x1b13, 0xbe, payload ); + MsgCellModemStatus msg = new MsgCellModemStatus( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.reserved[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[0] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.reserved[0] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.reserved[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[1] + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.reserved[1] + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.reserved[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[2] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.reserved[2] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.reserved[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[3] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.reserved[3] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.reserved[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[4] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.reserved[4] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.reserved[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[5] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.reserved[5] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.reserved[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[6] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.reserved[6] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.reserved[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[7] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.reserved[7] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.reserved[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[8] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.reserved[8] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.reserved[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[9] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.reserved[9] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.reserved[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[10] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.reserved[10] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.reserved[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[11] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.reserved[11] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.reserved[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[12] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.reserved[12] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.reserved[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[13] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.reserved[13] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.reserved[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[14] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.reserved[14] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.reserved[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[15] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.reserved[15] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.reserved[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[16] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.reserved[16] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.reserved[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[17] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.reserved[17] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.reserved[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[18] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.reserved[18] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.reserved[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[19] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.reserved[19] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.reserved[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[20] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.reserved[20] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.reserved[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[21] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.reserved[21] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.reserved[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[22] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.reserved[22] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.reserved[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[23] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.reserved[23] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.reserved[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[24] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.reserved[24] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.reserved[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[25] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.reserved[25] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.reserved[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[26] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.reserved[26] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.reserved[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[27] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.reserved[27] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.reserved[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[28] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.reserved[28] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.reserved[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[29] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.reserved[29] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.reserved[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[30] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.reserved[30] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.reserved[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[31] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.reserved[31] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.reserved[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[32] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.reserved[32] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.reserved[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[33] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.reserved[33] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.reserved[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[34] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.reserved[34] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.reserved[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[35] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.reserved[35] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.reserved[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[36] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.reserved[36] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.reserved[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[37] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.reserved[37] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.reserved[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[38] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.reserved[38] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.reserved[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[39] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.reserved[39] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.reserved[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[40] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.reserved[40] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.reserved[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[41] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.reserved[41] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.reserved[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[42] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.reserved[42] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.reserved[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[43] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.reserved[43] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.reserved[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[44] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.reserved[44] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.reserved[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[45] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.reserved[45] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.reserved[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[46] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.reserved[46] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.reserved[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[47] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.reserved[47] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.reserved[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[48] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.reserved[48] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.reserved[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[49] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.reserved[49] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.reserved[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[50] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.reserved[50] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.reserved[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[51] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.reserved[51] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.reserved[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[52] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.reserved[52] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.reserved[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[53] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.reserved[53] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.reserved[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[54] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.reserved[54] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.reserved[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[55] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.reserved[55] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.reserved[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[56] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.reserved[56] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.reserved[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[57] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.reserved[57] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.reserved[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[58] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.reserved[58] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.reserved[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[59] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.reserved[59] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.reserved[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[60] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.reserved[60] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.reserved[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[61] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.reserved[61] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.reserved[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[62] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.reserved[62] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.reserved[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[63] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.reserved[63] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.reserved[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[64] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.reserved[64] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.reserved[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[65] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.reserved[65] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.reserved[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[66] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.reserved[66] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.reserved[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[67] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.reserved[67] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.reserved[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[68] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.reserved[68] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.reserved[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[69] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.reserved[69] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.reserved[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[70] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.reserved[70] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.reserved[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[71] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.reserved[71] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.reserved[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[72] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.reserved[72] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.reserved[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[73] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.reserved[73] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.reserved[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[74] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.reserved[74] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.reserved[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[75] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.reserved[75] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.reserved[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[76] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.reserved[76] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.reserved[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[77] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.reserved[77] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.reserved[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[78] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[78] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.reserved[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[79] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.reserved[79] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.reserved[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[80] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.reserved[80] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.reserved[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[81] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.reserved[81] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.reserved[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[82] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.reserved[82] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.reserved[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[83] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.reserved[83] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.reserved[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[84] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.reserved[84] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.reserved[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[85] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.reserved[85] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.reserved[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[86] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.reserved[86] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.reserved[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[87] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.reserved[87] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.reserved[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[88] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.reserved[88] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.reserved[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[89] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.reserved[89] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.reserved[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[90] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.reserved[90] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.reserved[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[91] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.reserved[91] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.reserved[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[92] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.reserved[92] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.reserved[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[93] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.reserved[93] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.reserved[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[94] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.reserved[94] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.reserved[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[95] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.reserved[95] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.reserved[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[96] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.reserved[96] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.reserved[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[97] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.reserved[97] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.reserved[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[98] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.reserved[98] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.reserved[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[99] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.reserved[99] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.reserved[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[100] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.reserved[100] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.reserved[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[101] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.reserved[101] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.reserved[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[102] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[102] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.reserved[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[103] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.reserved[103] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.reserved[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[104] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.reserved[104] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.reserved[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[105] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.reserved[105] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.reserved[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[106] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.reserved[106] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.reserved[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[107] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.reserved[107] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.reserved[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[108] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.reserved[108] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.reserved[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[109] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.reserved[109] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.reserved[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[110] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.reserved[110] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.reserved[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[111] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.reserved[111] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.reserved[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[112] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.reserved[112] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.reserved[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[113] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.reserved[113] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.reserved[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[114] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.reserved[114] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.reserved[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[115] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.reserved[115] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.reserved[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[116] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.reserved[116] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.reserved[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[117] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.reserved[117] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.reserved[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[118] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.reserved[118] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.reserved[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[119] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.reserved[119] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.reserved[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[120] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.reserved[120] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.reserved[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[121] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.reserved[121] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.reserved[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[122] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.reserved[122] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.reserved[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[123] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.reserved[123] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.reserved[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[124] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.reserved[124] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.reserved[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[125] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.reserved[125] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.reserved[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[126] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.reserved[126] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.reserved[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[127] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.reserved[127] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.reserved[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[128] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.reserved[128] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.reserved[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[129] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.reserved[129] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.reserved[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[130] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.reserved[130] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.reserved[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[131] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.reserved[131] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.reserved[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[132] + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.reserved[132] + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.reserved[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[133] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.reserved[133] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.reserved[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[134] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.reserved[134] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.reserved[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[135] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.reserved[135] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.reserved[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[136] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.reserved[136] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.reserved[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[137] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.reserved[137] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.reserved[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[138] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.reserved[138] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.reserved[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[139] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.reserved[139] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.reserved[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[140] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.reserved[140] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.reserved[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[141] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.reserved[141] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.reserved[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[142] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.reserved[142] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.reserved[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[143] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.reserved[143] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.reserved[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[144] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.reserved[144] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.reserved[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[145] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.reserved[145] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.reserved[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[146] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.reserved[146] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.reserved[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[147] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.reserved[147] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.reserved[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[148] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.reserved[148] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.reserved[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[149] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.reserved[149] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.reserved[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[150] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.reserved[150] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.reserved[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[151] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.reserved[151] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.reserved[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[152] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.reserved[152] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.reserved[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[153] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.reserved[153] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.reserved[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[154] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.reserved[154] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.reserved[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[155] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved[155] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.reserved[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[156] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.reserved[156] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.reserved[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[157] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.reserved[157] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1873,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.reserved[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[158] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.reserved[158] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1883,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.reserved[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[159] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.reserved[159] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1893,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.reserved[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[160] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.reserved[160] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1903,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.reserved[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[161] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.reserved[161] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1913,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.reserved[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[162] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.reserved[162] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -1923,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.reserved[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[163] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.reserved[163] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1933,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.reserved[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[164] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.reserved[164] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1943,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.reserved[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[165] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.reserved[165] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -1953,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.reserved[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[166] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.reserved[166] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1963,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.reserved[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[167] + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.reserved[167] + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -1973,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.reserved[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[168] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.reserved[168] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1983,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.reserved[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[169] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.reserved[169] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1993,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.reserved[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[170] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.reserved[170] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2003,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.reserved[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[171] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.reserved[171] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -2013,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.reserved[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[172] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.reserved[172] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -2023,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.reserved[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[173] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.reserved[173] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2033,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.reserved[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[174] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.reserved[174] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -2043,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.reserved[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[175] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.reserved[175] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -2053,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.reserved[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[176] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.reserved[176] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -2063,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.reserved[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[177] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.reserved[177] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2073,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.reserved[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[178] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.reserved[178] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -2083,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.reserved[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[179] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.reserved[179] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -2093,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.reserved[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[180] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.reserved[180] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -2103,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.reserved[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[181] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.reserved[181] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2113,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.reserved[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[182] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.reserved[182] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -2123,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.reserved[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[183] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.reserved[183] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2133,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.reserved[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[184] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.reserved[184] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2143,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.reserved[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[185] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.reserved[185] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2153,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.reserved[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[186] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.reserved[186] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2163,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.reserved[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[187] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.reserved[187] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2173,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.reserved[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[188] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.reserved[188] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -2183,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.reserved[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[189] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.reserved[189] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -2193,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.reserved[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[190] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.reserved[190] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -2203,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.reserved[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[191] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.reserved[191] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -2213,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.reserved[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[192] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.reserved[192] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -2223,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.reserved[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[193] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.reserved[193] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -2233,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.reserved[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[194] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.reserved[194] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2243,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.reserved[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[195] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.reserved[195] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -2253,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.reserved[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[196] + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.reserved[196] + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -2263,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.reserved[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[197] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.reserved[197] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -2273,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.reserved[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[198] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.reserved[198] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -2283,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.reserved[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[199] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.reserved[199] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2293,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.reserved[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[200] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.reserved[200] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -2303,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.reserved[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[201] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.reserved[201] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2313,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.reserved[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[202] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.reserved[202] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2323,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.reserved[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[203] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.reserved[203] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -2333,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.reserved[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[204] + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.reserved[204] + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -2343,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.reserved[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[205] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.reserved[205] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -2353,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.reserved[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[206] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.reserved[206] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -2363,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.reserved[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[207] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.reserved[207] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -2373,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.reserved[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[208] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.reserved[208] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -2383,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.reserved[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[209] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.reserved[209] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2393,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.reserved[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[210] + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.reserved[210] + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -2403,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.reserved[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[211] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.reserved[211] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2413,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.reserved[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[212] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.reserved[212] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2423,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.reserved[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[213] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.reserved[213] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -2433,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.reserved[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[214] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.reserved[214] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -2443,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.reserved[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[215] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.reserved[215] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -2453,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.reserved[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[216] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.reserved[216] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -2463,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.reserved[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[217] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.reserved[217] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -2473,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.reserved[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[218] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.reserved[218] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2483,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.reserved[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[219] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.reserved[219] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -2493,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.reserved[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[220] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.reserved[220] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -2503,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.reserved[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[221] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.reserved[221] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -2513,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.reserved[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[222] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.reserved[222] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2523,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.reserved[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[223] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.reserved[223] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2533,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.reserved[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[224] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.reserved[224] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -2543,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.reserved[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[225] + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.reserved[225] + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -2553,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.reserved[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[226] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.reserved[226] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -2563,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.reserved[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[227] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.reserved[227] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2573,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.reserved[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[228] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.reserved[228] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2583,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.reserved[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[229] + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.reserved[229] + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -2593,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.reserved[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[230] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.reserved[230] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2603,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.reserved[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[231] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.reserved[231] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -2613,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.reserved[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[232] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.reserved[232] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -2623,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.reserved[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[233] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.reserved[233] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2633,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.reserved[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[234] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.reserved[234] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2643,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.reserved[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[235] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.reserved[235] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -2653,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.reserved[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[236] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.reserved[236] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -2663,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.reserved[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[237] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.reserved[237] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -2673,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.reserved[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[238] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.reserved[238] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -2683,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.reserved[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[239] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.reserved[239] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -2693,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.reserved[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[240] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.reserved[240] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2703,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.reserved[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[241] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.reserved[241] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2713,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.reserved[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[242] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.reserved[242] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2723,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.reserved[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[243] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.reserved[243] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -2733,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.reserved[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[244] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.reserved[244] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -2743,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.reserved[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[245] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.reserved[245] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -2753,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.reserved[246]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[246] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.reserved[246] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -2763,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.reserved[247]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[247] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.reserved[247] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2773,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.reserved[248]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[248] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.reserved[248] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -2783,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.reserved[249]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved[249] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.reserved[249] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -2794,9 +2043,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.signal_error_rate, 8.58820019531250000e+03, DELTA); value = msg.signal_strength; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signal_strength + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.signal_strength + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; diff --git a/java/test/auto_check_sbp_piksi_MsgCommandOutputTest.java b/java/test/auto_check_sbp_piksi_MsgCommandOutputTest.java index e2d82585f5..fe1d85d607 100644 --- a/java/test/auto_check_sbp_piksi_MsgCommandOutputTest.java +++ b/java/test/auto_check_sbp_piksi_MsgCommandOutputTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCommandOutput.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCommandOutput.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgCommandOutput; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgCommandOutputTest { @@ -27,25 +32,18 @@ public class auto_check_sbp_piksi_MsgCommandOutputTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCommandOutputTest.test1"); - byte[] payload = - new byte[] { - (byte) 126, (byte) 164, (byte) 116, (byte) 149, (byte) 83, (byte) 111, - (byte) 109, (byte) 101, (byte) 32, (byte) 111, (byte) 117, (byte) 116, - (byte) 112, (byte) 117, (byte) 116, (byte) 32, (byte) 116, (byte) 101, - (byte) 120, (byte) 116, - }; - SBPMessage sbp = new SBPMessage(0x5432, 0xbc, payload); - MsgCommandOutput msg = new MsgCommandOutput(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCommandOutputTest.test1"); + byte[] payload = new byte[] {(byte)126,(byte)164,(byte)116,(byte)149,(byte)83,(byte)111,(byte)109,(byte)101,(byte)32,(byte)111,(byte)117,(byte)116,(byte)112,(byte)117,(byte)116,(byte)32,(byte)116,(byte)101,(byte)120,(byte)116, }; + SBPMessage sbp = new SBPMessage( 0x5432, 0xbc, payload ); + MsgCommandOutput msg = new MsgCommandOutput( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; - org.junit.Assert.assertEquals(msg.line, "Some output text"); + org.junit.Assert.assertEquals(msg.line, "Some output text" ); value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 2507449470L + "'", - value.equals(new BigInteger("2507449470"))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 2507449470L + "'", value.equals( new BigInteger( "2507449470" ) ) ); } else { value = value.longValue(); expected = 2507449470L; diff --git a/java/test/auto_check_sbp_piksi_MsgCommandReqTest.java b/java/test/auto_check_sbp_piksi_MsgCommandReqTest.java index bc9a720eee..769de1f012 100644 Binary files a/java/test/auto_check_sbp_piksi_MsgCommandReqTest.java and b/java/test/auto_check_sbp_piksi_MsgCommandReqTest.java differ diff --git a/java/test/auto_check_sbp_piksi_MsgCommandRespTest.java b/java/test/auto_check_sbp_piksi_MsgCommandRespTest.java index e3feef8f06..7ecd97237c 100644 --- a/java/test/auto_check_sbp_piksi_MsgCommandRespTest.java +++ b/java/test/auto_check_sbp_piksi_MsgCommandRespTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCommandResp.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCommandResp.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgCommandResp; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgCommandRespTest { @@ -27,28 +32,17 @@ public class auto_check_sbp_piksi_MsgCommandRespTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCommandRespTest.test1"); - byte[] payload = - new byte[] { - (byte) 118, - (byte) 215, - (byte) 131, - (byte) 160, - (byte) 210, - (byte) 110, - (byte) 150, - (byte) 103, - }; - SBPMessage sbp = new SBPMessage(0xce39, 0xb9, payload); - MsgCommandResp msg = new MsgCommandResp(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCommandRespTest.test1"); + byte[] payload = new byte[] {(byte)118,(byte)215,(byte)131,(byte)160,(byte)210,(byte)110,(byte)150,(byte)103, }; + SBPMessage sbp = new SBPMessage( 0xce39, 0xb9, payload ); + MsgCommandResp msg = new MsgCommandResp( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.code + "' != '" + 1737912018 + "'", - value.equals(BigInteger.valueOf(1737912018L))); + org.junit.Assert.assertTrue("'" + msg.code + "' != '" + 1737912018 + "'", value.equals(BigInteger.valueOf( 1737912018L ) ) ); } else { value = value.longValue(); expected = 1737912018L; @@ -56,9 +50,7 @@ public void test1() throws Throwable { } value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 2692994934L + "'", - value.equals(new BigInteger("2692994934"))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 2692994934L + "'", value.equals( new BigInteger( "2692994934" ) ) ); } else { value = value.longValue(); expected = 2692994934L; diff --git a/java/test/auto_check_sbp_piksi_MsgCwResultsTest.java b/java/test/auto_check_sbp_piksi_MsgCwResultsTest.java index a60321140e..4cca24d39c 100644 --- a/java/test/auto_check_sbp_piksi_MsgCwResultsTest.java +++ b/java/test/auto_check_sbp_piksi_MsgCwResultsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCwResults.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCwResults.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgCwResults; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgCwResultsTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgCwResultsTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCwResultsTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xf663, 0xc0, payload); - MsgCwResults msg = new MsgCwResults(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCwResultsTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xf663, 0xc0, payload ); + MsgCwResults msg = new MsgCwResults( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgCwStartTest.java b/java/test/auto_check_sbp_piksi_MsgCwStartTest.java index b6a89dc0c7..8b6055de9d 100644 --- a/java/test/auto_check_sbp_piksi_MsgCwStartTest.java +++ b/java/test/auto_check_sbp_piksi_MsgCwStartTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCwStart.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgCwStart.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgCwStart; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgCwStartTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgCwStartTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCwStartTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xb31e, 0xc1, payload); - MsgCwStart msg = new MsgCwStart(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgCwStartTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xb31e, 0xc1, payload ); + MsgCwStart msg = new MsgCwStart( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgDeviceMonitorTest.java b/java/test/auto_check_sbp_piksi_MsgDeviceMonitorTest.java index 9030f9cc81..b532ea5101 100644 --- a/java/test/auto_check_sbp_piksi_MsgDeviceMonitorTest.java +++ b/java/test/auto_check_sbp_piksi_MsgDeviceMonitorTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgDeviceMonitor.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgDeviceMonitor.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgDeviceMonitor; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgDeviceMonitorTest { @@ -27,30 +32,17 @@ public class auto_check_sbp_piksi_MsgDeviceMonitorTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test1"); - byte[] payload = - new byte[] { - (byte) 241, - (byte) 216, - (byte) 219, - (byte) 3, - (byte) 253, - (byte) 6, - (byte) 21, - (byte) 24, - (byte) 168, - (byte) 18, - }; - SBPMessage sbp = new SBPMessage(0x425f, 0xb5, payload); - MsgDeviceMonitor msg = new MsgDeviceMonitor(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test1"); + byte[] payload = new byte[] {(byte)241,(byte)216,(byte)219,(byte)3,(byte)253,(byte)6,(byte)21,(byte)24,(byte)168,(byte)18, }; + SBPMessage sbp = new SBPMessage( 0x425f, 0xb5, payload ); + MsgDeviceMonitor msg = new MsgDeviceMonitor( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cpu_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_temperature + "' != '" + 6165 + "'", - value.equals(BigInteger.valueOf(6165L))); + org.junit.Assert.assertTrue("'" + msg.cpu_temperature + "' != '" + 6165 + "'", value.equals(BigInteger.valueOf( 6165L ) ) ); } else { value = value.longValue(); expected = 6165L; @@ -58,9 +50,7 @@ public void test1() throws Throwable { } value = msg.cpu_vaux; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vaux + "' != '" + 1789 + "'", - value.equals(BigInteger.valueOf(1789L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vaux + "' != '" + 1789 + "'", value.equals(BigInteger.valueOf( 1789L ) ) ); } else { value = value.longValue(); expected = 1789L; @@ -68,9 +58,7 @@ public void test1() throws Throwable { } value = msg.cpu_vint; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vint + "' != '" + 987 + "'", - value.equals(BigInteger.valueOf(987L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vint + "' != '" + 987 + "'", value.equals(BigInteger.valueOf( 987L ) ) ); } else { value = value.longValue(); expected = 987L; @@ -78,9 +66,7 @@ public void test1() throws Throwable { } value = msg.dev_vin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dev_vin + "' != '" + -9999 + "'", - value.equals(BigInteger.valueOf(-9999L))); + org.junit.Assert.assertTrue("'" + msg.dev_vin + "' != '" + -9999 + "'", value.equals(BigInteger.valueOf( -9999L ) ) ); } else { value = value.longValue(); expected = -9999L; @@ -88,9 +74,7 @@ public void test1() throws Throwable { } value = msg.fe_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fe_temperature + "' != '" + 4776 + "'", - value.equals(BigInteger.valueOf(4776L))); + org.junit.Assert.assertTrue("'" + msg.fe_temperature + "' != '" + 4776 + "'", value.equals(BigInteger.valueOf( 4776L ) ) ); } else { value = value.longValue(); expected = 4776L; @@ -102,30 +86,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test2"); - byte[] payload = - new byte[] { - (byte) 241, - (byte) 216, - (byte) 219, - (byte) 3, - (byte) 254, - (byte) 6, - (byte) 24, - (byte) 24, - (byte) 168, - (byte) 18, - }; - SBPMessage sbp = new SBPMessage(0x425f, 0xb5, payload); - MsgDeviceMonitor msg = new MsgDeviceMonitor(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test2"); + byte[] payload = new byte[] {(byte)241,(byte)216,(byte)219,(byte)3,(byte)254,(byte)6,(byte)24,(byte)24,(byte)168,(byte)18, }; + SBPMessage sbp = new SBPMessage( 0x425f, 0xb5, payload ); + MsgDeviceMonitor msg = new MsgDeviceMonitor( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cpu_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_temperature + "' != '" + 6168 + "'", - value.equals(BigInteger.valueOf(6168L))); + org.junit.Assert.assertTrue("'" + msg.cpu_temperature + "' != '" + 6168 + "'", value.equals(BigInteger.valueOf( 6168L ) ) ); } else { value = value.longValue(); expected = 6168L; @@ -133,9 +104,7 @@ public void test2() throws Throwable { } value = msg.cpu_vaux; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vaux + "' != '" + 1790 + "'", - value.equals(BigInteger.valueOf(1790L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vaux + "' != '" + 1790 + "'", value.equals(BigInteger.valueOf( 1790L ) ) ); } else { value = value.longValue(); expected = 1790L; @@ -143,9 +112,7 @@ public void test2() throws Throwable { } value = msg.cpu_vint; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vint + "' != '" + 987 + "'", - value.equals(BigInteger.valueOf(987L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vint + "' != '" + 987 + "'", value.equals(BigInteger.valueOf( 987L ) ) ); } else { value = value.longValue(); expected = 987L; @@ -153,9 +120,7 @@ public void test2() throws Throwable { } value = msg.dev_vin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dev_vin + "' != '" + -9999 + "'", - value.equals(BigInteger.valueOf(-9999L))); + org.junit.Assert.assertTrue("'" + msg.dev_vin + "' != '" + -9999 + "'", value.equals(BigInteger.valueOf( -9999L ) ) ); } else { value = value.longValue(); expected = -9999L; @@ -163,9 +128,7 @@ public void test2() throws Throwable { } value = msg.fe_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fe_temperature + "' != '" + 4776 + "'", - value.equals(BigInteger.valueOf(4776L))); + org.junit.Assert.assertTrue("'" + msg.fe_temperature + "' != '" + 4776 + "'", value.equals(BigInteger.valueOf( 4776L ) ) ); } else { value = value.longValue(); expected = 4776L; @@ -177,30 +140,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test3"); - byte[] payload = - new byte[] { - (byte) 241, - (byte) 216, - (byte) 219, - (byte) 3, - (byte) 253, - (byte) 6, - (byte) 22, - (byte) 24, - (byte) 168, - (byte) 18, - }; - SBPMessage sbp = new SBPMessage(0x425f, 0xb5, payload); - MsgDeviceMonitor msg = new MsgDeviceMonitor(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test3"); + byte[] payload = new byte[] {(byte)241,(byte)216,(byte)219,(byte)3,(byte)253,(byte)6,(byte)22,(byte)24,(byte)168,(byte)18, }; + SBPMessage sbp = new SBPMessage( 0x425f, 0xb5, payload ); + MsgDeviceMonitor msg = new MsgDeviceMonitor( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cpu_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_temperature + "' != '" + 6166 + "'", - value.equals(BigInteger.valueOf(6166L))); + org.junit.Assert.assertTrue("'" + msg.cpu_temperature + "' != '" + 6166 + "'", value.equals(BigInteger.valueOf( 6166L ) ) ); } else { value = value.longValue(); expected = 6166L; @@ -208,9 +158,7 @@ public void test3() throws Throwable { } value = msg.cpu_vaux; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vaux + "' != '" + 1789 + "'", - value.equals(BigInteger.valueOf(1789L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vaux + "' != '" + 1789 + "'", value.equals(BigInteger.valueOf( 1789L ) ) ); } else { value = value.longValue(); expected = 1789L; @@ -218,9 +166,7 @@ public void test3() throws Throwable { } value = msg.cpu_vint; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vint + "' != '" + 987 + "'", - value.equals(BigInteger.valueOf(987L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vint + "' != '" + 987 + "'", value.equals(BigInteger.valueOf( 987L ) ) ); } else { value = value.longValue(); expected = 987L; @@ -228,9 +174,7 @@ public void test3() throws Throwable { } value = msg.dev_vin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dev_vin + "' != '" + -9999 + "'", - value.equals(BigInteger.valueOf(-9999L))); + org.junit.Assert.assertTrue("'" + msg.dev_vin + "' != '" + -9999 + "'", value.equals(BigInteger.valueOf( -9999L ) ) ); } else { value = value.longValue(); expected = -9999L; @@ -238,9 +182,7 @@ public void test3() throws Throwable { } value = msg.fe_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fe_temperature + "' != '" + 4776 + "'", - value.equals(BigInteger.valueOf(4776L))); + org.junit.Assert.assertTrue("'" + msg.fe_temperature + "' != '" + 4776 + "'", value.equals(BigInteger.valueOf( 4776L ) ) ); } else { value = value.longValue(); expected = 4776L; @@ -252,30 +194,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test4"); - byte[] payload = - new byte[] { - (byte) 241, - (byte) 216, - (byte) 218, - (byte) 3, - (byte) 252, - (byte) 6, - (byte) 6, - (byte) 24, - (byte) 168, - (byte) 18, - }; - SBPMessage sbp = new SBPMessage(0x425f, 0xb5, payload); - MsgDeviceMonitor msg = new MsgDeviceMonitor(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test4"); + byte[] payload = new byte[] {(byte)241,(byte)216,(byte)218,(byte)3,(byte)252,(byte)6,(byte)6,(byte)24,(byte)168,(byte)18, }; + SBPMessage sbp = new SBPMessage( 0x425f, 0xb5, payload ); + MsgDeviceMonitor msg = new MsgDeviceMonitor( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cpu_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_temperature + "' != '" + 6150 + "'", - value.equals(BigInteger.valueOf(6150L))); + org.junit.Assert.assertTrue("'" + msg.cpu_temperature + "' != '" + 6150 + "'", value.equals(BigInteger.valueOf( 6150L ) ) ); } else { value = value.longValue(); expected = 6150L; @@ -283,9 +212,7 @@ public void test4() throws Throwable { } value = msg.cpu_vaux; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vaux + "' != '" + 1788 + "'", - value.equals(BigInteger.valueOf(1788L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vaux + "' != '" + 1788 + "'", value.equals(BigInteger.valueOf( 1788L ) ) ); } else { value = value.longValue(); expected = 1788L; @@ -293,9 +220,7 @@ public void test4() throws Throwable { } value = msg.cpu_vint; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vint + "' != '" + 986 + "'", - value.equals(BigInteger.valueOf(986L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vint + "' != '" + 986 + "'", value.equals(BigInteger.valueOf( 986L ) ) ); } else { value = value.longValue(); expected = 986L; @@ -303,9 +228,7 @@ public void test4() throws Throwable { } value = msg.dev_vin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dev_vin + "' != '" + -9999 + "'", - value.equals(BigInteger.valueOf(-9999L))); + org.junit.Assert.assertTrue("'" + msg.dev_vin + "' != '" + -9999 + "'", value.equals(BigInteger.valueOf( -9999L ) ) ); } else { value = value.longValue(); expected = -9999L; @@ -313,9 +236,7 @@ public void test4() throws Throwable { } value = msg.fe_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fe_temperature + "' != '" + 4776 + "'", - value.equals(BigInteger.valueOf(4776L))); + org.junit.Assert.assertTrue("'" + msg.fe_temperature + "' != '" + 4776 + "'", value.equals(BigInteger.valueOf( 4776L ) ) ); } else { value = value.longValue(); expected = 4776L; @@ -327,30 +248,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test5"); - byte[] payload = - new byte[] { - (byte) 241, - (byte) 216, - (byte) 220, - (byte) 3, - (byte) 253, - (byte) 6, - (byte) 235, - (byte) 23, - (byte) 168, - (byte) 18, - }; - SBPMessage sbp = new SBPMessage(0x425f, 0xb5, payload); - MsgDeviceMonitor msg = new MsgDeviceMonitor(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgDeviceMonitorTest.test5"); + byte[] payload = new byte[] {(byte)241,(byte)216,(byte)220,(byte)3,(byte)253,(byte)6,(byte)235,(byte)23,(byte)168,(byte)18, }; + SBPMessage sbp = new SBPMessage( 0x425f, 0xb5, payload ); + MsgDeviceMonitor msg = new MsgDeviceMonitor( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cpu_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_temperature + "' != '" + 6123 + "'", - value.equals(BigInteger.valueOf(6123L))); + org.junit.Assert.assertTrue("'" + msg.cpu_temperature + "' != '" + 6123 + "'", value.equals(BigInteger.valueOf( 6123L ) ) ); } else { value = value.longValue(); expected = 6123L; @@ -358,9 +266,7 @@ public void test5() throws Throwable { } value = msg.cpu_vaux; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vaux + "' != '" + 1789 + "'", - value.equals(BigInteger.valueOf(1789L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vaux + "' != '" + 1789 + "'", value.equals(BigInteger.valueOf( 1789L ) ) ); } else { value = value.longValue(); expected = 1789L; @@ -368,9 +274,7 @@ public void test5() throws Throwable { } value = msg.cpu_vint; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cpu_vint + "' != '" + 988 + "'", - value.equals(BigInteger.valueOf(988L))); + org.junit.Assert.assertTrue("'" + msg.cpu_vint + "' != '" + 988 + "'", value.equals(BigInteger.valueOf( 988L ) ) ); } else { value = value.longValue(); expected = 988L; @@ -378,9 +282,7 @@ public void test5() throws Throwable { } value = msg.dev_vin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dev_vin + "' != '" + -9999 + "'", - value.equals(BigInteger.valueOf(-9999L))); + org.junit.Assert.assertTrue("'" + msg.dev_vin + "' != '" + -9999 + "'", value.equals(BigInteger.valueOf( -9999L ) ) ); } else { value = value.longValue(); expected = -9999L; @@ -388,9 +290,7 @@ public void test5() throws Throwable { } value = msg.fe_temperature; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fe_temperature + "' != '" + 4776 + "'", - value.equals(BigInteger.valueOf(4776L))); + org.junit.Assert.assertTrue("'" + msg.fe_temperature + "' != '" + 4776 + "'", value.equals(BigInteger.valueOf( 4776L ) ) ); } else { value = value.longValue(); expected = 4776L; diff --git a/java/test/auto_check_sbp_piksi_MsgFrontEndGainTest.java b/java/test/auto_check_sbp_piksi_MsgFrontEndGainTest.java index b4a2434267..a51410a3ac 100644 --- a/java/test/auto_check_sbp_piksi_MsgFrontEndGainTest.java +++ b/java/test/auto_check_sbp_piksi_MsgFrontEndGainTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgFrontEndGain.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgFrontEndGain.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgFrontEndGain; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgFrontEndGainTest { @@ -27,36 +32,17 @@ public class auto_check_sbp_piksi_MsgFrontEndGainTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgFrontEndGainTest.test1"); - byte[] payload = - new byte[] { - (byte) 41, - (byte) 133, - (byte) 134, - (byte) 10, - (byte) 105, - (byte) 20, - (byte) 38, - (byte) 38, - (byte) 246, - (byte) 233, - (byte) 216, - (byte) 80, - (byte) 187, - (byte) 213, - (byte) 85, - (byte) 2, - }; - SBPMessage sbp = new SBPMessage(0xf5af, 0xbf, payload); - MsgFrontEndGain msg = new MsgFrontEndGain(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgFrontEndGainTest.test1"); + byte[] payload = new byte[] {(byte)41,(byte)133,(byte)134,(byte)10,(byte)105,(byte)20,(byte)38,(byte)38,(byte)246,(byte)233,(byte)216,(byte)80,(byte)187,(byte)213,(byte)85,(byte)2, }; + SBPMessage sbp = new SBPMessage( 0xf5af, 0xbf, payload ); + MsgFrontEndGain msg = new MsgFrontEndGain( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.if_gain[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[0] + "' != '" + -10 + "'", - value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[0] + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -64,9 +50,7 @@ public void test1() throws Throwable { } value = msg.if_gain[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[1] + "' != '" + -23 + "'", - value.equals(BigInteger.valueOf(-23L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[1] + "' != '" + -23 + "'", value.equals(BigInteger.valueOf( -23L ) ) ); } else { value = value.longValue(); expected = -23L; @@ -74,9 +58,7 @@ public void test1() throws Throwable { } value = msg.if_gain[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[2] + "' != '" + -40 + "'", - value.equals(BigInteger.valueOf(-40L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[2] + "' != '" + -40 + "'", value.equals(BigInteger.valueOf( -40L ) ) ); } else { value = value.longValue(); expected = -40L; @@ -84,9 +66,7 @@ public void test1() throws Throwable { } value = msg.if_gain[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[3] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[3] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -94,9 +74,7 @@ public void test1() throws Throwable { } value = msg.if_gain[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[4] + "' != '" + -69 + "'", - value.equals(BigInteger.valueOf(-69L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[4] + "' != '" + -69 + "'", value.equals(BigInteger.valueOf( -69L ) ) ); } else { value = value.longValue(); expected = -69L; @@ -104,9 +82,7 @@ public void test1() throws Throwable { } value = msg.if_gain[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[5] + "' != '" + -43 + "'", - value.equals(BigInteger.valueOf(-43L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[5] + "' != '" + -43 + "'", value.equals(BigInteger.valueOf( -43L ) ) ); } else { value = value.longValue(); expected = -43L; @@ -114,9 +90,7 @@ public void test1() throws Throwable { } value = msg.if_gain[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[6] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[6] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -124,9 +98,7 @@ public void test1() throws Throwable { } value = msg.if_gain[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.if_gain[7] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.if_gain[7] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -134,9 +106,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[0] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[0] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -144,9 +114,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[1] + "' != '" + -123 + "'", - value.equals(BigInteger.valueOf(-123L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[1] + "' != '" + -123 + "'", value.equals(BigInteger.valueOf( -123L ) ) ); } else { value = value.longValue(); expected = -123L; @@ -154,9 +122,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[2] + "' != '" + -122 + "'", - value.equals(BigInteger.valueOf(-122L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[2] + "' != '" + -122 + "'", value.equals(BigInteger.valueOf( -122L ) ) ); } else { value = value.longValue(); expected = -122L; @@ -164,9 +130,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[3] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[3] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -174,9 +138,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[4] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[4] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -184,9 +146,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[5] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[5] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -194,9 +154,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[6] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[6] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -204,9 +162,7 @@ public void test1() throws Throwable { } value = msg.rf_gain[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rf_gain[7] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.rf_gain[7] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; diff --git a/java/test/auto_check_sbp_piksi_MsgIarStateTest.java b/java/test/auto_check_sbp_piksi_MsgIarStateTest.java index 3030f2ddab..720312f7b8 100644 --- a/java/test/auto_check_sbp_piksi_MsgIarStateTest.java +++ b/java/test/auto_check_sbp_piksi_MsgIarStateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgIarState.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgIarState.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgIarState; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgIarStateTest { @@ -27,20 +32,17 @@ public class auto_check_sbp_piksi_MsgIarStateTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -52,20 +54,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test2"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test2"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -77,20 +76,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test3"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test3"); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -102,21 +98,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test4"); - byte[] payload = - new byte[] { - (byte) 217, (byte) 2, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test4"); + byte[] payload = new byte[] {(byte)217,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 729 + "'", - value.equals(BigInteger.valueOf(729L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 729 + "'", value.equals(BigInteger.valueOf( 729L ) ) ); } else { value = value.longValue(); expected = 729L; @@ -128,21 +120,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test5"); - byte[] payload = - new byte[] { - (byte) 216, (byte) 2, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test5"); + byte[] payload = new byte[] {(byte)216,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 728 + "'", - value.equals(BigInteger.valueOf(728L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 728 + "'", value.equals(BigInteger.valueOf( 728L ) ) ); } else { value = value.longValue(); expected = 728L; @@ -154,21 +142,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test6"); - byte[] payload = - new byte[] { - (byte) 215, (byte) 2, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test6"); + byte[] payload = new byte[] {(byte)215,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 727 + "'", - value.equals(BigInteger.valueOf(727L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 727 + "'", value.equals(BigInteger.valueOf( 727L ) ) ); } else { value = value.longValue(); expected = 727L; @@ -180,21 +164,17 @@ public void test6() throws Throwable { @Test public void test7() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test7"); - byte[] payload = - new byte[] { - (byte) 211, (byte) 2, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x19, payload); - MsgIarState msg = new MsgIarState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgIarStateTest.test7"); + byte[] payload = new byte[] {(byte)211,(byte)2,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x19, payload ); + MsgIarState msg = new MsgIarState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.num_hyps; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_hyps + "' != '" + 723 + "'", - value.equals(BigInteger.valueOf(723L))); + org.junit.Assert.assertTrue("'" + msg.num_hyps + "' != '" + 723 + "'", value.equals(BigInteger.valueOf( 723L ) ) ); } else { value = value.longValue(); expected = 723L; diff --git a/java/test/auto_check_sbp_piksi_MsgInitBaseDepTest.java b/java/test/auto_check_sbp_piksi_MsgInitBaseDepTest.java index 6c2c81cf52..d9e9bbce24 100644 --- a/java/test/auto_check_sbp_piksi_MsgInitBaseDepTest.java +++ b/java/test/auto_check_sbp_piksi_MsgInitBaseDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgInitBaseDep.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgInitBaseDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgInitBaseDep; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgInitBaseDepTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgInitBaseDepTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgInitBaseDepTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x29b8, 0x23, payload); - MsgInitBaseDep msg = new MsgInitBaseDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgInitBaseDepTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x29b8, 0x23, payload ); + MsgInitBaseDep msg = new MsgInitBaseDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgMaskSatelliteDepTest.java b/java/test/auto_check_sbp_piksi_MsgMaskSatelliteDepTest.java index 3e760b73ed..9e2fe1eb2b 100644 --- a/java/test/auto_check_sbp_piksi_MsgMaskSatelliteDepTest.java +++ b/java/test/auto_check_sbp_piksi_MsgMaskSatelliteDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/piksi/test_MsgMaskSatelliteDep.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgMaskSatelliteDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgMaskSatelliteDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgMaskSatelliteDepTest { @@ -30,19 +34,15 @@ public class auto_check_sbp_piksi_MsgMaskSatelliteDepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgMaskSatelliteDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 33, (byte) 2, (byte) 153, (byte) 95, (byte) 4, - }; - SBPMessage sbp = new SBPMessage(0x86bb, 0x1b, payload); - MsgMaskSatelliteDep msg = new MsgMaskSatelliteDep(sbp); + byte[] payload = new byte[] {(byte)33,(byte)2,(byte)153,(byte)95,(byte)4, }; + SBPMessage sbp = new SBPMessage( 0x86bb, 0x1b, payload ); + MsgMaskSatelliteDep msg = new MsgMaskSatelliteDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.mask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mask + "' != '" + 33 + "'", value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.mask + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -50,9 +50,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -60,9 +58,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -70,9 +66,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 39170 + "'", - value.equals(BigInteger.valueOf(39170L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 39170 + "'", value.equals(BigInteger.valueOf( 39170L ) ) ); } else { value = value.longValue(); expected = 39170L; diff --git a/java/test/auto_check_sbp_piksi_MsgMaskSatelliteTest.java b/java/test/auto_check_sbp_piksi_MsgMaskSatelliteTest.java index eea66598ff..d7e2d1546b 100644 --- a/java/test/auto_check_sbp_piksi_MsgMaskSatelliteTest.java +++ b/java/test/auto_check_sbp_piksi_MsgMaskSatelliteTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgMaskSatellite.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgMaskSatellite.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgMaskSatellite; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgMaskSatelliteTest { @@ -27,20 +32,17 @@ public class auto_check_sbp_piksi_MsgMaskSatelliteTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgMaskSatelliteTest.test1"); - byte[] payload = - new byte[] { - (byte) 183, (byte) 87, (byte) 57, - }; - SBPMessage sbp = new SBPMessage(0x97ad, 0x2b, payload); - MsgMaskSatellite msg = new MsgMaskSatellite(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgMaskSatelliteTest.test1"); + byte[] payload = new byte[] {(byte)183,(byte)87,(byte)57, }; + SBPMessage sbp = new SBPMessage( 0x97ad, 0x2b, payload ); + MsgMaskSatellite msg = new MsgMaskSatellite( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.mask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mask + "' != '" + 183 + "'", value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.mask + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -48,9 +50,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -58,8 +58,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 87 + "'", value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; diff --git a/java/test/auto_check_sbp_piksi_MsgNetworkBandwidthUsageTest.java b/java/test/auto_check_sbp_piksi_MsgNetworkBandwidthUsageTest.java index 0c56c369bd..6f9cefc89a 100644 Binary files a/java/test/auto_check_sbp_piksi_MsgNetworkBandwidthUsageTest.java and b/java/test/auto_check_sbp_piksi_MsgNetworkBandwidthUsageTest.java differ diff --git a/java/test/auto_check_sbp_piksi_MsgNetworkStateReqTest.java b/java/test/auto_check_sbp_piksi_MsgNetworkStateReqTest.java index 1c57de5081..c07917d18c 100644 --- a/java/test/auto_check_sbp_piksi_MsgNetworkStateReqTest.java +++ b/java/test/auto_check_sbp_piksi_MsgNetworkStateReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgNetworkStateReq.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgNetworkStateReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgNetworkStateReq; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgNetworkStateReqTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgNetworkStateReqTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgNetworkStateReqTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x3e53, 0xba, payload); - MsgNetworkStateReq msg = new MsgNetworkStateReq(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgNetworkStateReqTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x3e53, 0xba, payload ); + MsgNetworkStateReq msg = new MsgNetworkStateReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgNetworkStateRespTest.java b/java/test/auto_check_sbp_piksi_MsgNetworkStateRespTest.java index d29e35d82c..3d009cb235 100644 Binary files a/java/test/auto_check_sbp_piksi_MsgNetworkStateRespTest.java and b/java/test/auto_check_sbp_piksi_MsgNetworkStateRespTest.java differ diff --git a/java/test/auto_check_sbp_piksi_MsgResetDepTest.java b/java/test/auto_check_sbp_piksi_MsgResetDepTest.java index ba28c84a61..9c2de445ee 100644 --- a/java/test/auto_check_sbp_piksi_MsgResetDepTest.java +++ b/java/test/auto_check_sbp_piksi_MsgResetDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgResetDep.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgResetDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgResetDep; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgResetDepTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgResetDepTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetDepTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0x0b40, 0xb2, payload); - MsgResetDep msg = new MsgResetDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetDepTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0x0b40, 0xb2, payload ); + MsgResetDep msg = new MsgResetDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgResetFiltersTest.java b/java/test/auto_check_sbp_piksi_MsgResetFiltersTest.java index eb4de5df69..8987c2442b 100644 --- a/java/test/auto_check_sbp_piksi_MsgResetFiltersTest.java +++ b/java/test/auto_check_sbp_piksi_MsgResetFiltersTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgResetFilters.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgResetFilters.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgResetFilters; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgResetFiltersTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_piksi_MsgResetFiltersTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetFiltersTest.test1"); - byte[] payload = - new byte[] { - (byte) 100, - }; - SBPMessage sbp = new SBPMessage(0xc851, 0x22, payload); - MsgResetFilters msg = new MsgResetFilters(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetFiltersTest.test1"); + byte[] payload = new byte[] {(byte)100, }; + SBPMessage sbp = new SBPMessage( 0xc851, 0x22, payload ); + MsgResetFilters msg = new MsgResetFilters( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.filter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.filter + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.filter + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_piksi_MsgResetTest.java b/java/test/auto_check_sbp_piksi_MsgResetTest.java index bb32d7c8d4..5c5a7e408e 100644 --- a/java/test/auto_check_sbp_piksi_MsgResetTest.java +++ b/java/test/auto_check_sbp_piksi_MsgResetTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgReset.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgReset.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgReset; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgResetTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_piksi_MsgResetTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetTest.test1"); - byte[] payload = - new byte[] { - (byte) 88, (byte) 248, (byte) 238, (byte) 19, - }; - SBPMessage sbp = new SBPMessage(0xd23f, 0xb6, payload); - MsgReset msg = new MsgReset(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgResetTest.test1"); + byte[] payload = new byte[] {(byte)88,(byte)248,(byte)238,(byte)19, }; + SBPMessage sbp = new SBPMessage( 0xd23f, 0xb6, payload ); + MsgReset msg = new MsgReset( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 334428248 + "'", - value.equals(BigInteger.valueOf(334428248L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 334428248 + "'", value.equals(BigInteger.valueOf( 334428248L ) ) ); } else { value = value.longValue(); expected = 334428248L; diff --git a/java/test/auto_check_sbp_piksi_MsgSetTimeTest.java b/java/test/auto_check_sbp_piksi_MsgSetTimeTest.java index be6c31e16a..6b0883d7cd 100644 --- a/java/test/auto_check_sbp_piksi_MsgSetTimeTest.java +++ b/java/test/auto_check_sbp_piksi_MsgSetTimeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSetTime.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSetTime.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgSetTime; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgSetTimeTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_piksi_MsgSetTimeTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSetTimeTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xaa15, 0x68, payload); - MsgSetTime msg = new MsgSetTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSetTimeTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xaa15, 0x68, payload ); + MsgSetTime msg = new MsgSetTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_piksi_MsgSpecanDepTest.java b/java/test/auto_check_sbp_piksi_MsgSpecanDepTest.java index 411341f1f4..1fa28fc846 100644 --- a/java/test/auto_check_sbp_piksi_MsgSpecanDepTest.java +++ b/java/test/auto_check_sbp_piksi_MsgSpecanDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSpecanDep.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSpecanDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgSpecanDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgSpecanDepTest { @@ -27,267 +32,11 @@ public class auto_check_sbp_piksi_MsgSpecanDepTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSpecanDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 246, - (byte) 22, - (byte) 221, - (byte) 56, - (byte) 37, - (byte) 59, - (byte) 45, - (byte) 27, - (byte) 154, - (byte) 97, - (byte) 198, - (byte) 69, - (byte) 154, - (byte) 1, - (byte) 144, - (byte) 69, - (byte) 205, - (byte) 20, - (byte) 18, - (byte) 70, - (byte) 51, - (byte) 211, - (byte) 89, - (byte) 69, - (byte) 240, - (byte) 14, - (byte) 179, - (byte) 186, - (byte) 227, - (byte) 244, - (byte) 173, - (byte) 240, - (byte) 182, - (byte) 71, - (byte) 166, - (byte) 117, - (byte) 196, - (byte) 13, - (byte) 44, - (byte) 27, - (byte) 33, - (byte) 28, - (byte) 67, - (byte) 254, - (byte) 3, - (byte) 249, - (byte) 92, - (byte) 44, - (byte) 122, - (byte) 169, - (byte) 77, - (byte) 186, - (byte) 68, - (byte) 135, - (byte) 63, - (byte) 168, - (byte) 162, - (byte) 89, - (byte) 36, - (byte) 186, - (byte) 99, - (byte) 63, - (byte) 105, - (byte) 116, - (byte) 216, - (byte) 44, - (byte) 67, - (byte) 212, - (byte) 156, - (byte) 75, - (byte) 81, - (byte) 53, - (byte) 250, - (byte) 225, - (byte) 23, - (byte) 205, - (byte) 26, - (byte) 34, - (byte) 119, - (byte) 50, - (byte) 101, - (byte) 64, - (byte) 7, - (byte) 231, - (byte) 124, - (byte) 183, - (byte) 203, - (byte) 102, - (byte) 234, - (byte) 84, - (byte) 83, - (byte) 208, - (byte) 23, - (byte) 68, - (byte) 54, - (byte) 179, - (byte) 98, - (byte) 96, - (byte) 116, - (byte) 244, - (byte) 246, - (byte) 94, - (byte) 104, - (byte) 94, - (byte) 13, - (byte) 56, - (byte) 210, - (byte) 18, - (byte) 191, - (byte) 22, - (byte) 133, - (byte) 81, - (byte) 153, - (byte) 159, - (byte) 161, - (byte) 219, - (byte) 59, - (byte) 21, - (byte) 164, - (byte) 121, - (byte) 145, - (byte) 203, - (byte) 171, - (byte) 132, - (byte) 57, - (byte) 180, - (byte) 102, - (byte) 101, - (byte) 11, - (byte) 229, - (byte) 175, - (byte) 145, - (byte) 73, - (byte) 72, - (byte) 124, - (byte) 4, - (byte) 184, - (byte) 228, - (byte) 61, - (byte) 234, - (byte) 218, - (byte) 62, - (byte) 226, - (byte) 217, - (byte) 193, - (byte) 7, - (byte) 109, - (byte) 44, - (byte) 83, - (byte) 201, - (byte) 20, - (byte) 101, - (byte) 9, - (byte) 140, - (byte) 186, - (byte) 162, - (byte) 81, - (byte) 91, - (byte) 30, - (byte) 231, - (byte) 161, - (byte) 81, - (byte) 216, - (byte) 114, - (byte) 60, - (byte) 231, - (byte) 163, - (byte) 163, - (byte) 49, - (byte) 237, - (byte) 244, - (byte) 185, - (byte) 240, - (byte) 89, - (byte) 143, - (byte) 174, - (byte) 165, - (byte) 211, - (byte) 241, - (byte) 13, - (byte) 16, - (byte) 61, - (byte) 141, - (byte) 101, - (byte) 89, - (byte) 37, - (byte) 117, - (byte) 189, - (byte) 86, - (byte) 118, - (byte) 176, - (byte) 228, - (byte) 12, - (byte) 14, - (byte) 119, - (byte) 135, - (byte) 129, - (byte) 243, - (byte) 50, - (byte) 29, - (byte) 207, - (byte) 198, - (byte) 117, - (byte) 100, - (byte) 225, - (byte) 6, - (byte) 139, - (byte) 110, - (byte) 39, - (byte) 210, - (byte) 68, - (byte) 199, - (byte) 43, - (byte) 132, - (byte) 64, - (byte) 17, - (byte) 51, - (byte) 173, - (byte) 181, - (byte) 12, - (byte) 140, - (byte) 16, - (byte) 247, - (byte) 84, - (byte) 183, - (byte) 105, - (byte) 39, - (byte) 157, - (byte) 77, - (byte) 30, - (byte) 205, - (byte) 194, - (byte) 59, - (byte) 64, - (byte) 241, - (byte) 183, - (byte) 238, - (byte) 105, - (byte) 181, - (byte) 170, - (byte) 45, - (byte) 8, - (byte) 166, - (byte) 164, - (byte) 238, - (byte) 83, - (byte) 148, - (byte) 173, - (byte) 108, - (byte) 228, - (byte) 67, - (byte) 89, - (byte) 189, - (byte) 67, - (byte) 26, - }; - SBPMessage sbp = new SBPMessage(0xd970, 0x50, payload); - MsgSpecanDep msg = new MsgSpecanDep(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSpecanDepTest.test1"); + byte[] payload = new byte[] {(byte)246,(byte)22,(byte)221,(byte)56,(byte)37,(byte)59,(byte)45,(byte)27,(byte)154,(byte)97,(byte)198,(byte)69,(byte)154,(byte)1,(byte)144,(byte)69,(byte)205,(byte)20,(byte)18,(byte)70,(byte)51,(byte)211,(byte)89,(byte)69,(byte)240,(byte)14,(byte)179,(byte)186,(byte)227,(byte)244,(byte)173,(byte)240,(byte)182,(byte)71,(byte)166,(byte)117,(byte)196,(byte)13,(byte)44,(byte)27,(byte)33,(byte)28,(byte)67,(byte)254,(byte)3,(byte)249,(byte)92,(byte)44,(byte)122,(byte)169,(byte)77,(byte)186,(byte)68,(byte)135,(byte)63,(byte)168,(byte)162,(byte)89,(byte)36,(byte)186,(byte)99,(byte)63,(byte)105,(byte)116,(byte)216,(byte)44,(byte)67,(byte)212,(byte)156,(byte)75,(byte)81,(byte)53,(byte)250,(byte)225,(byte)23,(byte)205,(byte)26,(byte)34,(byte)119,(byte)50,(byte)101,(byte)64,(byte)7,(byte)231,(byte)124,(byte)183,(byte)203,(byte)102,(byte)234,(byte)84,(byte)83,(byte)208,(byte)23,(byte)68,(byte)54,(byte)179,(byte)98,(byte)96,(byte)116,(byte)244,(byte)246,(byte)94,(byte)104,(byte)94,(byte)13,(byte)56,(byte)210,(byte)18,(byte)191,(byte)22,(byte)133,(byte)81,(byte)153,(byte)159,(byte)161,(byte)219,(byte)59,(byte)21,(byte)164,(byte)121,(byte)145,(byte)203,(byte)171,(byte)132,(byte)57,(byte)180,(byte)102,(byte)101,(byte)11,(byte)229,(byte)175,(byte)145,(byte)73,(byte)72,(byte)124,(byte)4,(byte)184,(byte)228,(byte)61,(byte)234,(byte)218,(byte)62,(byte)226,(byte)217,(byte)193,(byte)7,(byte)109,(byte)44,(byte)83,(byte)201,(byte)20,(byte)101,(byte)9,(byte)140,(byte)186,(byte)162,(byte)81,(byte)91,(byte)30,(byte)231,(byte)161,(byte)81,(byte)216,(byte)114,(byte)60,(byte)231,(byte)163,(byte)163,(byte)49,(byte)237,(byte)244,(byte)185,(byte)240,(byte)89,(byte)143,(byte)174,(byte)165,(byte)211,(byte)241,(byte)13,(byte)16,(byte)61,(byte)141,(byte)101,(byte)89,(byte)37,(byte)117,(byte)189,(byte)86,(byte)118,(byte)176,(byte)228,(byte)12,(byte)14,(byte)119,(byte)135,(byte)129,(byte)243,(byte)50,(byte)29,(byte)207,(byte)198,(byte)117,(byte)100,(byte)225,(byte)6,(byte)139,(byte)110,(byte)39,(byte)210,(byte)68,(byte)199,(byte)43,(byte)132,(byte)64,(byte)17,(byte)51,(byte)173,(byte)181,(byte)12,(byte)140,(byte)16,(byte)247,(byte)84,(byte)183,(byte)105,(byte)39,(byte)157,(byte)77,(byte)30,(byte)205,(byte)194,(byte)59,(byte)64,(byte)241,(byte)183,(byte)238,(byte)105,(byte)181,(byte)170,(byte)45,(byte)8,(byte)166,(byte)164,(byte)238,(byte)83,(byte)148,(byte)173,(byte)108,(byte)228,(byte)67,(byte)89,(byte)189,(byte)67,(byte)26, }; + SBPMessage sbp = new SBPMessage( 0xd970, 0x50, payload ); + MsgSpecanDep msg = new MsgSpecanDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -295,9 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.amplitude_unit, 3.48519995117187500e+03, DELTA); value = msg.amplitude_value[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[0] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[0] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -305,9 +52,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[1] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[1] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -315,9 +60,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[2] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[2] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -325,9 +68,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[3] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[3] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -335,9 +76,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[4] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[4] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -345,9 +84,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[5] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[5] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -355,9 +92,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[6] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[6] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -365,9 +100,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[7] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[7] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -375,9 +108,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[8] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[8] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -385,9 +116,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[9] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[9] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -395,9 +124,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[10] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[10] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -405,9 +132,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[11] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[11] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -415,9 +140,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[12] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[12] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -425,9 +148,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -435,9 +156,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[14] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[14] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -445,9 +164,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[15] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[15] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -455,9 +172,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[16] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[16] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -465,9 +180,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[17] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[17] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -475,9 +188,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[18] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[18] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -485,9 +196,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[19] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[19] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -495,9 +204,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[20] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[20] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -505,9 +212,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[21] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[21] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -515,9 +220,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[22] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[22] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -525,9 +228,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[23] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[23] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -535,9 +236,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[24] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[24] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -545,9 +244,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[25] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[25] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -555,9 +252,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[26] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[26] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -565,9 +260,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[27] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[27] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -575,9 +268,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[28] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[28] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -585,9 +276,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[29] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[29] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -595,9 +284,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[30] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[30] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -605,9 +292,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[31] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[31] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -615,9 +300,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[32] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[32] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -625,9 +308,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[33] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[33] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -635,9 +316,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[34] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[34] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -645,9 +324,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[35] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[35] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -655,9 +332,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[36] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[36] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -665,9 +340,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[37] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[37] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -675,9 +348,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[38] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[38] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -685,9 +356,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[39] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[39] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -695,9 +364,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[40] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[40] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -705,9 +372,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[41] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[41] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -715,9 +380,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[42] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[42] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -725,9 +388,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[43] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[43] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -735,9 +396,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[44] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[44] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -745,9 +404,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[45] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[45] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -755,9 +412,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[46] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[46] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -765,9 +420,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[47] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[47] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -775,9 +428,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[48] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[48] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -785,9 +436,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[49] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[49] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -795,9 +444,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[50] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[50] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -805,9 +452,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[51] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[51] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -815,9 +460,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[52] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[52] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -825,9 +468,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[53] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[53] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -835,9 +476,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[54] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[54] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -845,9 +484,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[55] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[55] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -855,9 +492,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[56] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[56] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -865,9 +500,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[57] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[57] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -875,9 +508,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[58] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[58] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -885,9 +516,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[59] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[59] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -895,9 +524,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[60] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[60] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -905,9 +532,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[61] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[61] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -915,9 +540,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[62] + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[62] + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -925,9 +548,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[63] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[63] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -935,9 +556,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[64] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[64] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -945,9 +564,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[65] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[65] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -955,9 +572,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[66] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[66] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -965,9 +580,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[67] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[67] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -975,9 +588,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[68] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[68] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -985,9 +596,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[69] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[69] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -995,9 +604,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[70] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[70] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1005,9 +612,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[71] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[71] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1015,9 +620,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[72] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[72] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -1025,9 +628,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[73] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[73] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1035,9 +636,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[74] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[74] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1045,9 +644,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[75] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[75] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -1055,9 +652,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[76] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[76] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1065,9 +660,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[77] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[77] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1075,9 +668,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[78] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[78] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1085,9 +676,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[79] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[79] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1095,9 +684,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[80] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[80] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1105,9 +692,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[81] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[81] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1115,9 +700,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[82] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[82] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -1125,9 +708,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[83] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[83] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1135,9 +716,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[84] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[84] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1145,9 +724,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[85] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[85] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1155,9 +732,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[86] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[86] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1165,9 +740,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[87] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[87] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1175,9 +748,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[88] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[88] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1185,9 +756,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[89] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[89] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1195,9 +764,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[90] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[90] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -1205,9 +772,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[91] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[91] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1215,9 +780,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[92] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[92] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1225,9 +788,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[93] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[93] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1235,9 +796,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[94] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[94] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1245,9 +804,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[95] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[95] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1255,9 +812,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[96] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[96] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1265,9 +820,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[97] + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[97] + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1275,9 +828,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[98] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[98] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1285,9 +836,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[99] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[99] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1295,9 +844,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[100] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[100] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1305,9 +852,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[101] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[101] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1315,9 +860,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[102] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[102] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1325,9 +868,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[103] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[103] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1335,9 +876,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[104] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[104] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1345,9 +884,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[105] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[105] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -1355,9 +892,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[106] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[106] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -1365,9 +900,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[107] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[107] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1375,9 +908,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[108] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[108] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1385,9 +916,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[109] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[109] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1395,9 +924,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[110] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[110] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1405,9 +932,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[111] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[111] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1415,9 +940,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[112] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[112] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1425,9 +948,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[113] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[113] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1435,9 +956,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[114] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[114] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1445,9 +964,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[115] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[115] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -1455,9 +972,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[116] + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[116] + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1465,9 +980,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[117] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[117] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1475,9 +988,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[118] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[118] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1485,9 +996,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[119] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[119] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1495,9 +1004,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[120] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[120] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1505,9 +1012,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[121] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[121] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1515,9 +1020,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[122] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[122] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1525,9 +1028,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[123] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[123] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1535,9 +1036,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[124] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[124] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1545,9 +1044,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[125] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[125] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -1555,9 +1052,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[126] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[126] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1565,9 +1060,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[127] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[127] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1575,9 +1068,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[128] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[128] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1585,9 +1076,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[129] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[129] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1595,9 +1084,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[130] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[130] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1605,9 +1092,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[131] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[131] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -1615,9 +1100,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[132] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[132] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1625,9 +1108,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[133] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[133] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1635,9 +1116,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[134] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[134] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1645,9 +1124,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[135] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[135] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1655,9 +1132,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[136] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[136] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -1665,9 +1140,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[137] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[137] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1675,9 +1148,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[138] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[138] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1685,9 +1156,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[139] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[139] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1695,9 +1164,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[140] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[140] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1705,9 +1172,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[141] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[141] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1715,9 +1180,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[142] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[142] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1725,9 +1188,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[143] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[143] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1735,9 +1196,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[144] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[144] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1745,9 +1204,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[145] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[145] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1755,9 +1212,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[146] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[146] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -1765,9 +1220,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[147] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[147] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1775,9 +1228,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[148] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[148] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1785,9 +1236,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[149] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[149] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1795,9 +1244,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[150] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[150] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1805,9 +1252,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[151] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[151] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1815,9 +1260,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[152] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[152] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1825,9 +1268,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[153] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[153] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -1835,9 +1276,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[154] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[154] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1845,9 +1284,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[155] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[155] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1855,9 +1292,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[156] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[156] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1865,9 +1300,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[157] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[157] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1875,9 +1308,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[158] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[158] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1885,9 +1316,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[159] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[159] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1895,9 +1324,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[160] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[160] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1905,9 +1332,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[161] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[161] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1915,9 +1340,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[162] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[162] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -1925,9 +1348,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[163] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[163] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1935,9 +1356,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[164] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[164] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1945,9 +1364,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[165] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[165] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -1955,9 +1372,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[166] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[166] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1965,9 +1380,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[167] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[167] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1975,9 +1388,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[168] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[168] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1985,9 +1396,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[169] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[169] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1995,9 +1404,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[170] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[170] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2005,9 +1412,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[171] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[171] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -2015,9 +1420,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[172] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[172] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2025,9 +1428,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[173] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[173] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -2035,9 +1436,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[174] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[174] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -2045,9 +1444,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[175] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[175] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -2055,9 +1452,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[176] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[176] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2065,9 +1460,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[177] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[177] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -2075,9 +1468,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[178] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[178] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2085,9 +1476,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[179] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[179] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -2095,9 +1484,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[180] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[180] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -2105,9 +1492,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[181] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[181] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2115,9 +1500,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[182] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[182] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -2125,9 +1508,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[183] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[183] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -2135,9 +1516,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[184] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[184] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -2145,9 +1524,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[185] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[185] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -2155,9 +1532,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[186] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[186] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2165,9 +1540,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[187] + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[187] + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -2175,9 +1548,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[188] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[188] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -2185,9 +1556,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[189] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[189] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2195,9 +1564,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[190] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[190] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -2205,9 +1572,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[191] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[191] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2215,9 +1580,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[192] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[192] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2225,9 +1588,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[193] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[193] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -2235,9 +1596,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[194] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[194] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -2245,9 +1604,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[195] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[195] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -2255,9 +1612,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[196] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[196] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -2265,9 +1620,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[197] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[197] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -2275,9 +1628,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[198] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[198] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -2285,9 +1636,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[199] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[199] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -2295,9 +1644,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[200] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[200] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2305,9 +1652,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[201] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[201] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -2315,9 +1660,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[202] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[202] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -2325,9 +1668,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[203] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[203] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -2335,9 +1676,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[204] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[204] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2345,9 +1684,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[205] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[205] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -2355,9 +1692,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[206] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[206] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -2365,9 +1700,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[207] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[207] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2375,9 +1708,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[208] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[208] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2385,9 +1716,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[209] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[209] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -2395,9 +1724,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[210] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[210] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -2405,9 +1732,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[211] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[211] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2415,9 +1740,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[212] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[212] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2425,9 +1748,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[213] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[213] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -2435,9 +1756,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[214] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[214] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -2445,9 +1764,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[215] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[215] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -2455,9 +1772,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[216] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[216] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2465,9 +1780,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[217] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[217] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -2475,9 +1788,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[218] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[218] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -2485,9 +1796,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[219] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[219] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -2495,9 +1804,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[220] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[220] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2505,9 +1812,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[221] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[221] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2515,9 +1820,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[222] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[222] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2525,9 +1828,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[223] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[223] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -2535,9 +1836,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[224] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[224] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -2545,9 +1844,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[225] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[225] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2555,9 +1852,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[226] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[226] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2565,9 +1860,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[227] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[227] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -2575,9 +1868,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[228] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[228] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -2585,9 +1876,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[229] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[229] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2595,9 +1884,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[230] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[230] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -2605,9 +1892,7 @@ public void test1() throws Throwable { } value = msg.channel_tag; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.channel_tag + "' != '" + 5878 + "'", - value.equals(BigInteger.valueOf(5878L))); + org.junit.Assert.assertTrue("'" + msg.channel_tag + "' != '" + 5878 + "'", value.equals(BigInteger.valueOf( 5878L ) ) ); } else { value = value.longValue(); expected = 5878L; @@ -2617,9 +1902,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.freq_step, 4.60820019531250000e+03, DELTA); value = msg.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t.tow + "' != '" + 992295133 + "'", - value.equals(BigInteger.valueOf(992295133L))); + org.junit.Assert.assertTrue("'" + msg.t.tow + "' != '" + 992295133 + "'", value.equals(BigInteger.valueOf( 992295133L ) ) ); } else { value = value.longValue(); expected = 992295133L; @@ -2627,9 +1910,7 @@ public void test1() throws Throwable { } value = msg.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t.wn + "' != '" + 6957 + "'", - value.equals(BigInteger.valueOf(6957L))); + org.junit.Assert.assertTrue("'" + msg.t.wn + "' != '" + 6957 + "'", value.equals(BigInteger.valueOf( 6957L ) ) ); } else { value = value.longValue(); expected = 6957L; diff --git a/java/test/auto_check_sbp_piksi_MsgSpecanTest.java b/java/test/auto_check_sbp_piksi_MsgSpecanTest.java index 4ed168ed1f..ceb6381988 100644 --- a/java/test/auto_check_sbp_piksi_MsgSpecanTest.java +++ b/java/test/auto_check_sbp_piksi_MsgSpecanTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSpecan.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgSpecan.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgSpecan; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgSpecanTest { @@ -27,267 +32,11 @@ public class auto_check_sbp_piksi_MsgSpecanTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSpecanTest.test1"); - byte[] payload = - new byte[] { - (byte) 74, - (byte) 137, - (byte) 71, - (byte) 245, - (byte) 34, - (byte) 73, - (byte) 12, - (byte) 221, - (byte) 215, - (byte) 167, - (byte) 211, - (byte) 19, - (byte) 154, - (byte) 201, - (byte) 241, - (byte) 69, - (byte) 205, - (byte) 136, - (byte) 0, - (byte) 70, - (byte) 51, - (byte) 67, - (byte) 108, - (byte) 69, - (byte) 102, - (byte) 38, - (byte) 166, - (byte) 68, - (byte) 100, - (byte) 179, - (byte) 185, - (byte) 17, - (byte) 175, - (byte) 49, - (byte) 193, - (byte) 228, - (byte) 228, - (byte) 47, - (byte) 33, - (byte) 24, - (byte) 141, - (byte) 177, - (byte) 18, - (byte) 99, - (byte) 246, - (byte) 121, - (byte) 61, - (byte) 40, - (byte) 91, - (byte) 145, - (byte) 223, - (byte) 167, - (byte) 174, - (byte) 9, - (byte) 116, - (byte) 11, - (byte) 247, - (byte) 84, - (byte) 49, - (byte) 153, - (byte) 205, - (byte) 2, - (byte) 230, - (byte) 194, - (byte) 218, - (byte) 241, - (byte) 101, - (byte) 107, - (byte) 45, - (byte) 137, - (byte) 93, - (byte) 114, - (byte) 230, - (byte) 43, - (byte) 224, - (byte) 23, - (byte) 74, - (byte) 209, - (byte) 199, - (byte) 211, - (byte) 130, - (byte) 89, - (byte) 220, - (byte) 163, - (byte) 68, - (byte) 20, - (byte) 253, - (byte) 7, - (byte) 206, - (byte) 50, - (byte) 129, - (byte) 116, - (byte) 194, - (byte) 23, - (byte) 31, - (byte) 226, - (byte) 217, - (byte) 157, - (byte) 205, - (byte) 221, - (byte) 5, - (byte) 224, - (byte) 92, - (byte) 82, - (byte) 109, - (byte) 223, - (byte) 195, - (byte) 233, - (byte) 165, - (byte) 1, - (byte) 82, - (byte) 141, - (byte) 157, - (byte) 177, - (byte) 169, - (byte) 244, - (byte) 131, - (byte) 96, - (byte) 109, - (byte) 111, - (byte) 253, - (byte) 149, - (byte) 28, - (byte) 225, - (byte) 225, - (byte) 72, - (byte) 158, - (byte) 158, - (byte) 210, - (byte) 196, - (byte) 206, - (byte) 70, - (byte) 63, - (byte) 225, - (byte) 184, - (byte) 150, - (byte) 174, - (byte) 240, - (byte) 45, - (byte) 146, - (byte) 59, - (byte) 82, - (byte) 194, - (byte) 4, - (byte) 179, - (byte) 148, - (byte) 66, - (byte) 254, - (byte) 115, - (byte) 77, - (byte) 30, - (byte) 46, - (byte) 4, - (byte) 204, - (byte) 37, - (byte) 200, - (byte) 121, - (byte) 18, - (byte) 17, - (byte) 171, - (byte) 102, - (byte) 163, - (byte) 175, - (byte) 50, - (byte) 66, - (byte) 101, - (byte) 69, - (byte) 13, - (byte) 223, - (byte) 172, - (byte) 160, - (byte) 233, - (byte) 220, - (byte) 101, - (byte) 237, - (byte) 156, - (byte) 62, - (byte) 117, - (byte) 47, - (byte) 143, - (byte) 94, - (byte) 135, - (byte) 22, - (byte) 155, - (byte) 113, - (byte) 110, - (byte) 15, - (byte) 243, - (byte) 141, - (byte) 227, - (byte) 46, - (byte) 143, - (byte) 227, - (byte) 209, - (byte) 249, - (byte) 2, - (byte) 153, - (byte) 168, - (byte) 131, - (byte) 249, - (byte) 160, - (byte) 88, - (byte) 38, - (byte) 117, - (byte) 129, - (byte) 57, - (byte) 40, - (byte) 109, - (byte) 209, - (byte) 177, - (byte) 38, - (byte) 47, - (byte) 12, - (byte) 15, - (byte) 16, - (byte) 9, - (byte) 175, - (byte) 69, - (byte) 70, - (byte) 182, - (byte) 239, - (byte) 117, - (byte) 135, - (byte) 6, - (byte) 71, - (byte) 99, - (byte) 230, - (byte) 115, - (byte) 2, - (byte) 71, - (byte) 165, - (byte) 228, - (byte) 123, - (byte) 210, - (byte) 168, - (byte) 90, - (byte) 124, - (byte) 20, - (byte) 7, - (byte) 220, - (byte) 144, - (byte) 168, - (byte) 69, - (byte) 22, - (byte) 72, - (byte) 162, - (byte) 69, - (byte) 111, - (byte) 91, - (byte) 251, - (byte) 72, - (byte) 220, - (byte) 28, - (byte) 119, - (byte) 150, - }; - SBPMessage sbp = new SBPMessage(0xd41c, 0x51, payload); - MsgSpecan msg = new MsgSpecan(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgSpecanTest.test1"); + byte[] payload = new byte[] {(byte)74,(byte)137,(byte)71,(byte)245,(byte)34,(byte)73,(byte)12,(byte)221,(byte)215,(byte)167,(byte)211,(byte)19,(byte)154,(byte)201,(byte)241,(byte)69,(byte)205,(byte)136,(byte)0,(byte)70,(byte)51,(byte)67,(byte)108,(byte)69,(byte)102,(byte)38,(byte)166,(byte)68,(byte)100,(byte)179,(byte)185,(byte)17,(byte)175,(byte)49,(byte)193,(byte)228,(byte)228,(byte)47,(byte)33,(byte)24,(byte)141,(byte)177,(byte)18,(byte)99,(byte)246,(byte)121,(byte)61,(byte)40,(byte)91,(byte)145,(byte)223,(byte)167,(byte)174,(byte)9,(byte)116,(byte)11,(byte)247,(byte)84,(byte)49,(byte)153,(byte)205,(byte)2,(byte)230,(byte)194,(byte)218,(byte)241,(byte)101,(byte)107,(byte)45,(byte)137,(byte)93,(byte)114,(byte)230,(byte)43,(byte)224,(byte)23,(byte)74,(byte)209,(byte)199,(byte)211,(byte)130,(byte)89,(byte)220,(byte)163,(byte)68,(byte)20,(byte)253,(byte)7,(byte)206,(byte)50,(byte)129,(byte)116,(byte)194,(byte)23,(byte)31,(byte)226,(byte)217,(byte)157,(byte)205,(byte)221,(byte)5,(byte)224,(byte)92,(byte)82,(byte)109,(byte)223,(byte)195,(byte)233,(byte)165,(byte)1,(byte)82,(byte)141,(byte)157,(byte)177,(byte)169,(byte)244,(byte)131,(byte)96,(byte)109,(byte)111,(byte)253,(byte)149,(byte)28,(byte)225,(byte)225,(byte)72,(byte)158,(byte)158,(byte)210,(byte)196,(byte)206,(byte)70,(byte)63,(byte)225,(byte)184,(byte)150,(byte)174,(byte)240,(byte)45,(byte)146,(byte)59,(byte)82,(byte)194,(byte)4,(byte)179,(byte)148,(byte)66,(byte)254,(byte)115,(byte)77,(byte)30,(byte)46,(byte)4,(byte)204,(byte)37,(byte)200,(byte)121,(byte)18,(byte)17,(byte)171,(byte)102,(byte)163,(byte)175,(byte)50,(byte)66,(byte)101,(byte)69,(byte)13,(byte)223,(byte)172,(byte)160,(byte)233,(byte)220,(byte)101,(byte)237,(byte)156,(byte)62,(byte)117,(byte)47,(byte)143,(byte)94,(byte)135,(byte)22,(byte)155,(byte)113,(byte)110,(byte)15,(byte)243,(byte)141,(byte)227,(byte)46,(byte)143,(byte)227,(byte)209,(byte)249,(byte)2,(byte)153,(byte)168,(byte)131,(byte)249,(byte)160,(byte)88,(byte)38,(byte)117,(byte)129,(byte)57,(byte)40,(byte)109,(byte)209,(byte)177,(byte)38,(byte)47,(byte)12,(byte)15,(byte)16,(byte)9,(byte)175,(byte)69,(byte)70,(byte)182,(byte)239,(byte)117,(byte)135,(byte)6,(byte)71,(byte)99,(byte)230,(byte)115,(byte)2,(byte)71,(byte)165,(byte)228,(byte)123,(byte)210,(byte)168,(byte)90,(byte)124,(byte)20,(byte)7,(byte)220,(byte)144,(byte)168,(byte)69,(byte)22,(byte)72,(byte)162,(byte)69,(byte)111,(byte)91,(byte)251,(byte)72,(byte)220,(byte)28,(byte)119,(byte)150, }; + SBPMessage sbp = new SBPMessage( 0xd41c, 0x51, payload ); + MsgSpecan msg = new MsgSpecan( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; @@ -295,9 +44,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.amplitude_unit, 1.32919995117187500e+03, DELTA); value = msg.amplitude_value[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[0] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[0] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -305,9 +52,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[1] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[1] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -315,9 +60,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[2] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[2] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -325,9 +68,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[3] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[3] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -335,9 +76,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[4] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[4] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -345,9 +84,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[5] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[5] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -355,9 +92,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[6] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[6] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -365,9 +100,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[7] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[7] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -375,9 +108,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[8] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[8] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -385,9 +116,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[9] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[9] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -395,9 +124,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[10] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[10] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -405,9 +132,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[11] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[11] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -415,9 +140,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[12] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[12] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -425,9 +148,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[13] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[13] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -435,9 +156,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[14] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[14] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -445,9 +164,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[15] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[15] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -455,9 +172,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[16] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[16] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -465,9 +180,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[17] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[17] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -475,9 +188,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[18] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[18] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -485,9 +196,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[19] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[19] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -495,9 +204,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[20] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[20] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -505,9 +212,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[21] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[21] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -515,9 +220,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[22] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[22] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -525,9 +228,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[23] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[23] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -535,9 +236,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[24] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[24] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -545,9 +244,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[25] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[25] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -555,9 +252,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[26] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[26] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -565,9 +260,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[27] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[27] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -575,9 +268,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[28] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[28] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -585,9 +276,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[29] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[29] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -595,9 +284,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[30] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[30] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -605,9 +292,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[31] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[31] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -615,9 +300,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[32] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[32] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -625,9 +308,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[33] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[33] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -635,9 +316,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[34] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[34] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -645,9 +324,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[35] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[35] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -655,9 +332,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[36] + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[36] + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -665,9 +340,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[37] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[37] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -675,9 +348,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[38] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[38] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -685,9 +356,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[39] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[39] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -695,9 +364,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[40] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[40] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -705,9 +372,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[41] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[41] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -715,9 +380,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[42] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[42] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -725,9 +388,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[43] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[43] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -735,9 +396,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[44] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[44] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -745,9 +404,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[45] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[45] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -755,9 +412,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[46] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[46] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -765,9 +420,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[47] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[47] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -775,9 +428,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[48] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[48] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -785,9 +436,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[49] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[49] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -795,9 +444,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[50] + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[50] + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -805,9 +452,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[51] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[51] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -815,9 +460,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[52] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[52] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -825,9 +468,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[53] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[53] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -835,9 +476,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[54] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[54] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -845,9 +484,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[55] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[55] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -855,9 +492,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[56] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[56] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -865,9 +500,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[57] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[57] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -875,9 +508,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[58] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[58] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -885,9 +516,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[59] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[59] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -895,9 +524,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[60] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[60] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -905,9 +532,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[61] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[61] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -915,9 +540,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[62] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[62] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -925,9 +548,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[63] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[63] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -935,9 +556,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[64] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[64] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -945,9 +564,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[65] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[65] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -955,9 +572,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[66] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[66] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -965,9 +580,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[67] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[67] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -975,9 +588,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[68] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[68] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -985,9 +596,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[69] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[69] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -995,9 +604,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[70] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[70] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -1005,9 +612,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[71] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[71] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1015,9 +620,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[72] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[72] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1025,9 +628,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[73] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[73] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1035,9 +636,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[74] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[74] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1045,9 +644,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[75] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[75] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1055,9 +652,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[76] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[76] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1065,9 +660,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[77] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[77] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -1075,9 +668,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[78] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[78] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1085,9 +676,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[79] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[79] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1095,9 +684,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[80] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[80] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1105,9 +692,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[81] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[81] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1115,9 +700,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[82] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[82] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1125,9 +708,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[83] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[83] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1135,9 +716,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[84] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[84] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1145,9 +724,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[85] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[85] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1155,9 +732,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[86] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[86] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -1165,9 +740,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[87] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[87] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -1175,9 +748,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[88] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[88] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1185,9 +756,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[89] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[89] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1195,9 +764,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[90] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[90] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1205,9 +772,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[91] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[91] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -1215,9 +780,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[92] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[92] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -1225,9 +788,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[93] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[93] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1235,9 +796,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[94] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[94] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1245,9 +804,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[95] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[95] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1255,9 +812,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[96] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[96] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1265,9 +820,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[97] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[97] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1275,9 +828,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[98] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[98] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1285,9 +836,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[99] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[99] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1295,9 +844,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[100] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[100] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -1305,9 +852,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[101] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[101] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1315,9 +860,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[102] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[102] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -1325,9 +868,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[103] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[103] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1335,9 +876,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[104] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[104] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1345,9 +884,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[105] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[105] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1355,9 +892,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[106] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[106] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1365,9 +900,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[107] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[107] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1375,9 +908,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[108] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[108] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1385,9 +916,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[109] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[109] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1395,9 +924,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[110] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[110] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1405,9 +932,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[111] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[111] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1415,9 +940,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[112] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[112] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1425,9 +948,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[113] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[113] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1435,9 +956,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[114] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[114] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1445,9 +964,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[115] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[115] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1455,9 +972,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[116] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[116] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1465,9 +980,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[117] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[117] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -1475,9 +988,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[118] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[118] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1485,9 +996,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[119] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[119] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1495,9 +1004,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[120] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[120] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1505,9 +1012,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[121] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[121] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1515,9 +1020,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[122] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[122] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1525,9 +1028,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[123] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[123] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1535,9 +1036,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[124] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[124] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1545,9 +1044,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[125] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[125] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -1555,9 +1052,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[126] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[126] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1565,9 +1060,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[127] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[127] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1575,9 +1068,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[128] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[128] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1585,9 +1076,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[129] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[129] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1595,9 +1084,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[130] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[130] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1605,9 +1092,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[131] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[131] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1615,9 +1100,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[132] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[132] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1625,9 +1108,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[133] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[133] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1635,9 +1116,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[134] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[134] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -1645,9 +1124,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[135] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[135] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1655,9 +1132,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[136] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[136] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1665,9 +1140,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[137] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[137] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1675,9 +1148,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[138] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[138] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1685,9 +1156,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[139] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[139] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1695,9 +1164,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[140] + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[140] + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -1705,9 +1172,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[141] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[141] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1715,9 +1180,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[142] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[142] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1725,9 +1188,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[143] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[143] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1735,9 +1196,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[144] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[144] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1745,9 +1204,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[145] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[145] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1755,9 +1212,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[146] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[146] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1765,9 +1220,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[147] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[147] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1775,9 +1228,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[148] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[148] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1785,9 +1236,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[149] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[149] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -1795,9 +1244,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[150] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[150] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -1805,9 +1252,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[151] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[151] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1815,9 +1260,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[152] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[152] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1825,9 +1268,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[153] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[153] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1835,9 +1276,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[154] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[154] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1845,9 +1284,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[155] + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[155] + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1855,9 +1292,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[156] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[156] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1865,9 +1300,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[157] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[157] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1875,9 +1308,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[158] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[158] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1885,9 +1316,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[159] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[159] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -1895,9 +1324,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[160] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[160] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1905,9 +1332,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[161] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[161] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1915,9 +1340,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[162] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[162] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1925,9 +1348,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[163] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[163] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1935,9 +1356,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[164] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[164] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1945,9 +1364,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[165] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[165] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1955,9 +1372,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[166] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[166] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1965,9 +1380,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[167] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[167] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1975,9 +1388,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[168] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[168] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1985,9 +1396,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[169] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[169] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1995,9 +1404,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[170] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[170] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -2005,9 +1412,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[171] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[171] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -2015,9 +1420,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[172] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[172] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -2025,9 +1428,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[173] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[173] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2035,9 +1436,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[174] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[174] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2045,9 +1444,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[175] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[175] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2055,9 +1452,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[176] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[176] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2065,9 +1460,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[177] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[177] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -2075,9 +1468,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[178] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[178] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -2085,9 +1476,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[179] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[179] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -2095,9 +1484,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[180] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[180] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -2105,9 +1492,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[181] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[181] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -2115,9 +1500,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[182] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[182] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2125,9 +1508,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[183] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[183] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -2135,9 +1516,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[184] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[184] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -2145,9 +1524,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[185] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[185] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2155,9 +1532,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[186] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[186] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -2165,9 +1540,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[187] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[187] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -2175,9 +1548,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[188] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[188] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -2185,9 +1556,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[189] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[189] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -2195,9 +1564,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[190] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[190] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -2205,9 +1572,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[191] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[191] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -2215,9 +1580,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[192] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[192] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2225,9 +1588,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[193] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[193] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2235,9 +1596,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[194] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[194] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -2245,9 +1604,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[195] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[195] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2255,9 +1612,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[196] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[196] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2265,9 +1620,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[197] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[197] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -2275,9 +1628,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[198] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[198] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -2285,9 +1636,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[199] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[199] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -2295,9 +1644,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[200] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[200] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2305,9 +1652,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[201] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[201] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2315,9 +1660,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[202] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[202] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -2325,9 +1668,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[203] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[203] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2335,9 +1676,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[204] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[204] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -2345,9 +1684,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[205] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[205] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -2355,9 +1692,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[206] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[206] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2365,9 +1700,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[207] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[207] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -2375,9 +1708,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[208] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[208] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -2385,9 +1716,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[209] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[209] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2395,9 +1724,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[210] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[210] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2405,9 +1732,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[211] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[211] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -2415,9 +1740,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[212] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[212] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2425,9 +1748,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[213] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[213] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2435,9 +1756,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[214] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[214] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -2445,9 +1764,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[215] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[215] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -2455,9 +1772,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[216] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[216] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2465,9 +1780,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[217] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[217] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -2475,9 +1788,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[218] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[218] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -2485,9 +1796,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[219] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[219] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -2495,9 +1804,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[220] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[220] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -2505,9 +1812,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[221] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[221] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -2515,9 +1820,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[222] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[222] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2525,9 +1828,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[223] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[223] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -2535,9 +1836,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[224] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[224] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -2545,9 +1844,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[225] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[225] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2555,9 +1852,7 @@ public void test1() throws Throwable { } value = msg.amplitude_value[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.amplitude_value[226] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.amplitude_value[226] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -2565,9 +1860,7 @@ public void test1() throws Throwable { } value = msg.channel_tag; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.channel_tag + "' != '" + 35146 + "'", - value.equals(BigInteger.valueOf(35146L))); + org.junit.Assert.assertTrue("'" + msg.channel_tag + "' != '" + 35146 + "'", value.equals(BigInteger.valueOf( 35146L ) ) ); } else { value = value.longValue(); expected = 35146L; @@ -2577,9 +1870,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.freq_step, 8.22620019531250000e+03, DELTA); value = msg.t.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t.ns_residual + "' != '" + -1479025396 + "'", - value.equals(BigInteger.valueOf(-1479025396L))); + org.junit.Assert.assertTrue("'" + msg.t.ns_residual + "' != '" + -1479025396 + "'", value.equals(BigInteger.valueOf( -1479025396L ) ) ); } else { value = value.longValue(); expected = -1479025396L; @@ -2587,9 +1878,7 @@ public void test1() throws Throwable { } value = msg.t.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t.tow + "' != '" + 1227027783 + "'", - value.equals(BigInteger.valueOf(1227027783L))); + org.junit.Assert.assertTrue("'" + msg.t.tow + "' != '" + 1227027783 + "'", value.equals(BigInteger.valueOf( 1227027783L ) ) ); } else { value = value.longValue(); expected = 1227027783L; @@ -2597,9 +1886,7 @@ public void test1() throws Throwable { } value = msg.t.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.t.wn + "' != '" + 5075 + "'", - value.equals(BigInteger.valueOf(5075L))); + org.junit.Assert.assertTrue("'" + msg.t.wn + "' != '" + 5075 + "'", value.equals(BigInteger.valueOf( 5075L ) ) ); } else { value = value.longValue(); expected = 5075L; diff --git a/java/test/auto_check_sbp_piksi_MsgThreadStateTest.java b/java/test/auto_check_sbp_piksi_MsgThreadStateTest.java index 0475a39410..8076c5d99f 100644 Binary files a/java/test/auto_check_sbp_piksi_MsgThreadStateTest.java and b/java/test/auto_check_sbp_piksi_MsgThreadStateTest.java differ diff --git a/java/test/auto_check_sbp_piksi_MsgUartStateDepATest.java b/java/test/auto_check_sbp_piksi_MsgUartStateDepATest.java index 3dcabe9e66..a0aafa9651 100644 --- a/java/test/auto_check_sbp_piksi_MsgUartStateDepATest.java +++ b/java/test/auto_check_sbp_piksi_MsgUartStateDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgUartStateDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgUartStateDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgUartStateDepa; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgUartStateDepATest { @@ -27,78 +32,17 @@ public class auto_check_sbp_piksi_MsgUartStateDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 154, - (byte) 153, - (byte) 57, - (byte) 65, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 15, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)154,(byte)153,(byte)57,(byte)65,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)15,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -106,9 +50,7 @@ public void test1() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -116,9 +58,7 @@ public void test1() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -126,9 +66,7 @@ public void test1() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -136,9 +74,7 @@ public void test1() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -146,9 +82,7 @@ public void test1() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -156,9 +90,7 @@ public void test1() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -167,9 +99,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -178,9 +108,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -188,9 +116,7 @@ public void test1() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -198,9 +124,7 @@ public void test1() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -209,9 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -220,9 +142,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -230,9 +150,7 @@ public void test1() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -240,9 +158,7 @@ public void test1() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -251,9 +167,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -266,78 +180,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 43, - (byte) 135, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test2"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)2,(byte)43,(byte)135,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -345,9 +198,7 @@ public void test2() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -355,9 +206,7 @@ public void test2() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -365,9 +214,7 @@ public void test2() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -375,9 +222,7 @@ public void test2() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -385,9 +230,7 @@ public void test2() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -395,9 +238,7 @@ public void test2() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -406,9 +247,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -417,9 +256,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -427,9 +264,7 @@ public void test2() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -437,9 +272,7 @@ public void test2() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -448,9 +281,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -459,9 +290,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -469,9 +298,7 @@ public void test2() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -479,9 +306,7 @@ public void test2() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -490,9 +315,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -505,78 +328,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 86, - (byte) 14, - (byte) 62, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 10, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test3"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)4,(byte)86,(byte)14,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)10,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -584,9 +346,7 @@ public void test3() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -594,9 +354,7 @@ public void test3() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -604,9 +362,7 @@ public void test3() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -614,9 +370,7 @@ public void test3() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -624,9 +378,7 @@ public void test3() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -634,9 +386,7 @@ public void test3() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -645,9 +395,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -656,9 +404,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -666,9 +412,7 @@ public void test3() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -676,9 +420,7 @@ public void test3() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -687,9 +429,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -698,9 +438,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -708,9 +446,7 @@ public void test3() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -718,9 +454,7 @@ public void test3() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -729,9 +463,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -744,78 +476,17 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 2, - (byte) 43, - (byte) 135, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 255, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test4"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)2,(byte)43,(byte)135,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -823,9 +494,7 @@ public void test4() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -833,9 +502,7 @@ public void test4() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -843,9 +510,7 @@ public void test4() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -853,9 +518,7 @@ public void test4() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -863,9 +526,7 @@ public void test4() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -873,9 +534,7 @@ public void test4() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -884,9 +543,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -895,9 +552,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -905,9 +560,7 @@ public void test4() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -915,9 +568,7 @@ public void test4() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -926,9 +577,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -937,9 +586,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -947,9 +594,7 @@ public void test4() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -957,9 +602,7 @@ public void test4() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -968,9 +611,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -983,29 +624,17 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 138, (byte) 75, (byte) 6, - (byte) 60, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 80, (byte) 113, (byte) 201, (byte) 61, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 2, (byte) 0, - (byte) 145, (byte) 237, (byte) 252, (byte) 62, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 38, (byte) 0, - (byte) 255, (byte) 255, (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 255, (byte) 255, - (byte) 255, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test5"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0,(byte)138,(byte)75,(byte)6,(byte)60,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)80,(byte)113,(byte)201,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)145,(byte)237,(byte)252,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)38,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -1013,9 +642,7 @@ public void test5() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -1023,9 +650,7 @@ public void test5() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1033,9 +658,7 @@ public void test5() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1043,9 +666,7 @@ public void test5() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1053,9 +674,7 @@ public void test5() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1063,9 +682,7 @@ public void test5() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1074,9 +691,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 8.19672085344791412e-03, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1085,9 +700,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1095,9 +708,7 @@ public void test5() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1105,9 +716,7 @@ public void test5() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1116,9 +725,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1127,9 +734,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 9.83606576919555664e-02, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1137,9 +742,7 @@ public void test5() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1147,9 +750,7 @@ public void test5() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1158,9 +759,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1173,29 +772,17 @@ public void test5() throws Throwable { @Test public void test6() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 166, (byte) 155, (byte) 68, (byte) 60, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 2, (byte) 0, - (byte) 166, (byte) 155, (byte) 68, (byte) 60, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 2, (byte) 0, - (byte) 236, (byte) 81, (byte) 168, (byte) 63, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 50, (byte) 0, - (byte) 255, (byte) 255, (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 255, (byte) 255, - (byte) 255, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateDepATest.test6"); + byte[] payload = new byte[] {(byte)166,(byte)155,(byte)68,(byte)60,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)166,(byte)155,(byte)68,(byte)60,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)2,(byte)0,(byte)236,(byte)81,(byte)168,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)50,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -1203,9 +790,7 @@ public void test6() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -1213,9 +798,7 @@ public void test6() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1223,9 +806,7 @@ public void test6() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1233,9 +814,7 @@ public void test6() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1243,9 +822,7 @@ public void test6() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1253,9 +830,7 @@ public void test6() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1264,9 +839,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1275,9 +848,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 1.20000001043081284e-02, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1285,9 +856,7 @@ public void test6() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1295,9 +864,7 @@ public void test6() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1306,9 +873,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1317,9 +882,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 1.20000001043081284e-02, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1327,9 +890,7 @@ public void test6() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1337,9 +898,7 @@ public void test6() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1348,9 +907,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; diff --git a/java/test/auto_check_sbp_piksi_MsgUartStateTest.java b/java/test/auto_check_sbp_piksi_MsgUartStateTest.java index a64feba419..b5a4375da2 100644 --- a/java/test/auto_check_sbp_piksi_MsgUartStateTest.java +++ b/java/test/auto_check_sbp_piksi_MsgUartStateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,23 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgUartState.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_MsgUartState.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.piksi.MsgUartState; + import com.swiftnav.sbp.piksi.MsgUartStateDepa; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_piksi_MsgUartStateTest { @@ -28,94 +34,17 @@ public class auto_check_sbp_piksi_MsgUartStateTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test1"); - byte[] payload = - new byte[] { - (byte) 154, - (byte) 169, - (byte) 242, - (byte) 69, - (byte) 102, - (byte) 166, - (byte) 231, - (byte) 68, - (byte) 89, - (byte) 98, - (byte) 79, - (byte) 184, - (byte) 138, - (byte) 244, - (byte) 154, - (byte) 73, - (byte) 201, - (byte) 69, - (byte) 154, - (byte) 65, - (byte) 211, - (byte) 69, - (byte) 201, - (byte) 16, - (byte) 103, - (byte) 249, - (byte) 143, - (byte) 161, - (byte) 154, - (byte) 17, - (byte) 186, - (byte) 69, - (byte) 51, - (byte) 211, - (byte) 7, - (byte) 69, - (byte) 215, - (byte) 149, - (byte) 253, - (byte) 25, - (byte) 218, - (byte) 24, - (byte) 29, - (byte) 195, - (byte) 16, - (byte) 19, - (byte) 159, - (byte) 142, - (byte) 71, - (byte) 17, - (byte) 10, - (byte) 113, - (byte) 137, - (byte) 219, - (byte) 135, - (byte) 18, - (byte) 182, - (byte) 21, - (byte) 38, - (byte) 190, - (byte) 59, - (byte) 196, - (byte) 169, - (byte) 155, - (byte) 107, - (byte) 111, - (byte) 253, - (byte) 168, - (byte) 244, - (byte) 158, - (byte) 112, - (byte) 19, - (byte) 251, - (byte) 131, - }; - SBPMessage sbp = new SBPMessage(0xe0c8, 0x1d, payload); - MsgUartState msg = new MsgUartState(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test1"); + byte[] payload = new byte[] {(byte)154,(byte)169,(byte)242,(byte)69,(byte)102,(byte)166,(byte)231,(byte)68,(byte)89,(byte)98,(byte)79,(byte)184,(byte)138,(byte)244,(byte)154,(byte)73,(byte)201,(byte)69,(byte)154,(byte)65,(byte)211,(byte)69,(byte)201,(byte)16,(byte)103,(byte)249,(byte)143,(byte)161,(byte)154,(byte)17,(byte)186,(byte)69,(byte)51,(byte)211,(byte)7,(byte)69,(byte)215,(byte)149,(byte)253,(byte)25,(byte)218,(byte)24,(byte)29,(byte)195,(byte)16,(byte)19,(byte)159,(byte)142,(byte)71,(byte)17,(byte)10,(byte)113,(byte)137,(byte)219,(byte)135,(byte)18,(byte)182,(byte)21,(byte)38,(byte)190,(byte)59,(byte)196,(byte)169,(byte)155,(byte)107,(byte)111,(byte)253,(byte)168,(byte)244,(byte)158,(byte)112,(byte)19,(byte)251,(byte)131, }; + SBPMessage sbp = new SBPMessage( 0xe0c8, 0x1d, payload ); + MsgUartState msg = new MsgUartState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + 319865629 + "'", - value.equals(BigInteger.valueOf(319865629L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + 319865629 + "'", value.equals(BigInteger.valueOf( 319865629L ) ) ); } else { value = value.longValue(); expected = 319865629L; @@ -123,9 +52,7 @@ public void test1() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + 364253831 + "'", - value.equals(BigInteger.valueOf(364253831L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + 364253831 + "'", value.equals(BigInteger.valueOf( 364253831L ) ) ); } else { value = value.longValue(); expected = 364253831L; @@ -133,9 +60,7 @@ public void test1() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + -611749622 + "'", - value.equals(BigInteger.valueOf(-611749622L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + -611749622 + "'", value.equals(BigInteger.valueOf( -611749622L ) ) ); } else { value = value.longValue(); expected = -611749622L; @@ -143,9 +68,7 @@ public void test1() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 289902239 + "'", - value.equals(BigInteger.valueOf(289902239L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 289902239 + "'", value.equals(BigInteger.valueOf( 289902239L ) ) ); } else { value = value.longValue(); expected = 289902239L; @@ -153,9 +76,7 @@ public void test1() throws Throwable { } value = msg.obs_period.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_period.avg + "' != '" + -1002717658 + "'", - value.equals(BigInteger.valueOf(-1002717658L))); + org.junit.Assert.assertTrue("'" + msg.obs_period.avg + "' != '" + -1002717658 + "'", value.equals(BigInteger.valueOf( -1002717658L ) ) ); } else { value = value.longValue(); expected = -1002717658L; @@ -163,9 +84,7 @@ public void test1() throws Throwable { } value = msg.obs_period.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_period.current + "' != '" + -2080697488 + "'", - value.equals(BigInteger.valueOf(-2080697488L))); + org.junit.Assert.assertTrue("'" + msg.obs_period.current + "' != '" + -2080697488 + "'", value.equals(BigInteger.valueOf( -2080697488L ) ) ); } else { value = value.longValue(); expected = -2080697488L; @@ -173,9 +92,7 @@ public void test1() throws Throwable { } value = msg.obs_period.pmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_period.pmax + "' != '" + -1628133123 + "'", - value.equals(BigInteger.valueOf(-1628133123L))); + org.junit.Assert.assertTrue("'" + msg.obs_period.pmax + "' != '" + -1628133123 + "'", value.equals(BigInteger.valueOf( -1628133123L ) ) ); } else { value = value.longValue(); expected = -1628133123L; @@ -183,9 +100,7 @@ public void test1() throws Throwable { } value = msg.obs_period.pmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.obs_period.pmin + "' != '" + 1869323177 + "'", - value.equals(BigInteger.valueOf(1869323177L))); + org.junit.Assert.assertTrue("'" + msg.obs_period.pmin + "' != '" + 1869323177 + "'", value.equals(BigInteger.valueOf( 1869323177L ) ) ); } else { value = value.longValue(); expected = 1869323177L; @@ -193,9 +108,7 @@ public void test1() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 25177 + "'", - value.equals(BigInteger.valueOf(25177L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 25177 + "'", value.equals(BigInteger.valueOf( 25177L ) ) ); } else { value = value.longValue(); expected = 25177L; @@ -203,9 +116,7 @@ public void test1() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 47183 + "'", - value.equals(BigInteger.valueOf(47183L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 47183 + "'", value.equals(BigInteger.valueOf( 47183L ) ) ); } else { value = value.longValue(); expected = 47183L; @@ -213,9 +124,7 @@ public void test1() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -224,9 +133,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 1.85319995117187500e+03, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -235,9 +142,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 7.76520019531250000e+03, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 4297 + "'", - value.equals(BigInteger.valueOf(4297L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 4297 + "'", value.equals(BigInteger.valueOf( 4297L ) ) ); } else { value = value.longValue(); expected = 4297L; @@ -245,9 +150,7 @@ public void test1() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 63847 + "'", - value.equals(BigInteger.valueOf(63847L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 63847 + "'", value.equals(BigInteger.valueOf( 63847L ) ) ); } else { value = value.longValue(); expected = 63847L; @@ -255,9 +158,7 @@ public void test1() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -266,9 +167,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 6.76020019531250000e+03, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -277,9 +176,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 6.44120019531250000e+03, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 38359 + "'", - value.equals(BigInteger.valueOf(38359L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 38359 + "'", value.equals(BigInteger.valueOf( 38359L ) ) ); } else { value = value.longValue(); expected = 38359L; @@ -287,9 +184,7 @@ public void test1() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 6653 + "'", - value.equals(BigInteger.valueOf(6653L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 6653 + "'", value.equals(BigInteger.valueOf( 6653L ) ) ); } else { value = value.longValue(); expected = 6653L; @@ -297,9 +192,7 @@ public void test1() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -308,9 +201,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 2.17319995117187500e+03, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -323,29 +214,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test2"); - byte[] payload = - new byte[] { - (byte) 26, (byte) 191, (byte) 93, (byte) 63, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 24, (byte) 0, - (byte) 123, (byte) 50, (byte) 62, (byte) 64, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 40, (byte) 0, - (byte) 54, (byte) 7, (byte) 162, (byte) 64, (byte) 177, (byte) 57, (byte) 16, - (byte) 61, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 81, (byte) 1, - (byte) 255, (byte) 255, (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 255, (byte) 255, - (byte) 255, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test2"); + byte[] payload = new byte[] {(byte)26,(byte)191,(byte)93,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)24,(byte)0,(byte)123,(byte)50,(byte)62,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)54,(byte)7,(byte)162,(byte)64,(byte)177,(byte)57,(byte)16,(byte)61,(byte)0,(byte)0,(byte)0,(byte)0,(byte)81,(byte)1,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -353,9 +232,7 @@ public void test2() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -363,9 +240,7 @@ public void test2() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -373,9 +248,7 @@ public void test2() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -383,9 +256,7 @@ public void test2() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -393,9 +264,7 @@ public void test2() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -403,9 +272,7 @@ public void test2() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -414,9 +281,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -425,9 +290,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 8.66197228431701660e-01, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -435,9 +298,7 @@ public void test2() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -445,9 +306,7 @@ public void test2() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -456,9 +315,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -467,9 +324,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 2.97183108329772949e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -477,9 +332,7 @@ public void test2() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -487,9 +340,7 @@ public void test2() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -498,9 +349,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 3.52112688124179840e-02, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -513,29 +362,17 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test3"); - byte[] payload = - new byte[] { - (byte) 237, (byte) 232, (byte) 95, (byte) 63, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 24, (byte) 0, - (byte) 198, (byte) 186, (byte) 63, (byte) 64, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 40, (byte) 0, - (byte) 214, (byte) 72, (byte) 217, (byte) 64, (byte) 29, (byte) 72, (byte) 180, - (byte) 62, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 85, (byte) 1, - (byte) 255, (byte) 255, (byte) 255, (byte) 255, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 255, (byte) 255, - (byte) 255, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x18, payload); - MsgUartStateDepa msg = new MsgUartStateDepa(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_piksi_MsgUartStateTest.test3"); + byte[] payload = new byte[] {(byte)237,(byte)232,(byte)95,(byte)63,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)24,(byte)0,(byte)198,(byte)186,(byte)63,(byte)64,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)214,(byte)72,(byte)217,(byte)64,(byte)29,(byte)72,(byte)180,(byte)62,(byte)0,(byte)0,(byte)0,(byte)0,(byte)85,(byte)1,(byte)255,(byte)255,(byte)255,(byte)255,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)255,(byte)255,(byte)255,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x18, payload ); + MsgUartStateDepa msg = new MsgUartStateDepa( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.latency.avg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.avg + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.avg + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -543,9 +380,7 @@ public void test3() throws Throwable { } value = msg.latency.current; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.current + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.latency.current + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -553,9 +388,7 @@ public void test3() throws Throwable { } value = msg.latency.lmax; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmax + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmax + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -563,9 +396,7 @@ public void test3() throws Throwable { } value = msg.latency.lmin; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency.lmin + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.latency.lmin + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -573,9 +404,7 @@ public void test3() throws Throwable { } value = msg.uart_a.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -583,9 +412,7 @@ public void test3() throws Throwable { } value = msg.uart_a.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -593,9 +420,7 @@ public void test3() throws Throwable { } value = msg.uart_a.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -604,9 +429,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_a.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_a.tx_buffer_level + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.uart_a.tx_buffer_level + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -615,9 +438,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_a.tx_throughput, 8.74647915363311768e-01, DELTA); value = msg.uart_b.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -625,9 +446,7 @@ public void test3() throws Throwable { } value = msg.uart_b.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -635,9 +454,7 @@ public void test3() throws Throwable { } value = msg.uart_b.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.rx_buffer_level + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -646,9 +463,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.rx_throughput, 0.00000000000000000e+00, DELTA); value = msg.uart_b.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_b.tx_buffer_level + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.uart_b.tx_buffer_level + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -657,9 +472,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_b.tx_throughput, 2.99577474594116211e+00, DELTA); value = msg.uart_ftdi.crc_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.crc_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -667,9 +480,7 @@ public void test3() throws Throwable { } value = msg.uart_ftdi.io_error_count; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.io_error_count + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -677,9 +488,7 @@ public void test3() throws Throwable { } value = msg.uart_ftdi.rx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.rx_buffer_level + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -688,9 +497,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.uart_ftdi.rx_throughput, 3.52112680673599243e-01, DELTA); value = msg.uart_ftdi.tx_buffer_level; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.uart_ftdi.tx_buffer_level + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; diff --git a/java/test/auto_check_sbp_piksi_piksi_structsTest.java b/java/test/auto_check_sbp_piksi_piksi_structsTest.java index b98da26451..0aabd50f30 100644 --- a/java/test/auto_check_sbp_piksi_piksi_structsTest.java +++ b/java/test/auto_check_sbp_piksi_piksi_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,10 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_piksi_structs.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/piksi/test_piksi_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_piksi_piksi_structsTest { diff --git a/java/test/auto_check_sbp_profiling_MsgMeasurementPointTest.java b/java/test/auto_check_sbp_profiling_MsgMeasurementPointTest.java index a7338fcec5..5c67de2bbf 100644 Binary files a/java/test/auto_check_sbp_profiling_MsgMeasurementPointTest.java and b/java/test/auto_check_sbp_profiling_MsgMeasurementPointTest.java differ diff --git a/java/test/auto_check_sbp_profiling_MsgProfilingResourceCounterTest.java b/java/test/auto_check_sbp_profiling_MsgProfilingResourceCounterTest.java index 6bed77887e..c4b50c35e1 100644 Binary files a/java/test/auto_check_sbp_profiling_MsgProfilingResourceCounterTest.java and b/java/test/auto_check_sbp_profiling_MsgProfilingResourceCounterTest.java differ diff --git a/java/test/auto_check_sbp_profiling_MsgProfilingSystemInfoTest.java b/java/test/auto_check_sbp_profiling_MsgProfilingSystemInfoTest.java index bff1222df9..3ad033db94 100644 --- a/java/test/auto_check_sbp_profiling_MsgProfilingSystemInfoTest.java +++ b/java/test/auto_check_sbp_profiling_MsgProfilingSystemInfoTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/profiling/test_MsgProfilingSystemInfo.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/profiling/test_MsgProfilingSystemInfo.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.profiling.MsgProfilingSystemInfo; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_profiling_MsgProfilingSystemInfoTest { @@ -29,24 +33,16 @@ public class auto_check_sbp_profiling_MsgProfilingSystemInfoTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_profiling_MsgProfilingSystemInfoTest.test1"); - byte[] payload = - new byte[] { - (byte) 98, (byte) 40, (byte) 52, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 114, (byte) 12, (byte) 157, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 27, (byte) 72, (byte) 195, (byte) 226, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x1000, 0xcf01, payload); - MsgProfilingSystemInfo msg = new MsgProfilingSystemInfo(sbp); + System.out.format("%n%s%n", "auto_check_sbp_profiling_MsgProfilingSystemInfoTest.test1"); + byte[] payload = new byte[] {(byte)98,(byte)40,(byte)52,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)114,(byte)12,(byte)157,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)27,(byte)72,(byte)195,(byte)226,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x1000, 0xcf01, payload ); + MsgProfilingSystemInfo msg = new MsgProfilingSystemInfo( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.age; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.age + "' != '" + 10292338 + "'", - value.equals(BigInteger.valueOf(10292338L))); + org.junit.Assert.assertTrue("'" + msg.age + "' != '" + 10292338 + "'", value.equals(BigInteger.valueOf( 10292338L ) ) ); } else { value = value.longValue(); expected = 10292338L; @@ -54,9 +50,7 @@ public void test1() throws Throwable { } value = msg.heap_usage; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.heap_usage + "' != '" + 14861128 + "'", - value.equals(BigInteger.valueOf(14861128L))); + org.junit.Assert.assertTrue("'" + msg.heap_usage + "' != '" + 14861128 + "'", value.equals(BigInteger.valueOf( 14861128L ) ) ); } else { value = value.longValue(); expected = 14861128L; @@ -64,9 +58,7 @@ public void test1() throws Throwable { } value = msg.n_threads; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_threads + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.n_threads + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -74,9 +66,7 @@ public void test1() throws Throwable { } value = msg.total_cpu_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.total_cpu_time + "' != '" + 3418210 + "'", - value.equals(BigInteger.valueOf(3418210L))); + org.junit.Assert.assertTrue("'" + msg.total_cpu_time + "' != '" + 3418210 + "'", value.equals(BigInteger.valueOf( 3418210L ) ) ); } else { value = value.longValue(); expected = 3418210L; diff --git a/java/test/auto_check_sbp_profiling_MsgProfilingThreadInfoTest.java b/java/test/auto_check_sbp_profiling_MsgProfilingThreadInfoTest.java index bad5904359..6420438513 100644 Binary files a/java/test/auto_check_sbp_profiling_MsgProfilingThreadInfoTest.java and b/java/test/auto_check_sbp_profiling_MsgProfilingThreadInfoTest.java differ diff --git a/java/test/auto_check_sbp_sbas_MsgSbasRawTest.java b/java/test/auto_check_sbp_sbas_MsgSbasRawTest.java index 2a7983045e..5357f751ca 100644 --- a/java/test/auto_check_sbp_sbas_MsgSbasRawTest.java +++ b/java/test/auto_check_sbp_sbas_MsgSbasRawTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/sbas/test_MsgSbasRaw.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/sbas/test_MsgSbasRaw.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.sbas.MsgSbasRaw; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_sbas_MsgSbasRawTest { @@ -27,53 +32,17 @@ public class auto_check_sbp_sbas_MsgSbasRawTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_sbas_MsgSbasRawTest.test1"); - byte[] payload = - new byte[] { - (byte) 131, - (byte) 2, - (byte) 201, - (byte) 228, - (byte) 233, - (byte) 29, - (byte) 4, - (byte) 23, - (byte) 255, - (byte) 0, - (byte) 23, - (byte) 255, - (byte) 0, - (byte) 23, - (byte) 255, - (byte) 127, - (byte) 240, - (byte) 2, - (byte) 255, - (byte) 192, - (byte) 3, - (byte) 127, - (byte) 247, - (byte) 255, - (byte) 127, - (byte) 247, - (byte) 255, - (byte) 229, - (byte) 229, - (byte) 238, - (byte) 170, - (byte) 175, - (byte) 255, - (byte) 240, - }; - SBPMessage sbp = new SBPMessage(0xc81c, 0x7777, payload); - MsgSbasRaw msg = new MsgSbasRaw(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_sbas_MsgSbasRawTest.test1"); + byte[] payload = new byte[] {(byte)131,(byte)2,(byte)201,(byte)228,(byte)233,(byte)29,(byte)4,(byte)23,(byte)255,(byte)0,(byte)23,(byte)255,(byte)0,(byte)23,(byte)255,(byte)127,(byte)240,(byte)2,(byte)255,(byte)192,(byte)3,(byte)127,(byte)247,(byte)255,(byte)127,(byte)247,(byte)255,(byte)229,(byte)229,(byte)238,(byte)170,(byte)175,(byte)255,(byte)240, }; + SBPMessage sbp = new SBPMessage( 0xc81c, 0x7777, payload ); + MsgSbasRaw msg = new MsgSbasRaw( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.data[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[0] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.data[0] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -81,9 +50,7 @@ public void test1() throws Throwable { } value = msg.data[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[1] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[1] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -91,8 +58,7 @@ public void test1() throws Throwable { } value = msg.data[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[2] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.data[2] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -100,8 +66,7 @@ public void test1() throws Throwable { } value = msg.data[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[3] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.data[3] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -109,9 +74,7 @@ public void test1() throws Throwable { } value = msg.data[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[4] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[4] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -119,8 +82,7 @@ public void test1() throws Throwable { } value = msg.data[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[5] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.data[5] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -128,8 +90,7 @@ public void test1() throws Throwable { } value = msg.data[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[6] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.data[6] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -137,9 +98,7 @@ public void test1() throws Throwable { } value = msg.data[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[7] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[7] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -147,9 +106,7 @@ public void test1() throws Throwable { } value = msg.data[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[8] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.data[8] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -157,9 +114,7 @@ public void test1() throws Throwable { } value = msg.data[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[9] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.data[9] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -167,8 +122,7 @@ public void test1() throws Throwable { } value = msg.data[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[10] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.data[10] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -176,9 +130,7 @@ public void test1() throws Throwable { } value = msg.data[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[11] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[11] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -186,9 +138,7 @@ public void test1() throws Throwable { } value = msg.data[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[12] + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.data[12] + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -196,8 +146,7 @@ public void test1() throws Throwable { } value = msg.data[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[13] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.data[13] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -205,9 +154,7 @@ public void test1() throws Throwable { } value = msg.data[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[14] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.data[14] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -215,9 +162,7 @@ public void test1() throws Throwable { } value = msg.data[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[15] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.data[15] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -225,9 +170,7 @@ public void test1() throws Throwable { } value = msg.data[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[16] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[16] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -235,9 +178,7 @@ public void test1() throws Throwable { } value = msg.data[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[17] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.data[17] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -245,9 +186,7 @@ public void test1() throws Throwable { } value = msg.data[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[18] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.data[18] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -255,9 +194,7 @@ public void test1() throws Throwable { } value = msg.data[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[19] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[19] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -265,9 +202,7 @@ public void test1() throws Throwable { } value = msg.data[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[20] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.data[20] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -275,9 +210,7 @@ public void test1() throws Throwable { } value = msg.data[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[21] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.data[21] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -285,9 +218,7 @@ public void test1() throws Throwable { } value = msg.data[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[22] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.data[22] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -295,9 +226,7 @@ public void test1() throws Throwable { } value = msg.data[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[23] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.data[23] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -305,9 +234,7 @@ public void test1() throws Throwable { } value = msg.data[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[24] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.data[24] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -315,9 +242,7 @@ public void test1() throws Throwable { } value = msg.data[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[25] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.data[25] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -325,9 +250,7 @@ public void test1() throws Throwable { } value = msg.data[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.data[26] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.data[26] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -335,9 +258,7 @@ public void test1() throws Throwable { } value = msg.message_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.message_type + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.message_type + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -345,8 +266,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -354,9 +274,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -364,9 +282,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 501867721 + "'", - value.equals(BigInteger.valueOf(501867721L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 501867721 + "'", value.equals(BigInteger.valueOf( 501867721L ) ) ); } else { value = value.longValue(); expected = 501867721L; diff --git a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.java b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.java index c347dd6786..90975677c5 100644 --- a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.java +++ b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsReadByIndexDone.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsReadByIndexDone.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.settings.MsgSettingsReadByIndexDone; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest { @@ -28,11 +33,10 @@ public class auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xd7f6, 0xa6, payload); - MsgSettingsReadByIndexDone msg = new MsgSettingsReadByIndexDone(sbp); + System.out.format("%n%s%n", "auto_check_sbp_settings_MsgSettingsReadByIndexDoneTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0xa6, payload ); + MsgSettingsReadByIndexDone msg = new MsgSettingsReadByIndexDone( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.java b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.java index 7a49c442ae..8d32fdd585 100644 --- a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.java +++ b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsReadByIndexReq.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsReadByIndexReq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.settings.MsgSettingsReadByIndexReq; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_settings_MsgSettingsReadByIndexReqTest { @@ -29,22 +33,16 @@ public class auto_check_sbp_settings_MsgSettingsReadByIndexReqTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.test1"); - byte[] payload = - new byte[] { - (byte) 244, (byte) 34, - }; - SBPMessage sbp = new SBPMessage(0x7b7a, 0xa2, payload); - MsgSettingsReadByIndexReq msg = new MsgSettingsReadByIndexReq(sbp); + System.out.format("%n%s%n", "auto_check_sbp_settings_MsgSettingsReadByIndexReqTest.test1"); + byte[] payload = new byte[] {(byte)244,(byte)34, }; + SBPMessage sbp = new SBPMessage( 0x7b7a, 0xa2, payload ); + MsgSettingsReadByIndexReq msg = new MsgSettingsReadByIndexReq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 8948 + "'", - value.equals(BigInteger.valueOf(8948L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 8948 + "'", value.equals(BigInteger.valueOf( 8948L ) ) ); } else { value = value.longValue(); expected = 8948L; diff --git a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexRespTest.java b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexRespTest.java index 6529408106..40a7dd8e9a 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexRespTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsReadByIndexRespTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsReadReqTest.java b/java/test/auto_check_sbp_settings_MsgSettingsReadReqTest.java index 50c4c56005..e072f8743f 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsReadReqTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsReadReqTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsReadRespTest.java b/java/test/auto_check_sbp_settings_MsgSettingsReadRespTest.java index 2ba77f83bd..69360db7a0 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsReadRespTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsReadRespTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsRegisterRespTest.java b/java/test/auto_check_sbp_settings_MsgSettingsRegisterRespTest.java index dbb3093c33..eedfdb5f73 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsRegisterRespTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsRegisterRespTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsRegisterTest.java b/java/test/auto_check_sbp_settings_MsgSettingsRegisterTest.java index bd543cf612..35590481c2 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsRegisterTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsRegisterTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsSaveTest.java b/java/test/auto_check_sbp_settings_MsgSettingsSaveTest.java index 7d62ec3318..1773abb4d6 100644 --- a/java/test/auto_check_sbp_settings_MsgSettingsSaveTest.java +++ b/java/test/auto_check_sbp_settings_MsgSettingsSaveTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,16 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsSave.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/settings/test_MsgSettingsSave.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; +import org.junit.Test; + +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.settings.MsgSettingsSave; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_settings_MsgSettingsSaveTest { @@ -26,10 +32,11 @@ public class auto_check_sbp_settings_MsgSettingsSaveTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_settings_MsgSettingsSaveTest.test1"); - byte[] payload = new byte[] {}; - SBPMessage sbp = new SBPMessage(0xe0a2, 0xa1, payload); - MsgSettingsSave msg = new MsgSettingsSave(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_settings_MsgSettingsSaveTest.test1"); + byte[] payload = new byte[] { }; + SBPMessage sbp = new SBPMessage( 0xe0a2, 0xa1, payload ); + MsgSettingsSave msg = new MsgSettingsSave( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; diff --git a/java/test/auto_check_sbp_settings_MsgSettingsWriteRespTest.java b/java/test/auto_check_sbp_settings_MsgSettingsWriteRespTest.java index c88b749393..26c1e12318 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsWriteRespTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsWriteRespTest.java differ diff --git a/java/test/auto_check_sbp_settings_MsgSettingsWriteTest.java b/java/test/auto_check_sbp_settings_MsgSettingsWriteTest.java index 1a146a6f72..b39bd5336e 100644 Binary files a/java/test/auto_check_sbp_settings_MsgSettingsWriteTest.java and b/java/test/auto_check_sbp_settings_MsgSettingsWriteTest.java differ diff --git a/java/test/auto_check_sbp_signing_MsgAesCmacSignatureTest.java b/java/test/auto_check_sbp_signing_MsgAesCmacSignatureTest.java index 36ca1657f6..792db64e4b 100644 --- a/java/test/auto_check_sbp_signing_MsgAesCmacSignatureTest.java +++ b/java/test/auto_check_sbp_signing_MsgAesCmacSignatureTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgAesCmacSignature.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgAesCmacSignature.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgAesCmacSignature; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgAesCmacSignatureTest { @@ -30,23 +34,15 @@ public class auto_check_sbp_signing_MsgAesCmacSignatureTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgAesCmacSignatureTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 2, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 0, (byte) 1, - (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, - (byte) 10, (byte) 11, (byte) 12, (byte) 13, (byte) 14, (byte) 15, (byte) 0, - (byte) 11, (byte) 22, (byte) 33, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC10, payload); - MsgAesCmacSignature msg = new MsgAesCmacSignature(sbp); + byte[] payload = new byte[] {(byte)1,(byte)2,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)0,(byte)11,(byte)22,(byte)33, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC10, payload ); + MsgAesCmacSignature msg = new MsgAesCmacSignature( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[0] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[0] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -54,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[1] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[1] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -64,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[2] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[2] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -74,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[3] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[3] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -84,8 +74,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -93,9 +82,7 @@ public void test1() throws Throwable { } value = msg.on_demand_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.on_demand_counter + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.on_demand_counter + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -103,9 +90,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -113,9 +98,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -123,9 +106,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -133,9 +114,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -143,9 +122,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -153,9 +130,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -163,9 +138,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -173,9 +146,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -183,9 +154,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -193,9 +162,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -203,9 +170,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -213,9 +178,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -223,9 +186,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -233,9 +194,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -243,9 +202,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -253,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -263,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -273,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -283,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -293,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stream_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stream_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stream_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_signing_MsgCertificateChainDepTest.java b/java/test/auto_check_sbp_signing_MsgCertificateChainDepTest.java index 33a457e369..50f35422c2 100644 --- a/java/test/auto_check_sbp_signing_MsgCertificateChainDepTest.java +++ b/java/test/auto_check_sbp_signing_MsgCertificateChainDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgCertificateChainDep.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgCertificateChainDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgCertificateChainDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgCertificateChainDepTest { @@ -30,154 +34,15 @@ public class auto_check_sbp_signing_MsgCertificateChainDepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgCertificateChainDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 20, - (byte) 21, - (byte) 22, - (byte) 23, - (byte) 24, - (byte) 25, - (byte) 26, - (byte) 27, - (byte) 28, - (byte) 29, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 232, - (byte) 7, - (byte) 3, - (byte) 30, - (byte) 12, - (byte) 34, - (byte) 59, - (byte) 21, - (byte) 205, - (byte) 91, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC05, payload); - MsgCertificateChainDep msg = new MsgCertificateChainDep(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)232,(byte)7,(byte)3,(byte)30,(byte)12,(byte)34,(byte)59,(byte)21,(byte)205,(byte)91,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC05, payload ); + MsgCertificateChainDep msg = new MsgCertificateChainDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.corrections_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[0] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[0] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -185,9 +50,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[1] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[1] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -195,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[2] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[2] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -205,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[3] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[3] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -215,9 +74,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[4] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[4] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -225,9 +82,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[5] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[5] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -235,9 +90,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[6] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[6] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -245,9 +98,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[7] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[7] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -255,9 +106,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[8] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[8] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -265,9 +114,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[9] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[9] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -275,9 +122,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -285,9 +130,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -295,9 +138,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -305,9 +146,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -315,9 +154,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -325,9 +162,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -335,9 +170,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -345,9 +178,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -355,9 +186,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -365,9 +194,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -375,9 +202,7 @@ public void test1() throws Throwable { } value = msg.expiration.day; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.day + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.expiration.day + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -385,9 +210,7 @@ public void test1() throws Throwable { } value = msg.expiration.hours; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.hours + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.expiration.hours + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -395,9 +218,7 @@ public void test1() throws Throwable { } value = msg.expiration.minutes; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.minutes + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.expiration.minutes + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -405,9 +226,7 @@ public void test1() throws Throwable { } value = msg.expiration.month; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.month + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.expiration.month + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -415,9 +234,7 @@ public void test1() throws Throwable { } value = msg.expiration.ns; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.ns + "' != '" + 123456789 + "'", - value.equals(BigInteger.valueOf(123456789L))); + org.junit.Assert.assertTrue("'" + msg.expiration.ns + "' != '" + 123456789 + "'", value.equals(BigInteger.valueOf( 123456789L ) ) ); } else { value = value.longValue(); expected = 123456789L; @@ -425,9 +242,7 @@ public void test1() throws Throwable { } value = msg.expiration.seconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.seconds + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.expiration.seconds + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -435,9 +250,7 @@ public void test1() throws Throwable { } value = msg.expiration.year; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.year + "' != '" + 2024 + "'", - value.equals(BigInteger.valueOf(2024L))); + org.junit.Assert.assertTrue("'" + msg.expiration.year + "' != '" + 2024 + "'", value.equals(BigInteger.valueOf( 2024L ) ) ); } else { value = value.longValue(); expected = 2024L; @@ -445,9 +258,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -455,9 +266,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -465,9 +274,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -475,9 +282,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[3] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[3] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -485,9 +290,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[4] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[4] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -495,9 +298,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[5] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[5] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -505,9 +306,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[6] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[6] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -515,9 +314,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[7] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[7] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -525,9 +322,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[8] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[8] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -535,9 +330,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[9] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[9] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -545,9 +338,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[10] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[10] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -555,9 +346,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[11] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[11] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -565,9 +354,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[12] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[12] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -575,9 +362,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[13] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[13] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -585,9 +370,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[14] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[14] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -595,9 +378,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[15] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[15] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -605,9 +386,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[16] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[16] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -615,9 +394,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[17] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[17] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -625,9 +402,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[18] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[18] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -635,9 +410,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[19] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[19] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -645,9 +418,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -655,9 +426,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -665,9 +434,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -675,9 +442,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -685,9 +450,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -695,9 +458,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -705,9 +466,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -715,9 +474,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -725,9 +482,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -735,9 +490,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -745,9 +498,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -755,9 +506,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -765,9 +514,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -775,9 +522,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -785,9 +530,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -795,9 +538,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -805,9 +546,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -815,9 +554,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -825,9 +562,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -835,9 +570,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -845,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -855,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -865,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -875,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -885,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -895,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -905,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -915,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -925,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -935,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -945,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -955,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -965,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -975,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -985,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -995,9 +698,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1005,9 +706,7 @@ public void test1() throws Throwable { } value = msg.signature[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[16] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[16] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1015,9 +714,7 @@ public void test1() throws Throwable { } value = msg.signature[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[17] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[17] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1025,9 +722,7 @@ public void test1() throws Throwable { } value = msg.signature[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[18] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[18] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1035,9 +730,7 @@ public void test1() throws Throwable { } value = msg.signature[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[19] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[19] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1045,9 +738,7 @@ public void test1() throws Throwable { } value = msg.signature[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[20] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[20] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1055,9 +746,7 @@ public void test1() throws Throwable { } value = msg.signature[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[21] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[21] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1065,9 +754,7 @@ public void test1() throws Throwable { } value = msg.signature[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[22] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[22] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1075,9 +762,7 @@ public void test1() throws Throwable { } value = msg.signature[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[23] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[23] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1085,9 +770,7 @@ public void test1() throws Throwable { } value = msg.signature[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[24] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[24] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1095,9 +778,7 @@ public void test1() throws Throwable { } value = msg.signature[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[25] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[25] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1105,9 +786,7 @@ public void test1() throws Throwable { } value = msg.signature[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[26] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[26] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1115,9 +794,7 @@ public void test1() throws Throwable { } value = msg.signature[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[27] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[27] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1125,9 +802,7 @@ public void test1() throws Throwable { } value = msg.signature[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[28] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[28] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1135,9 +810,7 @@ public void test1() throws Throwable { } value = msg.signature[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[29] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[29] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1145,9 +818,7 @@ public void test1() throws Throwable { } value = msg.signature[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[30] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[30] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1155,9 +826,7 @@ public void test1() throws Throwable { } value = msg.signature[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[31] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[31] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1165,9 +834,7 @@ public void test1() throws Throwable { } value = msg.signature[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[32] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[32] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1175,9 +842,7 @@ public void test1() throws Throwable { } value = msg.signature[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[33] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[33] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1185,9 +850,7 @@ public void test1() throws Throwable { } value = msg.signature[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[34] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[34] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1195,9 +858,7 @@ public void test1() throws Throwable { } value = msg.signature[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[35] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[35] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1205,9 +866,7 @@ public void test1() throws Throwable { } value = msg.signature[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[36] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[36] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1215,9 +874,7 @@ public void test1() throws Throwable { } value = msg.signature[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[37] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[37] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1225,9 +882,7 @@ public void test1() throws Throwable { } value = msg.signature[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[38] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[38] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1235,9 +890,7 @@ public void test1() throws Throwable { } value = msg.signature[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[39] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[39] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1245,9 +898,7 @@ public void test1() throws Throwable { } value = msg.signature[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[40] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[40] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1255,9 +906,7 @@ public void test1() throws Throwable { } value = msg.signature[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[41] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[41] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1265,9 +914,7 @@ public void test1() throws Throwable { } value = msg.signature[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[42] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[42] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1275,9 +922,7 @@ public void test1() throws Throwable { } value = msg.signature[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[43] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[43] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1285,9 +930,7 @@ public void test1() throws Throwable { } value = msg.signature[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[44] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[44] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1295,9 +938,7 @@ public void test1() throws Throwable { } value = msg.signature[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[45] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[45] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1305,9 +946,7 @@ public void test1() throws Throwable { } value = msg.signature[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[46] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[46] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1315,9 +954,7 @@ public void test1() throws Throwable { } value = msg.signature[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[47] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[47] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1325,9 +962,7 @@ public void test1() throws Throwable { } value = msg.signature[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[48] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[48] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1335,9 +970,7 @@ public void test1() throws Throwable { } value = msg.signature[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[49] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[49] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1345,9 +978,7 @@ public void test1() throws Throwable { } value = msg.signature[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[50] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[50] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1355,9 +986,7 @@ public void test1() throws Throwable { } value = msg.signature[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[51] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[51] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1365,9 +994,7 @@ public void test1() throws Throwable { } value = msg.signature[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[52] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[52] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1375,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.signature[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[53] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[53] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1385,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.signature[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[54] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[54] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1395,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.signature[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[55] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[55] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1405,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.signature[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[56] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[56] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1415,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.signature[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[57] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[57] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1425,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.signature[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[58] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[58] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1435,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.signature[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[59] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[59] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1445,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.signature[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[60] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[60] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1455,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.signature[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[61] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[61] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1465,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.signature[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[62] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[62] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1475,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.signature[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[63] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[63] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; diff --git a/java/test/auto_check_sbp_signing_MsgCertificateChainTest.java b/java/test/auto_check_sbp_signing_MsgCertificateChainTest.java index 6e0e6516cc..5eb59af29b 100644 --- a/java/test/auto_check_sbp_signing_MsgCertificateChainTest.java +++ b/java/test/auto_check_sbp_signing_MsgCertificateChainTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgCertificateChain.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgCertificateChain.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgCertificateChain; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgCertificateChainTest { @@ -30,163 +34,15 @@ public class auto_check_sbp_signing_MsgCertificateChainTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgCertificateChainTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 20, - (byte) 21, - (byte) 22, - (byte) 23, - (byte) 24, - (byte) 25, - (byte) 26, - (byte) 27, - (byte) 28, - (byte) 29, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 232, - (byte) 7, - (byte) 3, - (byte) 30, - (byte) 12, - (byte) 34, - (byte) 59, - (byte) 21, - (byte) 205, - (byte) 91, - (byte) 7, - (byte) 72, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 20, - (byte) 21, - (byte) 22, - (byte) 23, - (byte) 24, - (byte) 25, - (byte) 26, - (byte) 27, - (byte) 28, - (byte) 29, - (byte) 30, - (byte) 31, - (byte) 32, - (byte) 33, - (byte) 34, - (byte) 35, - (byte) 36, - (byte) 37, - (byte) 38, - (byte) 39, - (byte) 40, - (byte) 41, - (byte) 42, - (byte) 43, - (byte) 44, - (byte) 45, - (byte) 46, - (byte) 47, - (byte) 48, - (byte) 49, - (byte) 50, - (byte) 51, - (byte) 52, - (byte) 53, - (byte) 54, - (byte) 55, - (byte) 56, - (byte) 57, - (byte) 58, - (byte) 59, - (byte) 60, - (byte) 61, - (byte) 62, - (byte) 63, - (byte) 64, - (byte) 65, - (byte) 66, - (byte) 67, - (byte) 68, - (byte) 69, - (byte) 70, - (byte) 71, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC09, payload); - MsgCertificateChain msg = new MsgCertificateChain(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)232,(byte)7,(byte)3,(byte)30,(byte)12,(byte)34,(byte)59,(byte)21,(byte)205,(byte)91,(byte)7,(byte)72,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)30,(byte)31,(byte)32,(byte)33,(byte)34,(byte)35,(byte)36,(byte)37,(byte)38,(byte)39,(byte)40,(byte)41,(byte)42,(byte)43,(byte)44,(byte)45,(byte)46,(byte)47,(byte)48,(byte)49,(byte)50,(byte)51,(byte)52,(byte)53,(byte)54,(byte)55,(byte)56,(byte)57,(byte)58,(byte)59,(byte)60,(byte)61,(byte)62,(byte)63,(byte)64,(byte)65,(byte)66,(byte)67,(byte)68,(byte)69,(byte)70,(byte)71, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC09, payload ); + MsgCertificateChain msg = new MsgCertificateChain( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.corrections_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[0] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[0] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -194,9 +50,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[1] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[1] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -204,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[2] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[2] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -214,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[3] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[3] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -224,9 +74,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[4] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[4] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -234,9 +82,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[5] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[5] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -244,9 +90,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[6] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[6] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -254,9 +98,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[7] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[7] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -264,9 +106,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[8] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[8] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -274,9 +114,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[9] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[9] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -284,9 +122,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -294,9 +130,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -304,9 +138,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -314,9 +146,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -324,9 +154,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -334,9 +162,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -344,9 +170,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -354,9 +178,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -364,9 +186,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -374,9 +194,7 @@ public void test1() throws Throwable { } value = msg.corrections_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrections_certificate[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.corrections_certificate[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -384,9 +202,7 @@ public void test1() throws Throwable { } value = msg.expiration.day; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.day + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.expiration.day + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -394,9 +210,7 @@ public void test1() throws Throwable { } value = msg.expiration.hours; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.hours + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.expiration.hours + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -404,9 +218,7 @@ public void test1() throws Throwable { } value = msg.expiration.minutes; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.minutes + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.expiration.minutes + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -414,9 +226,7 @@ public void test1() throws Throwable { } value = msg.expiration.month; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.month + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.expiration.month + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -424,9 +234,7 @@ public void test1() throws Throwable { } value = msg.expiration.ns; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.ns + "' != '" + 123456789 + "'", - value.equals(BigInteger.valueOf(123456789L))); + org.junit.Assert.assertTrue("'" + msg.expiration.ns + "' != '" + 123456789 + "'", value.equals(BigInteger.valueOf( 123456789L ) ) ); } else { value = value.longValue(); expected = 123456789L; @@ -434,9 +242,7 @@ public void test1() throws Throwable { } value = msg.expiration.seconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.seconds + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.expiration.seconds + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -444,9 +250,7 @@ public void test1() throws Throwable { } value = msg.expiration.year; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.expiration.year + "' != '" + 2024 + "'", - value.equals(BigInteger.valueOf(2024L))); + org.junit.Assert.assertTrue("'" + msg.expiration.year + "' != '" + 2024 + "'", value.equals(BigInteger.valueOf( 2024L ) ) ); } else { value = value.longValue(); expected = 2024L; @@ -454,9 +258,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -464,9 +266,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -474,9 +274,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -484,9 +282,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[3] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[3] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -494,9 +290,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[4] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[4] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -504,9 +298,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[5] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[5] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -514,9 +306,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[6] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[6] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -524,9 +314,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[7] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[7] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -534,9 +322,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[8] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[8] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -544,9 +330,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[9] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[9] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -554,9 +338,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[10] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[10] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -564,9 +346,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[11] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[11] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -574,9 +354,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[12] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[12] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -584,9 +362,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[13] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[13] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -594,9 +370,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[14] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[14] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -604,9 +378,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[15] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[15] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -614,9 +386,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[16] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[16] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -624,9 +394,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[17] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[17] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -634,9 +402,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[18] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[18] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -644,9 +410,7 @@ public void test1() throws Throwable { } value = msg.intermediate_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.intermediate_certificate[19] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.intermediate_certificate[19] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -654,9 +418,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -664,9 +426,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -674,9 +434,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -684,9 +442,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -694,9 +450,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -704,9 +458,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -714,9 +466,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -724,9 +474,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -734,9 +482,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -744,9 +490,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -754,9 +498,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -764,9 +506,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -774,9 +514,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -784,9 +522,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -794,9 +530,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -804,9 +538,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -814,9 +546,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -824,9 +554,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -834,9 +562,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -844,9 +570,7 @@ public void test1() throws Throwable { } value = msg.root_certificate[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.root_certificate[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.root_certificate[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -854,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature.data[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -864,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature.data[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -874,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature.data[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -884,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature.data[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -894,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature.data[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -904,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature.data[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -914,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature.data[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -924,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature.data[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -934,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature.data[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -944,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature.data[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -954,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature.data[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -964,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature.data[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -974,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signature.data[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -984,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signature.data[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -994,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signature.data[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1004,9 +698,7 @@ public void test1() throws Throwable { } value = msg.signature.data[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1014,9 +706,7 @@ public void test1() throws Throwable { } value = msg.signature.data[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1024,9 +714,7 @@ public void test1() throws Throwable { } value = msg.signature.data[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1034,9 +722,7 @@ public void test1() throws Throwable { } value = msg.signature.data[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1044,9 +730,7 @@ public void test1() throws Throwable { } value = msg.signature.data[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1054,9 +738,7 @@ public void test1() throws Throwable { } value = msg.signature.data[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[20] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[20] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1064,9 +746,7 @@ public void test1() throws Throwable { } value = msg.signature.data[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[21] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[21] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1074,9 +754,7 @@ public void test1() throws Throwable { } value = msg.signature.data[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[22] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[22] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1084,9 +762,7 @@ public void test1() throws Throwable { } value = msg.signature.data[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[23] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[23] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1094,9 +770,7 @@ public void test1() throws Throwable { } value = msg.signature.data[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[24] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[24] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1104,9 +778,7 @@ public void test1() throws Throwable { } value = msg.signature.data[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[25] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[25] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1114,9 +786,7 @@ public void test1() throws Throwable { } value = msg.signature.data[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[26] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[26] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1124,9 +794,7 @@ public void test1() throws Throwable { } value = msg.signature.data[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[27] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[27] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1134,9 +802,7 @@ public void test1() throws Throwable { } value = msg.signature.data[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[28] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[28] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1144,9 +810,7 @@ public void test1() throws Throwable { } value = msg.signature.data[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[29] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[29] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1154,9 +818,7 @@ public void test1() throws Throwable { } value = msg.signature.data[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[30] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[30] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1164,9 +826,7 @@ public void test1() throws Throwable { } value = msg.signature.data[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[31] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[31] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1174,9 +834,7 @@ public void test1() throws Throwable { } value = msg.signature.data[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1184,9 +842,7 @@ public void test1() throws Throwable { } value = msg.signature.data[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[33] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[33] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1194,9 +850,7 @@ public void test1() throws Throwable { } value = msg.signature.data[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[34] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[34] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -1204,9 +858,7 @@ public void test1() throws Throwable { } value = msg.signature.data[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[35] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[35] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1214,9 +866,7 @@ public void test1() throws Throwable { } value = msg.signature.data[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[36] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[36] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1224,9 +874,7 @@ public void test1() throws Throwable { } value = msg.signature.data[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[37] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[37] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1234,9 +882,7 @@ public void test1() throws Throwable { } value = msg.signature.data[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[38] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[38] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1244,9 +890,7 @@ public void test1() throws Throwable { } value = msg.signature.data[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[39] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[39] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1254,9 +898,7 @@ public void test1() throws Throwable { } value = msg.signature.data[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[40] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[40] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1264,9 +906,7 @@ public void test1() throws Throwable { } value = msg.signature.data[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[41] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[41] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1274,9 +914,7 @@ public void test1() throws Throwable { } value = msg.signature.data[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[42] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[42] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1284,9 +922,7 @@ public void test1() throws Throwable { } value = msg.signature.data[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[43] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[43] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1294,9 +930,7 @@ public void test1() throws Throwable { } value = msg.signature.data[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[44] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[44] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1304,9 +938,7 @@ public void test1() throws Throwable { } value = msg.signature.data[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[45] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[45] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1314,9 +946,7 @@ public void test1() throws Throwable { } value = msg.signature.data[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[46] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[46] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1324,9 +954,7 @@ public void test1() throws Throwable { } value = msg.signature.data[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[47] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[47] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -1334,9 +962,7 @@ public void test1() throws Throwable { } value = msg.signature.data[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[48] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[48] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1344,9 +970,7 @@ public void test1() throws Throwable { } value = msg.signature.data[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[49] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[49] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1354,9 +978,7 @@ public void test1() throws Throwable { } value = msg.signature.data[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1364,9 +986,7 @@ public void test1() throws Throwable { } value = msg.signature.data[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[51] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[51] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1374,9 +994,7 @@ public void test1() throws Throwable { } value = msg.signature.data[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[52] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[52] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -1384,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.signature.data[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[53] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[53] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -1394,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.signature.data[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[54] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[54] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1404,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.signature.data[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[55] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[55] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1414,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.signature.data[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[56] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[56] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1424,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.signature.data[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[57] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[57] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1434,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.signature.data[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[58] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[58] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1444,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.signature.data[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[59] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[59] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1454,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.signature.data[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[60] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[60] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1464,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.signature.data[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[61] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[61] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1474,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.signature.data[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[62] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[62] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1484,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.signature.data[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[63] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[63] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1494,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.signature.data[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[64] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[64] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1504,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.signature.data[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[65] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[65] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1514,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.signature.data[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[66] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[66] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1524,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.signature.data[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[67] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[67] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1534,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.signature.data[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[68] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[68] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1544,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.signature.data[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[69] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[69] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1554,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.signature.data[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[70] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[70] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1564,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.signature.data[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[71] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[71] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1574,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.signature.len; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.len + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.signature.len + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; diff --git a/java/test/auto_check_sbp_signing_MsgEcdsaCertificateTest.java b/java/test/auto_check_sbp_signing_MsgEcdsaCertificateTest.java index 5f11117ef5..416228f756 100644 --- a/java/test/auto_check_sbp_signing_MsgEcdsaCertificateTest.java +++ b/java/test/auto_check_sbp_signing_MsgEcdsaCertificateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaCertificate.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaCertificate.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEcdsaCertificate; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEcdsaCertificateTest { @@ -30,272 +34,15 @@ public class auto_check_sbp_signing_MsgEcdsaCertificateTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEcdsaCertificateTest.test1"); - byte[] payload = - new byte[] { - (byte) 48, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 2, - (byte) 180, - (byte) 160, - (byte) 116, - (byte) 77, - (byte) 243, - (byte) 28, - (byte) 173, - (byte) 36, - (byte) 86, - (byte) 33, - (byte) 8, - (byte) 31, - (byte) 120, - (byte) 73, - (byte) 64, - (byte) 169, - (byte) 148, - (byte) 224, - (byte) 57, - (byte) 95, - (byte) 17, - (byte) 40, - (byte) 213, - (byte) 92, - (byte) 195, - (byte) 146, - (byte) 235, - (byte) 228, - (byte) 177, - (byte) 101, - (byte) 82, - (byte) 182, - (byte) 25, - (byte) 172, - (byte) 170, - (byte) 250, - (byte) 236, - (byte) 7, - (byte) 119, - (byte) 4, - (byte) 201, - (byte) 10, - (byte) 14, - (byte) 208, - (byte) 47, - (byte) 126, - (byte) 49, - (byte) 210, - (byte) 174, - (byte) 75, - (byte) 221, - (byte) 203, - (byte) 24, - (byte) 66, - (byte) 52, - (byte) 35, - (byte) 26, - (byte) 30, - (byte) 140, - (byte) 111, - (byte) 246, - (byte) 39, - (byte) 226, - (byte) 205, - (byte) 198, - (byte) 178, - (byte) 196, - (byte) 5, - (byte) 81, - (byte) 9, - (byte) 44, - (byte) 164, - (byte) 163, - (byte) 214, - (byte) 138, - (byte) 123, - (byte) 76, - (byte) 74, - (byte) 237, - (byte) 121, - (byte) 13, - (byte) 137, - (byte) 186, - (byte) 97, - (byte) 193, - (byte) 189, - (byte) 200, - (byte) 124, - (byte) 69, - (byte) 115, - (byte) 230, - (byte) 159, - (byte) 185, - (byte) 158, - (byte) 51, - (byte) 12, - (byte) 225, - (byte) 65, - (byte) 192, - (byte) 105, - (byte) 56, - (byte) 41, - (byte) 85, - (byte) 133, - (byte) 19, - (byte) 217, - (byte) 166, - (byte) 48, - (byte) 139, - (byte) 131, - (byte) 96, - (byte) 216, - (byte) 98, - (byte) 147, - (byte) 132, - (byte) 234, - (byte) 167, - (byte) 248, - (byte) 247, - (byte) 32, - (byte) 239, - (byte) 194, - (byte) 188, - (byte) 254, - (byte) 114, - (byte) 117, - (byte) 83, - (byte) 25, - (byte) 251, - (byte) 191, - (byte) 104, - (byte) 240, - (byte) 118, - (byte) 68, - (byte) 42, - (byte) 93, - (byte) 18, - (byte) 16, - (byte) 37, - (byte) 232, - (byte) 99, - (byte) 179, - (byte) 23, - (byte) 90, - (byte) 94, - (byte) 136, - (byte) 6, - (byte) 125, - (byte) 91, - (byte) 255, - (byte) 15, - (byte) 71, - (byte) 43, - (byte) 46, - (byte) 25, - (byte) 252, - (byte) 229, - (byte) 80, - (byte) 143, - (byte) 58, - (byte) 241, - (byte) 11, - (byte) 62, - (byte) 181, - (byte) 155, - (byte) 53, - (byte) 153, - (byte) 149, - (byte) 152, - (byte) 227, - (byte) 150, - (byte) 87, - (byte) 112, - (byte) 165, - (byte) 2, - (byte) 128, - (byte) 231, - (byte) 25, - (byte) 157, - (byte) 244, - (byte) 204, - (byte) 108, - (byte) 253, - (byte) 127, - (byte) 122, - (byte) 145, - (byte) 113, - (byte) 162, - (byte) 197, - (byte) 171, - (byte) 199, - (byte) 54, - (byte) 184, - (byte) 222, - (byte) 206, - (byte) 67, - (byte) 144, - (byte) 78, - (byte) 187, - (byte) 207, - (byte) 60, - (byte) 211, - (byte) 141, - (byte) 135, - (byte) 106, - (byte) 220, - (byte) 79, - (byte) 183, - (byte) 245, - (byte) 21, - (byte) 161, - (byte) 168, - (byte) 34, - (byte) 129, - (byte) 50, - (byte) 176, - (byte) 1, - (byte) 218, - (byte) 20, - (byte) 130, - (byte) 59, - (byte) 249, - (byte) 109, - (byte) 219, - (byte) 0, - (byte) 100, - (byte) 103, - (byte) 55, - (byte) 29, - (byte) 242, - (byte) 110, - (byte) 154, - (byte) 190, - (byte) 233, - (byte) 142, - (byte) 45, - (byte) 61, - (byte) 215, - (byte) 202, - (byte) 238, - (byte) 88, - (byte) 209, - (byte) 70, - (byte) 63, - (byte) 151, - (byte) 27, - (byte) 102, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC04, payload); - MsgEcdsaCertificate msg = new MsgEcdsaCertificate(sbp); + byte[] payload = new byte[] {(byte)48,(byte)10,(byte)11,(byte)12,(byte)13,(byte)2,(byte)180,(byte)160,(byte)116,(byte)77,(byte)243,(byte)28,(byte)173,(byte)36,(byte)86,(byte)33,(byte)8,(byte)31,(byte)120,(byte)73,(byte)64,(byte)169,(byte)148,(byte)224,(byte)57,(byte)95,(byte)17,(byte)40,(byte)213,(byte)92,(byte)195,(byte)146,(byte)235,(byte)228,(byte)177,(byte)101,(byte)82,(byte)182,(byte)25,(byte)172,(byte)170,(byte)250,(byte)236,(byte)7,(byte)119,(byte)4,(byte)201,(byte)10,(byte)14,(byte)208,(byte)47,(byte)126,(byte)49,(byte)210,(byte)174,(byte)75,(byte)221,(byte)203,(byte)24,(byte)66,(byte)52,(byte)35,(byte)26,(byte)30,(byte)140,(byte)111,(byte)246,(byte)39,(byte)226,(byte)205,(byte)198,(byte)178,(byte)196,(byte)5,(byte)81,(byte)9,(byte)44,(byte)164,(byte)163,(byte)214,(byte)138,(byte)123,(byte)76,(byte)74,(byte)237,(byte)121,(byte)13,(byte)137,(byte)186,(byte)97,(byte)193,(byte)189,(byte)200,(byte)124,(byte)69,(byte)115,(byte)230,(byte)159,(byte)185,(byte)158,(byte)51,(byte)12,(byte)225,(byte)65,(byte)192,(byte)105,(byte)56,(byte)41,(byte)85,(byte)133,(byte)19,(byte)217,(byte)166,(byte)48,(byte)139,(byte)131,(byte)96,(byte)216,(byte)98,(byte)147,(byte)132,(byte)234,(byte)167,(byte)248,(byte)247,(byte)32,(byte)239,(byte)194,(byte)188,(byte)254,(byte)114,(byte)117,(byte)83,(byte)25,(byte)251,(byte)191,(byte)104,(byte)240,(byte)118,(byte)68,(byte)42,(byte)93,(byte)18,(byte)16,(byte)37,(byte)232,(byte)99,(byte)179,(byte)23,(byte)90,(byte)94,(byte)136,(byte)6,(byte)125,(byte)91,(byte)255,(byte)15,(byte)71,(byte)43,(byte)46,(byte)25,(byte)252,(byte)229,(byte)80,(byte)143,(byte)58,(byte)241,(byte)11,(byte)62,(byte)181,(byte)155,(byte)53,(byte)153,(byte)149,(byte)152,(byte)227,(byte)150,(byte)87,(byte)112,(byte)165,(byte)2,(byte)128,(byte)231,(byte)25,(byte)157,(byte)244,(byte)204,(byte)108,(byte)253,(byte)127,(byte)122,(byte)145,(byte)113,(byte)162,(byte)197,(byte)171,(byte)199,(byte)54,(byte)184,(byte)222,(byte)206,(byte)67,(byte)144,(byte)78,(byte)187,(byte)207,(byte)60,(byte)211,(byte)141,(byte)135,(byte)106,(byte)220,(byte)79,(byte)183,(byte)245,(byte)21,(byte)161,(byte)168,(byte)34,(byte)129,(byte)50,(byte)176,(byte)1,(byte)218,(byte)20,(byte)130,(byte)59,(byte)249,(byte)109,(byte)219,(byte)0,(byte)100,(byte)103,(byte)55,(byte)29,(byte)242,(byte)110,(byte)154,(byte)190,(byte)233,(byte)142,(byte)45,(byte)61,(byte)215,(byte)202,(byte)238,(byte)88,(byte)209,(byte)70,(byte)63,(byte)151,(byte)27,(byte)102, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC04, payload ); + MsgEcdsaCertificate msg = new MsgEcdsaCertificate( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_bytes[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[0] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[0] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[1] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[1] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[2] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[2] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[3] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[3] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[4] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[4] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[5] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[5] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[6] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[6] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[7] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[7] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[8] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[8] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[9] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[9] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[10] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[10] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[11] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[11] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[12] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[12] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[13] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[13] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[14] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[14] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[15] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[15] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[16] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[16] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[17] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[17] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[18] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[18] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[19] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[19] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[20] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[20] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[21] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[21] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[22] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[22] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[23] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[23] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[24] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[24] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[25] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[25] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[26] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[26] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[27] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[27] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[28] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[28] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[29] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[29] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[30] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[30] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[31] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[31] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[32] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[32] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[33] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[33] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[34] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[34] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[35] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[35] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[36] + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[36] + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[37] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[37] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[38] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[38] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[39] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[39] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[40] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[40] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[41] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[41] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[42] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[42] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[43] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[43] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[44] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[44] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[45] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[45] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[46] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[46] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[47] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[47] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[48] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[48] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[49] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[49] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[50] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[50] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[51] + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[51] + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[52] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[52] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[53] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[53] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[54] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[54] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[55] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[55] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[56] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[56] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[57] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[57] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[58] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[58] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[59] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[59] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[60] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[60] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[61] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[61] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[62] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[62] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[63] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[63] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[64] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[64] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[65] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[65] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[66] + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[66] + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[67] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[67] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[68] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[68] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[69] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[69] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[70] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[70] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[71] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[71] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[72] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[72] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[73] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[73] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[74] + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[74] + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[75] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[75] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[76] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[76] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[77] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[77] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[78] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[78] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[79] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[79] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[80] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[80] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[81] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[81] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[82] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[82] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[83] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[83] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[84] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[84] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[85] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[85] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[86] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[86] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[87] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[87] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[88] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[88] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[89] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[89] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[90] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[90] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[91] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[91] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[92] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[92] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[93] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[93] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[94] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[94] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[95] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[95] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[96] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[96] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[97] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[97] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[98] + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[98] + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[99] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[99] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[100] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[100] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[101] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[101] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[102] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[102] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[103] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[103] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[104] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[104] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[105] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[105] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[106] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[106] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[107] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[107] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[108] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[108] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[109] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[109] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[110] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[110] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[111] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[111] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[112] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[112] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[113] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[113] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[114] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[114] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[115] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[115] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[116] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[116] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[117] + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[117] + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[118] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[118] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[119] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[119] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[120] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[120] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[121] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[121] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[122] + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[122] + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[123] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[123] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[124] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[124] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[125] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[125] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[126] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[126] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[127] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[127] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[128] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[128] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[129] + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[129] + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[130] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[130] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[131] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[131] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[132] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[132] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[133] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[133] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[134] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[134] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[135] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[135] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[136] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[136] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[137] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[137] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[138] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[138] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[139] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[139] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[140] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[140] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[141] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[141] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[142] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[142] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[143] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[143] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[144] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[144] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[145] + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[145] + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[146] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[146] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[147] + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[147] + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[148] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[148] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[149] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[149] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[150] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[150] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[151] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[151] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[152] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[152] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[153] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[153] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[154] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[154] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[155] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[155] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[156] + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[156] + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[157] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[157] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -1873,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[158] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[158] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1883,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[159] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[159] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1893,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[160] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[160] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1903,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[161] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[161] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1913,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[162] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[162] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1923,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[163] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[163] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1933,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[164] + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[164] + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1943,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[165] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[165] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -1953,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[166] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[166] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1963,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[167] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[167] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1973,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[168] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[168] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1983,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[169] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[169] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1993,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[170] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[170] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -2003,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[171] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[171] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -2013,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[172] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[172] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -2023,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[173] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[173] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -2033,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[174] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[174] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2043,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[175] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[175] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -2053,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[176] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[176] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -2063,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[177] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[177] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2073,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[178] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[178] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -2083,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[179] + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[179] + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2093,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[180] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[180] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -2103,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[181] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[181] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -2113,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[182] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[182] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -2123,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[183] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[183] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -2133,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[184] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[184] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -2143,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[185] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[185] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2153,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[186] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[186] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2163,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[187] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[187] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -2173,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[188] + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[188] + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -2183,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[189] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[189] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -2193,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[190] + "' != '" + 199 + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[190] + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -2203,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[191] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[191] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -2213,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[192] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[192] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -2223,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[193] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[193] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2233,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[194] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[194] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -2243,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[195] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[195] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2253,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[196] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[196] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2263,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[197] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[197] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -2273,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[198] + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[198] + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -2283,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[199] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[199] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2293,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[200] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[200] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -2303,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[201] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[201] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -2313,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[202] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[202] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -2323,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[203] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[203] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -2333,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[204] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[204] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2343,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[205] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[205] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -2353,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[206] + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[206] + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -2363,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[207] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[207] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2373,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[208] + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[208] + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -2383,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[209] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[209] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2393,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[210] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[210] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -2403,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[211] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[211] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2413,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[212] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[212] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -2423,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[213] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[213] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2433,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[214] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[214] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -2443,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[215] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[215] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -2453,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[216] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[216] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2463,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[217] + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[217] + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -2473,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[218] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[218] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2483,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[219] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[219] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -2493,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[220] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[220] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2503,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[221] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[221] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -2513,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[222] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[222] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -2523,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[223] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[223] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -2533,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[224] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[224] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2543,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[225] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[225] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -2553,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[226] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[226] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -2563,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[227] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[227] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -2573,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[228] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[228] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -2583,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[229] + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[229] + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -2593,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[230] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[230] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -2603,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[231] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[231] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -2613,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[232] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[232] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -2623,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[233] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[233] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -2633,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[234] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[234] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -2643,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[235] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[235] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2653,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[236] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[236] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -2663,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[237] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[237] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2673,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[238] + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[238] + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2683,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[239] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[239] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2693,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[240] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[240] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2703,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[241] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[241] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -2713,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[242] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[242] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -2723,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[243] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[243] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -2733,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[244] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[244] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2743,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[245] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[245] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -2753,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[246]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[246] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[246] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -2763,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2773,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[1] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[1] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2783,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[2] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[2] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -2793,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[3] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[3] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2803,8 +2050,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2812,8 +2058,7 @@ public void test1() throws Throwable { } value = msg.n_msg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_msg + "' != '" + 48 + "'", value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.n_msg + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; diff --git a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepATest.java b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepATest.java index b406991852..0f9a79e181 100644 --- a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepATest.java +++ b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignatureDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignatureDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEcdsaSignatureDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEcdsaSignatureDepATest { @@ -30,274 +34,15 @@ public class auto_check_sbp_signing_MsgEcdsaSignatureDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEcdsaSignatureDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 10, - (byte) 21, - (byte) 23, - (byte) 63, - (byte) 140, - (byte) 37, - (byte) 130, - (byte) 106, - (byte) 28, - (byte) 40, - (byte) 165, - (byte) 179, - (byte) 73, - (byte) 178, - (byte) 60, - (byte) 126, - (byte) 114, - (byte) 78, - (byte) 113, - (byte) 27, - (byte) 95, - (byte) 3, - (byte) 62, - (byte) 104, - (byte) 145, - (byte) 96, - (byte) 19, - (byte) 92, - (byte) 123, - (byte) 14, - (byte) 90, - (byte) 153, - (byte) 183, - (byte) 9, - (byte) 72, - (byte) 81, - (byte) 118, - (byte) 112, - (byte) 124, - (byte) 16, - (byte) 182, - (byte) 76, - (byte) 146, - (byte) 115, - (byte) 58, - (byte) 144, - (byte) 17, - (byte) 105, - (byte) 66, - (byte) 31, - (byte) 135, - (byte) 54, - (byte) 100, - (byte) 84, - (byte) 181, - (byte) 103, - (byte) 11, - (byte) 88, - (byte) 133, - (byte) 155, - (byte) 167, - (byte) 173, - (byte) 143, - (byte) 86, - (byte) 158, - (byte) 20, - (byte) 168, - (byte) 132, - (byte) 141, - (byte) 102, - (byte) 50, - (byte) 48, - (byte) 71, - (byte) 147, - (byte) 53, - (byte) 87, - (byte) 1, - (byte) 108, - (byte) 138, - (byte) 36, - (byte) 134, - (byte) 139, - (byte) 163, - (byte) 82, - (byte) 43, - (byte) 52, - (byte) 150, - (byte) 12, - (byte) 30, - (byte) 110, - (byte) 156, - (byte) 107, - (byte) 120, - (byte) 91, - (byte) 122, - (byte) 69, - (byte) 164, - (byte) 170, - (byte) 116, - (byte) 25, - (byte) 94, - (byte) 5, - (byte) 22, - (byte) 24, - (byte) 162, - (byte) 175, - (byte) 38, - (byte) 157, - (byte) 98, - (byte) 44, - (byte) 160, - (byte) 47, - (byte) 97, - (byte) 142, - (byte) 8, - (byte) 74, - (byte) 13, - (byte) 177, - (byte) 15, - (byte) 128, - (byte) 26, - (byte) 131, - (byte) 154, - (byte) 65, - (byte) 169, - (byte) 55, - (byte) 136, - (byte) 125, - (byte) 171, - (byte) 161, - (byte) 29, - (byte) 129, - (byte) 151, - (byte) 68, - (byte) 166, - (byte) 51, - (byte) 70, - (byte) 45, - (byte) 56, - (byte) 79, - (byte) 149, - (byte) 99, - (byte) 42, - (byte) 101, - (byte) 152, - (byte) 39, - (byte) 89, - (byte) 180, - (byte) 64, - (byte) 49, - (byte) 6, - (byte) 80, - (byte) 172, - (byte) 32, - (byte) 109, - (byte) 2, - (byte) 119, - (byte) 93, - (byte) 176, - (byte) 0, - (byte) 33, - (byte) 57, - (byte) 34, - (byte) 18, - (byte) 85, - (byte) 121, - (byte) 137, - (byte) 83, - (byte) 111, - (byte) 59, - (byte) 7, - (byte) 77, - (byte) 4, - (byte) 117, - (byte) 159, - (byte) 148, - (byte) 35, - (byte) 61, - (byte) 41, - (byte) 67, - (byte) 46, - (byte) 127, - (byte) 75, - (byte) 174, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC06, payload); - MsgEcdsaSignatureDepA msg = new MsgEcdsaSignatureDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)10,(byte)21,(byte)23,(byte)63,(byte)140,(byte)37,(byte)130,(byte)106,(byte)28,(byte)40,(byte)165,(byte)179,(byte)73,(byte)178,(byte)60,(byte)126,(byte)114,(byte)78,(byte)113,(byte)27,(byte)95,(byte)3,(byte)62,(byte)104,(byte)145,(byte)96,(byte)19,(byte)92,(byte)123,(byte)14,(byte)90,(byte)153,(byte)183,(byte)9,(byte)72,(byte)81,(byte)118,(byte)112,(byte)124,(byte)16,(byte)182,(byte)76,(byte)146,(byte)115,(byte)58,(byte)144,(byte)17,(byte)105,(byte)66,(byte)31,(byte)135,(byte)54,(byte)100,(byte)84,(byte)181,(byte)103,(byte)11,(byte)88,(byte)133,(byte)155,(byte)167,(byte)173,(byte)143,(byte)86,(byte)158,(byte)20,(byte)168,(byte)132,(byte)141,(byte)102,(byte)50,(byte)48,(byte)71,(byte)147,(byte)53,(byte)87,(byte)1,(byte)108,(byte)138,(byte)36,(byte)134,(byte)139,(byte)163,(byte)82,(byte)43,(byte)52,(byte)150,(byte)12,(byte)30,(byte)110,(byte)156,(byte)107,(byte)120,(byte)91,(byte)122,(byte)69,(byte)164,(byte)170,(byte)116,(byte)25,(byte)94,(byte)5,(byte)22,(byte)24,(byte)162,(byte)175,(byte)38,(byte)157,(byte)98,(byte)44,(byte)160,(byte)47,(byte)97,(byte)142,(byte)8,(byte)74,(byte)13,(byte)177,(byte)15,(byte)128,(byte)26,(byte)131,(byte)154,(byte)65,(byte)169,(byte)55,(byte)136,(byte)125,(byte)171,(byte)161,(byte)29,(byte)129,(byte)151,(byte)68,(byte)166,(byte)51,(byte)70,(byte)45,(byte)56,(byte)79,(byte)149,(byte)99,(byte)42,(byte)101,(byte)152,(byte)39,(byte)89,(byte)180,(byte)64,(byte)49,(byte)6,(byte)80,(byte)172,(byte)32,(byte)109,(byte)2,(byte)119,(byte)93,(byte)176,(byte)0,(byte)33,(byte)57,(byte)34,(byte)18,(byte)85,(byte)121,(byte)137,(byte)83,(byte)111,(byte)59,(byte)7,(byte)77,(byte)4,(byte)117,(byte)159,(byte)148,(byte)35,(byte)61,(byte)41,(byte)67,(byte)46,(byte)127,(byte)75,(byte)174, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC06, payload ); + MsgEcdsaSignatureDepA msg = new MsgEcdsaSignatureDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[0] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[0] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -305,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[1] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[1] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -315,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[2] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[2] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -325,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[3] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[3] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -335,8 +74,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -344,9 +82,7 @@ public void test1() throws Throwable { } value = msg.on_demand_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.on_demand_counter + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.on_demand_counter + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -354,9 +90,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -364,9 +98,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -374,9 +106,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -384,9 +114,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -394,9 +122,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -404,9 +130,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -414,9 +138,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -424,9 +146,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -434,9 +154,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -444,9 +162,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -454,9 +170,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -464,9 +178,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -474,9 +186,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -484,9 +194,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -494,9 +202,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -504,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -514,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signature[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[16] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[16] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -524,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signature[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[17] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[17] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -534,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signature[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[18] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[18] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -544,9 +242,7 @@ public void test1() throws Throwable { } value = msg.signature[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[19] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[19] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -554,9 +250,7 @@ public void test1() throws Throwable { } value = msg.signature[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[20] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[20] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -564,9 +258,7 @@ public void test1() throws Throwable { } value = msg.signature[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[21] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[21] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -574,9 +266,7 @@ public void test1() throws Throwable { } value = msg.signature[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[22] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[22] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -584,9 +274,7 @@ public void test1() throws Throwable { } value = msg.signature[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[23] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[23] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -594,9 +282,7 @@ public void test1() throws Throwable { } value = msg.signature[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[24] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[24] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -604,9 +290,7 @@ public void test1() throws Throwable { } value = msg.signature[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[25] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[25] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -614,9 +298,7 @@ public void test1() throws Throwable { } value = msg.signature[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[26] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[26] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -624,9 +306,7 @@ public void test1() throws Throwable { } value = msg.signature[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[27] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[27] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -634,9 +314,7 @@ public void test1() throws Throwable { } value = msg.signature[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[28] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[28] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -644,9 +322,7 @@ public void test1() throws Throwable { } value = msg.signature[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[29] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[29] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -654,9 +330,7 @@ public void test1() throws Throwable { } value = msg.signature[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[30] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[30] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -664,9 +338,7 @@ public void test1() throws Throwable { } value = msg.signature[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[31] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[31] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -674,9 +346,7 @@ public void test1() throws Throwable { } value = msg.signature[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[32] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[32] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -684,9 +354,7 @@ public void test1() throws Throwable { } value = msg.signature[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[33] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[33] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -694,9 +362,7 @@ public void test1() throws Throwable { } value = msg.signature[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[34] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[34] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -704,9 +370,7 @@ public void test1() throws Throwable { } value = msg.signature[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[35] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[35] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -714,9 +378,7 @@ public void test1() throws Throwable { } value = msg.signature[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[36] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[36] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -724,9 +386,7 @@ public void test1() throws Throwable { } value = msg.signature[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[37] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[37] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -734,9 +394,7 @@ public void test1() throws Throwable { } value = msg.signature[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[38] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[38] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -744,9 +402,7 @@ public void test1() throws Throwable { } value = msg.signature[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[39] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[39] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -754,9 +410,7 @@ public void test1() throws Throwable { } value = msg.signature[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[40] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[40] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -764,9 +418,7 @@ public void test1() throws Throwable { } value = msg.signature[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[41] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[41] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -774,9 +426,7 @@ public void test1() throws Throwable { } value = msg.signature[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[42] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[42] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -784,9 +434,7 @@ public void test1() throws Throwable { } value = msg.signature[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[43] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[43] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -794,9 +442,7 @@ public void test1() throws Throwable { } value = msg.signature[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[44] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[44] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -804,9 +450,7 @@ public void test1() throws Throwable { } value = msg.signature[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[45] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[45] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -814,9 +458,7 @@ public void test1() throws Throwable { } value = msg.signature[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[46] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[46] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -824,9 +466,7 @@ public void test1() throws Throwable { } value = msg.signature[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[47] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[47] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -834,9 +474,7 @@ public void test1() throws Throwable { } value = msg.signature[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[48] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[48] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -844,9 +482,7 @@ public void test1() throws Throwable { } value = msg.signature[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[49] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[49] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -854,9 +490,7 @@ public void test1() throws Throwable { } value = msg.signature[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[50] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[50] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -864,9 +498,7 @@ public void test1() throws Throwable { } value = msg.signature[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[51] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[51] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -874,9 +506,7 @@ public void test1() throws Throwable { } value = msg.signature[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[52] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[52] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -884,9 +514,7 @@ public void test1() throws Throwable { } value = msg.signature[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[53] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[53] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -894,9 +522,7 @@ public void test1() throws Throwable { } value = msg.signature[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[54] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[54] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -904,9 +530,7 @@ public void test1() throws Throwable { } value = msg.signature[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[55] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[55] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -914,9 +538,7 @@ public void test1() throws Throwable { } value = msg.signature[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[56] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[56] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -924,9 +546,7 @@ public void test1() throws Throwable { } value = msg.signature[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[57] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[57] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -934,9 +554,7 @@ public void test1() throws Throwable { } value = msg.signature[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[58] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[58] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -944,9 +562,7 @@ public void test1() throws Throwable { } value = msg.signature[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[59] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[59] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -954,9 +570,7 @@ public void test1() throws Throwable { } value = msg.signature[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[60] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[60] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -964,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[61] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[61] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -974,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[62] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[62] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -984,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[63] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[63] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -994,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1004,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1014,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1024,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[3] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[3] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1034,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[4] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[4] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1044,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[5] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[5] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1054,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[6] + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[6] + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1064,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[7] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[7] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1074,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[8] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[8] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1084,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[9] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[9] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1094,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[10] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[10] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1104,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[11] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[11] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1114,9 +698,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[12] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[12] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1124,9 +706,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[13] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[13] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1134,9 +714,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[14] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[14] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1144,9 +722,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[15] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[15] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1154,9 +730,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[16] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[16] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1164,9 +738,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[17] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[17] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1174,9 +746,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[18] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[18] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1184,9 +754,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[19] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[19] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1194,9 +762,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[20] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[20] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -1204,9 +770,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[21] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[21] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1214,9 +778,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[22] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[22] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1224,9 +786,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[23] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[23] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1234,9 +794,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[24] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[24] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1244,9 +802,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[25] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[25] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1254,9 +810,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[26] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[26] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1264,9 +818,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[27] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[27] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1274,9 +826,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[28] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[28] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1284,9 +834,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[29] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[29] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1294,9 +842,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[30] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[30] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1304,9 +850,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[31] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[31] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1314,9 +858,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[32] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[32] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -1324,9 +866,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[33] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[33] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1334,9 +874,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[34] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[34] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1344,9 +882,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[35] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[35] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1354,9 +890,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[36] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[36] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -1364,9 +898,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[37] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[37] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1374,9 +906,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[38] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[38] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1384,9 +914,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[39] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[39] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1394,9 +922,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[40] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[40] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1404,9 +930,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[41] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[41] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -1414,9 +938,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[42] + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[42] + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1424,9 +946,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[43] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[43] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1434,9 +954,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[44] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[44] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1444,9 +962,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[45] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[45] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -1454,9 +970,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[46] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[46] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1464,9 +978,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[47] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[47] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1474,9 +986,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[48] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[48] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1484,9 +994,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[49] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[49] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1494,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[50] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[50] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1504,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[51] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[51] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1514,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[52] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[52] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1524,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[53] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[53] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -1534,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[54] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[54] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1544,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[55] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[55] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1554,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[56] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[56] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1564,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[57] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[57] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1574,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[58] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[58] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1584,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[59] + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[59] + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1594,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[60] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[60] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1604,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[61] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[61] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1614,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[62] + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[62] + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1624,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[63] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[63] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1634,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[64] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[64] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1644,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[65] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[65] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1654,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[66] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[66] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1664,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[67] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[67] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1674,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[68] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[68] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1684,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[69] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[69] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1694,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[70] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[70] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1704,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[71] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[71] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1714,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[72] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[72] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1724,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[73] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[73] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1734,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[74] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[74] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -1744,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[75] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[75] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -1754,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[76] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[76] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1764,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[77] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[77] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1774,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[78] + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[78] + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1784,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[79] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[79] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1794,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[80] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[80] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1804,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[81] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[81] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1814,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[82] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[82] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1824,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[83] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[83] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1834,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[84] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[84] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1844,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[85] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[85] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -1854,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[86] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[86] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1864,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[87] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[87] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1874,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[88] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[88] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1884,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[89] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[89] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1894,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[90] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[90] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1904,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[91] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[91] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1914,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[92] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[92] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -1924,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[93] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[93] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1934,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[94] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[94] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1944,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[95] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[95] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1954,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[96] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[96] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1964,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[97] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[97] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1974,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[98] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[98] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1984,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[99] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[99] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1994,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[100] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[100] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -2004,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[101] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[101] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2014,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[102] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[102] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -2024,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[103] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[103] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -2034,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[104] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[104] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -2044,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[105] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[105] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -2054,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[106] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[106] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2064,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[107] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[107] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -2074,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[108] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[108] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -2084,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[109] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[109] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -2094,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[110] + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[110] + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -2104,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[111] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[111] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -2114,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[112] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[112] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -2124,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[113] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[113] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -2134,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[114] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[114] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -2144,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[115] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[115] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -2154,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[116] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[116] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2164,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[117] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[117] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -2174,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[118] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[118] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2184,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[119] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[119] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -2194,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[120] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[120] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -2204,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[121] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[121] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -2214,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[122] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[122] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -2224,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[123] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[123] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2234,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[124] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[124] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -2244,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[125] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[125] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -2254,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[126] + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[126] + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -2264,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[127] + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[127] + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -2274,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[128] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[128] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -2284,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[129] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[129] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -2294,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[130] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[130] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -2304,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[131] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[131] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2314,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[132] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[132] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2324,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[133] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[133] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2334,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[134] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[134] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -2344,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[135] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[135] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2354,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[136] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[136] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -2364,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[137] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[137] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2374,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[138] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[138] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2384,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[139] + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[139] + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -2394,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[140] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[140] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -2404,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[141] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[141] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -2414,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[142] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[142] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -2424,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[143] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[143] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -2434,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[144] + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[144] + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -2444,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[145] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[145] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -2454,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[146] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[146] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -2464,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[147] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[147] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2474,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[148] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[148] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -2484,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[149] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[149] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -2494,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[150] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[150] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2504,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[151] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[151] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -2514,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[152] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[152] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -2524,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[153] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[153] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -2534,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[154] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[154] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -2544,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[155] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[155] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2554,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[156] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[156] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2564,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[157] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[157] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -2574,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[158] + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[158] + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -2584,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[159] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[159] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2594,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[160] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[160] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -2604,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[161] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[161] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -2614,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[162] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[162] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -2624,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[163] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[163] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2634,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[164] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[164] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -2644,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[165] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[165] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -2654,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[166] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[166] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -2664,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[167] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[167] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2674,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[168] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[168] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -2684,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[169] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[169] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2694,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[170] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[170] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2704,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[171] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[171] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2714,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[172] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[172] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2724,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[173] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[173] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2734,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[174] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[174] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -2744,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[175] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[175] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2754,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[176] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[176] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -2764,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[177] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[177] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -2774,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[178] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[178] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -2784,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[179] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[179] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2794,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[180] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[180] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -2804,9 +2050,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[181] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[181] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -2814,9 +2058,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[182] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[182] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -2824,9 +2066,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[183] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[183] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2834,9 +2074,7 @@ public void test1() throws Throwable { } value = msg.stream_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stream_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stream_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepBTest.java b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepBTest.java index fe9be3c3b0..7f03a79770 100644 --- a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepBTest.java +++ b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignatureDepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignatureDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEcdsaSignatureDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEcdsaSignatureDepBTest { @@ -30,31 +34,15 @@ public class auto_check_sbp_signing_MsgEcdsaSignatureDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEcdsaSignatureDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 1, (byte) 2, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 72, - (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, - (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) 12, (byte) 13, (byte) 14, - (byte) 15, (byte) 16, (byte) 17, (byte) 18, (byte) 19, (byte) 20, (byte) 21, - (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 27, (byte) 28, - (byte) 29, (byte) 30, (byte) 31, (byte) 32, (byte) 33, (byte) 34, (byte) 35, - (byte) 36, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, - (byte) 43, (byte) 44, (byte) 45, (byte) 46, (byte) 47, (byte) 48, (byte) 49, - (byte) 50, (byte) 51, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, - (byte) 57, (byte) 58, (byte) 59, (byte) 60, (byte) 61, (byte) 62, (byte) 63, - (byte) 64, (byte) 65, (byte) 66, (byte) 67, (byte) 68, (byte) 69, (byte) 70, - (byte) 71, (byte) 10, (byte) 21, (byte) 23, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC07, payload); - MsgEcdsaSignatureDepB msg = new MsgEcdsaSignatureDepB(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)1,(byte)2,(byte)3,(byte)4,(byte)72,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)30,(byte)31,(byte)32,(byte)33,(byte)34,(byte)35,(byte)36,(byte)37,(byte)38,(byte)39,(byte)40,(byte)41,(byte)42,(byte)43,(byte)44,(byte)45,(byte)46,(byte)47,(byte)48,(byte)49,(byte)50,(byte)51,(byte)52,(byte)53,(byte)54,(byte)55,(byte)56,(byte)57,(byte)58,(byte)59,(byte)60,(byte)61,(byte)62,(byte)63,(byte)64,(byte)65,(byte)66,(byte)67,(byte)68,(byte)69,(byte)70,(byte)71,(byte)10,(byte)21,(byte)23, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC07, payload ); + MsgEcdsaSignatureDepB msg = new MsgEcdsaSignatureDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[0] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[0] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -62,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[1] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[1] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -72,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[2] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[2] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -82,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[3] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[3] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -92,8 +74,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -101,9 +82,7 @@ public void test1() throws Throwable { } value = msg.n_signature_bytes; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_signature_bytes + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.n_signature_bytes + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -111,9 +90,7 @@ public void test1() throws Throwable { } value = msg.on_demand_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.on_demand_counter + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.on_demand_counter + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -121,9 +98,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -131,9 +106,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -141,9 +114,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -151,9 +122,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -161,9 +130,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -171,9 +138,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -181,9 +146,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -191,9 +154,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -201,9 +162,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -211,9 +170,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -221,9 +178,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -231,9 +186,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -241,9 +194,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -251,9 +202,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -261,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -271,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -281,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signature[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signature[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -291,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signature[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signature[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -301,9 +242,7 @@ public void test1() throws Throwable { } value = msg.signature[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signature[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -311,9 +250,7 @@ public void test1() throws Throwable { } value = msg.signature[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signature[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -321,9 +258,7 @@ public void test1() throws Throwable { } value = msg.signature[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[20] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signature[20] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -331,9 +266,7 @@ public void test1() throws Throwable { } value = msg.signature[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[21] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signature[21] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -341,9 +274,7 @@ public void test1() throws Throwable { } value = msg.signature[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[22] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signature[22] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -351,9 +282,7 @@ public void test1() throws Throwable { } value = msg.signature[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[23] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signature[23] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -361,9 +290,7 @@ public void test1() throws Throwable { } value = msg.signature[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[24] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signature[24] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -371,9 +298,7 @@ public void test1() throws Throwable { } value = msg.signature[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[25] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signature[25] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -381,9 +306,7 @@ public void test1() throws Throwable { } value = msg.signature[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[26] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signature[26] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -391,9 +314,7 @@ public void test1() throws Throwable { } value = msg.signature[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[27] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signature[27] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -401,9 +322,7 @@ public void test1() throws Throwable { } value = msg.signature[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[28] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signature[28] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -411,9 +330,7 @@ public void test1() throws Throwable { } value = msg.signature[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[29] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signature[29] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -421,9 +338,7 @@ public void test1() throws Throwable { } value = msg.signature[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[30] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signature[30] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -431,9 +346,7 @@ public void test1() throws Throwable { } value = msg.signature[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[31] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signature[31] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -441,9 +354,7 @@ public void test1() throws Throwable { } value = msg.signature[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signature[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -451,9 +362,7 @@ public void test1() throws Throwable { } value = msg.signature[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[33] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signature[33] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -461,9 +370,7 @@ public void test1() throws Throwable { } value = msg.signature[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[34] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signature[34] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -471,9 +378,7 @@ public void test1() throws Throwable { } value = msg.signature[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[35] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signature[35] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -481,9 +386,7 @@ public void test1() throws Throwable { } value = msg.signature[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[36] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signature[36] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -491,9 +394,7 @@ public void test1() throws Throwable { } value = msg.signature[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[37] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signature[37] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -501,9 +402,7 @@ public void test1() throws Throwable { } value = msg.signature[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[38] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signature[38] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -511,9 +410,7 @@ public void test1() throws Throwable { } value = msg.signature[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[39] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signature[39] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -521,9 +418,7 @@ public void test1() throws Throwable { } value = msg.signature[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[40] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signature[40] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -531,9 +426,7 @@ public void test1() throws Throwable { } value = msg.signature[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[41] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signature[41] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -541,9 +434,7 @@ public void test1() throws Throwable { } value = msg.signature[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[42] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signature[42] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -551,9 +442,7 @@ public void test1() throws Throwable { } value = msg.signature[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[43] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signature[43] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -561,9 +450,7 @@ public void test1() throws Throwable { } value = msg.signature[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[44] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signature[44] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -571,9 +458,7 @@ public void test1() throws Throwable { } value = msg.signature[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[45] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signature[45] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -581,9 +466,7 @@ public void test1() throws Throwable { } value = msg.signature[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[46] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signature[46] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -591,9 +474,7 @@ public void test1() throws Throwable { } value = msg.signature[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[47] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signature[47] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -601,9 +482,7 @@ public void test1() throws Throwable { } value = msg.signature[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[48] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signature[48] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -611,9 +490,7 @@ public void test1() throws Throwable { } value = msg.signature[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[49] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signature[49] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -621,9 +498,7 @@ public void test1() throws Throwable { } value = msg.signature[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signature[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -631,9 +506,7 @@ public void test1() throws Throwable { } value = msg.signature[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[51] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signature[51] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -641,9 +514,7 @@ public void test1() throws Throwable { } value = msg.signature[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[52] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signature[52] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -651,9 +522,7 @@ public void test1() throws Throwable { } value = msg.signature[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[53] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signature[53] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -661,9 +530,7 @@ public void test1() throws Throwable { } value = msg.signature[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[54] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signature[54] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -671,9 +538,7 @@ public void test1() throws Throwable { } value = msg.signature[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[55] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signature[55] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -681,9 +546,7 @@ public void test1() throws Throwable { } value = msg.signature[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[56] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signature[56] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -691,9 +554,7 @@ public void test1() throws Throwable { } value = msg.signature[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[57] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signature[57] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -701,9 +562,7 @@ public void test1() throws Throwable { } value = msg.signature[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[58] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signature[58] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -711,9 +570,7 @@ public void test1() throws Throwable { } value = msg.signature[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[59] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signature[59] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -721,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[60] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signature[60] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -731,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[61] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signature[61] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -741,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[62] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signature[62] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -751,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[63] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signature[63] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -761,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[64] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.signature[64] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -771,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[65] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.signature[65] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -781,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[66] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.signature[66] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -791,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[67] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.signature[67] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -801,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[68] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.signature[68] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -811,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[69] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.signature[69] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -821,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[70] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.signature[70] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -831,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[71] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.signature[71] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -841,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -851,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -861,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -871,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stream_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stream_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stream_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureTest.java b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureTest.java index dd68ed3909..5ee07ce12f 100644 --- a/java/test/auto_check_sbp_signing_MsgEcdsaSignatureTest.java +++ b/java/test/auto_check_sbp_signing_MsgEcdsaSignatureTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignature.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEcdsaSignature.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEcdsaSignature; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEcdsaSignatureTest { @@ -30,31 +34,15 @@ public class auto_check_sbp_signing_MsgEcdsaSignatureTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEcdsaSignatureTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 1, (byte) 2, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 72, - (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, - (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) 12, (byte) 13, (byte) 14, - (byte) 15, (byte) 16, (byte) 17, (byte) 18, (byte) 19, (byte) 20, (byte) 21, - (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 27, (byte) 28, - (byte) 29, (byte) 30, (byte) 31, (byte) 32, (byte) 33, (byte) 34, (byte) 35, - (byte) 36, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, - (byte) 43, (byte) 44, (byte) 45, (byte) 46, (byte) 47, (byte) 48, (byte) 49, - (byte) 50, (byte) 51, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, - (byte) 57, (byte) 58, (byte) 59, (byte) 60, (byte) 61, (byte) 62, (byte) 63, - (byte) 64, (byte) 65, (byte) 66, (byte) 67, (byte) 68, (byte) 69, (byte) 70, - (byte) 71, (byte) 10, (byte) 21, (byte) 23, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC08, payload); - MsgEcdsaSignature msg = new MsgEcdsaSignature(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)1,(byte)2,(byte)3,(byte)4,(byte)72,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)30,(byte)31,(byte)32,(byte)33,(byte)34,(byte)35,(byte)36,(byte)37,(byte)38,(byte)39,(byte)40,(byte)41,(byte)42,(byte)43,(byte)44,(byte)45,(byte)46,(byte)47,(byte)48,(byte)49,(byte)50,(byte)51,(byte)52,(byte)53,(byte)54,(byte)55,(byte)56,(byte)57,(byte)58,(byte)59,(byte)60,(byte)61,(byte)62,(byte)63,(byte)64,(byte)65,(byte)66,(byte)67,(byte)68,(byte)69,(byte)70,(byte)71,(byte)10,(byte)21,(byte)23, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC08, payload ); + MsgEcdsaSignature msg = new MsgEcdsaSignature( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_id[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[0] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[0] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -62,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[1] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[1] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -72,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[2] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[2] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -82,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_id[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_id[3] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.certificate_id[3] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -92,8 +74,7 @@ public void test1() throws Throwable { } value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -101,9 +82,7 @@ public void test1() throws Throwable { } value = msg.on_demand_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.on_demand_counter + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.on_demand_counter + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -111,9 +90,7 @@ public void test1() throws Throwable { } value = msg.signature.data[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -121,9 +98,7 @@ public void test1() throws Throwable { } value = msg.signature.data[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -131,9 +106,7 @@ public void test1() throws Throwable { } value = msg.signature.data[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -141,9 +114,7 @@ public void test1() throws Throwable { } value = msg.signature.data[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -151,9 +122,7 @@ public void test1() throws Throwable { } value = msg.signature.data[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -161,9 +130,7 @@ public void test1() throws Throwable { } value = msg.signature.data[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -171,9 +138,7 @@ public void test1() throws Throwable { } value = msg.signature.data[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -181,9 +146,7 @@ public void test1() throws Throwable { } value = msg.signature.data[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -191,9 +154,7 @@ public void test1() throws Throwable { } value = msg.signature.data[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -201,9 +162,7 @@ public void test1() throws Throwable { } value = msg.signature.data[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -211,9 +170,7 @@ public void test1() throws Throwable { } value = msg.signature.data[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -221,9 +178,7 @@ public void test1() throws Throwable { } value = msg.signature.data[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -231,9 +186,7 @@ public void test1() throws Throwable { } value = msg.signature.data[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -241,9 +194,7 @@ public void test1() throws Throwable { } value = msg.signature.data[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -251,9 +202,7 @@ public void test1() throws Throwable { } value = msg.signature.data[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -261,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature.data[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -271,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signature.data[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -281,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signature.data[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -291,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signature.data[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -301,9 +242,7 @@ public void test1() throws Throwable { } value = msg.signature.data[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -311,9 +250,7 @@ public void test1() throws Throwable { } value = msg.signature.data[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[20] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[20] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -321,9 +258,7 @@ public void test1() throws Throwable { } value = msg.signature.data[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[21] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[21] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -331,9 +266,7 @@ public void test1() throws Throwable { } value = msg.signature.data[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[22] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[22] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -341,9 +274,7 @@ public void test1() throws Throwable { } value = msg.signature.data[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[23] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[23] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -351,9 +282,7 @@ public void test1() throws Throwable { } value = msg.signature.data[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[24] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[24] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -361,9 +290,7 @@ public void test1() throws Throwable { } value = msg.signature.data[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[25] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[25] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -371,9 +298,7 @@ public void test1() throws Throwable { } value = msg.signature.data[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[26] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[26] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -381,9 +306,7 @@ public void test1() throws Throwable { } value = msg.signature.data[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[27] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[27] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -391,9 +314,7 @@ public void test1() throws Throwable { } value = msg.signature.data[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[28] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[28] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -401,9 +322,7 @@ public void test1() throws Throwable { } value = msg.signature.data[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[29] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[29] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -411,9 +330,7 @@ public void test1() throws Throwable { } value = msg.signature.data[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[30] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[30] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -421,9 +338,7 @@ public void test1() throws Throwable { } value = msg.signature.data[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[31] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[31] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -431,9 +346,7 @@ public void test1() throws Throwable { } value = msg.signature.data[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -441,9 +354,7 @@ public void test1() throws Throwable { } value = msg.signature.data[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[33] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[33] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -451,9 +362,7 @@ public void test1() throws Throwable { } value = msg.signature.data[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[34] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[34] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -461,9 +370,7 @@ public void test1() throws Throwable { } value = msg.signature.data[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[35] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[35] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -471,9 +378,7 @@ public void test1() throws Throwable { } value = msg.signature.data[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[36] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[36] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -481,9 +386,7 @@ public void test1() throws Throwable { } value = msg.signature.data[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[37] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[37] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -491,9 +394,7 @@ public void test1() throws Throwable { } value = msg.signature.data[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[38] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[38] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -501,9 +402,7 @@ public void test1() throws Throwable { } value = msg.signature.data[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[39] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[39] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -511,9 +410,7 @@ public void test1() throws Throwable { } value = msg.signature.data[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[40] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[40] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -521,9 +418,7 @@ public void test1() throws Throwable { } value = msg.signature.data[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[41] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[41] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -531,9 +426,7 @@ public void test1() throws Throwable { } value = msg.signature.data[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[42] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[42] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -541,9 +434,7 @@ public void test1() throws Throwable { } value = msg.signature.data[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[43] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[43] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -551,9 +442,7 @@ public void test1() throws Throwable { } value = msg.signature.data[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[44] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[44] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -561,9 +450,7 @@ public void test1() throws Throwable { } value = msg.signature.data[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[45] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[45] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -571,9 +458,7 @@ public void test1() throws Throwable { } value = msg.signature.data[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[46] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[46] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -581,9 +466,7 @@ public void test1() throws Throwable { } value = msg.signature.data[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[47] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[47] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -591,9 +474,7 @@ public void test1() throws Throwable { } value = msg.signature.data[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[48] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[48] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -601,9 +482,7 @@ public void test1() throws Throwable { } value = msg.signature.data[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[49] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[49] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -611,9 +490,7 @@ public void test1() throws Throwable { } value = msg.signature.data[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -621,9 +498,7 @@ public void test1() throws Throwable { } value = msg.signature.data[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[51] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[51] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -631,9 +506,7 @@ public void test1() throws Throwable { } value = msg.signature.data[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[52] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[52] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -641,9 +514,7 @@ public void test1() throws Throwable { } value = msg.signature.data[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[53] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[53] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -651,9 +522,7 @@ public void test1() throws Throwable { } value = msg.signature.data[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[54] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[54] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -661,9 +530,7 @@ public void test1() throws Throwable { } value = msg.signature.data[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[55] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[55] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -671,9 +538,7 @@ public void test1() throws Throwable { } value = msg.signature.data[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[56] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[56] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -681,9 +546,7 @@ public void test1() throws Throwable { } value = msg.signature.data[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[57] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[57] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -691,9 +554,7 @@ public void test1() throws Throwable { } value = msg.signature.data[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[58] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[58] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -701,9 +562,7 @@ public void test1() throws Throwable { } value = msg.signature.data[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[59] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[59] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -711,9 +570,7 @@ public void test1() throws Throwable { } value = msg.signature.data[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[60] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[60] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -721,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature.data[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[61] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[61] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -731,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature.data[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[62] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[62] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -741,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature.data[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[63] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[63] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -751,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature.data[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[64] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[64] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -761,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature.data[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[65] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[65] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -771,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature.data[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[66] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[66] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -781,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature.data[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[67] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[67] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -791,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature.data[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[68] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[68] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -801,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature.data[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[69] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[69] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -811,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature.data[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[70] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[70] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -821,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature.data[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.data[71] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.signature.data[71] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -831,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature.len; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature.len + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.signature.len + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -841,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -851,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -861,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -871,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stream_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stream_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stream_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_signing_MsgEd25519CertificateDepTest.java b/java/test/auto_check_sbp_signing_MsgEd25519CertificateDepTest.java index 1296911d32..89bb72ab95 100644 --- a/java/test/auto_check_sbp_signing_MsgEd25519CertificateDepTest.java +++ b/java/test/auto_check_sbp_signing_MsgEd25519CertificateDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519CertificateDep.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519CertificateDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEd25519CertificateDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEd25519CertificateDepTest { @@ -29,127 +33,16 @@ public class auto_check_sbp_signing_MsgEd25519CertificateDepTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_signing_MsgEd25519CertificateDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 16, - (byte) 100, - (byte) 101, - (byte) 102, - (byte) 103, - (byte) 104, - (byte) 105, - (byte) 106, - (byte) 107, - (byte) 108, - (byte) 109, - (byte) 110, - (byte) 111, - (byte) 112, - (byte) 113, - (byte) 114, - (byte) 115, - (byte) 116, - (byte) 117, - (byte) 118, - (byte) 119, - (byte) 0, - (byte) 3, - (byte) 6, - (byte) 9, - (byte) 12, - (byte) 15, - (byte) 18, - (byte) 21, - (byte) 24, - (byte) 27, - (byte) 30, - (byte) 33, - (byte) 36, - (byte) 39, - (byte) 42, - (byte) 45, - (byte) 48, - (byte) 51, - (byte) 54, - (byte) 57, - (byte) 60, - (byte) 63, - (byte) 66, - (byte) 69, - (byte) 72, - (byte) 75, - (byte) 78, - (byte) 81, - (byte) 84, - (byte) 87, - (byte) 90, - (byte) 93, - (byte) 96, - (byte) 99, - (byte) 102, - (byte) 105, - (byte) 108, - (byte) 111, - (byte) 114, - (byte) 117, - (byte) 120, - (byte) 123, - (byte) 126, - (byte) 129, - (byte) 132, - (byte) 135, - (byte) 138, - (byte) 141, - (byte) 144, - (byte) 147, - (byte) 150, - (byte) 153, - (byte) 156, - (byte) 159, - (byte) 162, - (byte) 165, - (byte) 168, - (byte) 171, - (byte) 174, - (byte) 177, - (byte) 180, - (byte) 183, - (byte) 186, - (byte) 189, - (byte) 192, - (byte) 195, - (byte) 198, - (byte) 201, - (byte) 204, - (byte) 207, - (byte) 210, - (byte) 213, - (byte) 216, - (byte) 219, - (byte) 222, - (byte) 225, - (byte) 228, - (byte) 231, - (byte) 234, - (byte) 237, - (byte) 240, - (byte) 243, - (byte) 246, - (byte) 249, - (byte) 252, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC02, payload); - MsgEd25519CertificateDep msg = new MsgEd25519CertificateDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEd25519CertificateDepTest.test1"); + byte[] payload = new byte[] {(byte)16,(byte)100,(byte)101,(byte)102,(byte)103,(byte)104,(byte)105,(byte)106,(byte)107,(byte)108,(byte)109,(byte)110,(byte)111,(byte)112,(byte)113,(byte)114,(byte)115,(byte)116,(byte)117,(byte)118,(byte)119,(byte)0,(byte)3,(byte)6,(byte)9,(byte)12,(byte)15,(byte)18,(byte)21,(byte)24,(byte)27,(byte)30,(byte)33,(byte)36,(byte)39,(byte)42,(byte)45,(byte)48,(byte)51,(byte)54,(byte)57,(byte)60,(byte)63,(byte)66,(byte)69,(byte)72,(byte)75,(byte)78,(byte)81,(byte)84,(byte)87,(byte)90,(byte)93,(byte)96,(byte)99,(byte)102,(byte)105,(byte)108,(byte)111,(byte)114,(byte)117,(byte)120,(byte)123,(byte)126,(byte)129,(byte)132,(byte)135,(byte)138,(byte)141,(byte)144,(byte)147,(byte)150,(byte)153,(byte)156,(byte)159,(byte)162,(byte)165,(byte)168,(byte)171,(byte)174,(byte)177,(byte)180,(byte)183,(byte)186,(byte)189,(byte)192,(byte)195,(byte)198,(byte)201,(byte)204,(byte)207,(byte)210,(byte)213,(byte)216,(byte)219,(byte)222,(byte)225,(byte)228,(byte)231,(byte)234,(byte)237,(byte)240,(byte)243,(byte)246,(byte)249,(byte)252, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC02, payload ); + MsgEd25519CertificateDep msg = new MsgEd25519CertificateDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.certificate_bytes[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -157,9 +50,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[1] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[1] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -167,9 +58,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[2] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[2] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -177,9 +66,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[3] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[3] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -187,9 +74,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[4] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[4] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -197,9 +82,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[5] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[5] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -207,9 +90,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[6] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[6] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -217,9 +98,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[7] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[7] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -227,9 +106,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[8] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[8] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -237,9 +114,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[9] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[9] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -247,9 +122,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[10] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[10] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -257,9 +130,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[11] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[11] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -267,9 +138,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[12] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[12] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -277,9 +146,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[13] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[13] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -287,9 +154,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[14] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[14] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -297,9 +162,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[15] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[15] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -307,9 +170,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[16] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[16] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -317,9 +178,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[17] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[17] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -327,9 +186,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[18] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[18] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -337,9 +194,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[19] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[19] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -347,9 +202,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[20] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[20] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -357,9 +210,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[21] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[21] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -367,9 +218,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[22] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[22] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -377,9 +226,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[23] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[23] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -387,9 +234,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[24] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[24] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -397,9 +242,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[25] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[25] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -407,9 +250,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[26] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[26] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -417,9 +258,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[27] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[27] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -427,9 +266,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[28] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[28] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -437,9 +274,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[29] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[29] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -447,9 +282,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[30] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[30] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -457,9 +290,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[31] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[31] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -467,9 +298,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[32] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[32] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -477,9 +306,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[33] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[33] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -487,9 +314,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[34] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[34] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -497,9 +322,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[35] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[35] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -507,9 +330,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[36] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[36] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -517,9 +338,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[37] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[37] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -527,9 +346,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[38] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[38] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -537,9 +354,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[39] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[39] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -547,9 +362,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[40] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[40] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -557,9 +370,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[41] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[41] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -567,9 +378,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[42] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[42] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -577,9 +386,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[43] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[43] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -587,9 +394,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[44] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[44] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -597,9 +402,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[45] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[45] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -607,9 +410,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[46] + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[46] + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -617,9 +418,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[47] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[47] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -627,9 +426,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[48] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[48] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -637,9 +434,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[49] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[49] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -647,9 +442,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[50] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[50] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -657,9 +450,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[51] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[51] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -667,9 +458,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[52] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[52] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -677,9 +466,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[53] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[53] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -687,9 +474,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[54] + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[54] + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -697,9 +482,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[55] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[55] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -707,9 +490,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[56] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[56] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -717,9 +498,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[57] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[57] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -727,9 +506,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[58] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[58] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -737,9 +514,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[59] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[59] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -747,9 +522,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[60] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[60] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -757,9 +530,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[61] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[61] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -767,9 +538,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[62] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[62] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -777,9 +546,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[63] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[63] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -787,9 +554,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[64] + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[64] + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -797,9 +562,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[65] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[65] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -807,9 +570,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[66] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[66] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -817,9 +578,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[67] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[67] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -827,9 +586,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[68] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[68] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -837,9 +594,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[69] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[69] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -847,9 +602,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[70] + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[70] + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -857,9 +610,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[71] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[71] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -867,9 +618,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[72] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[72] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -877,9 +626,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[73] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[73] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -887,9 +634,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[74] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[74] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -897,9 +642,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[75] + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[75] + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -907,9 +650,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[76] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[76] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -917,9 +658,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[77] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[77] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -927,9 +666,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[78] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[78] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -937,9 +674,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[79] + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[79] + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -947,9 +682,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[80] + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[80] + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -957,9 +690,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[81] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[81] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -967,9 +698,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[82] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[82] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -977,9 +706,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[83] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[83] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -987,9 +714,7 @@ public void test1() throws Throwable { } value = msg.certificate_bytes[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.certificate_bytes[84] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.certificate_bytes[84] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -997,9 +722,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[0] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[0] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1007,9 +730,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[1] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[1] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1017,9 +738,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[2] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[2] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1027,9 +746,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[3] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[3] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1037,9 +754,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[4] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[4] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1047,9 +762,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[5] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[5] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1057,9 +770,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[6] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[6] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1067,9 +778,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[7] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[7] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1077,9 +786,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[8] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[8] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1087,9 +794,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[9] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[9] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1097,9 +802,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[10] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[10] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1107,9 +810,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[11] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[11] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -1117,9 +818,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[12] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[12] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1127,9 +826,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[13] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[13] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1137,9 +834,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[14] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[14] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1147,9 +842,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[15] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[15] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1157,9 +850,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[16] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[16] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1167,9 +858,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[17] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[17] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -1177,9 +866,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[18] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[18] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -1187,9 +874,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[19] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[19] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -1197,8 +882,7 @@ public void test1() throws Throwable { } value = msg.n_msg; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_msg + "' != '" + 16 + "'", value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.n_msg + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; diff --git a/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepATest.java b/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepATest.java index e7d1d7203d..40e1b520cd 100644 --- a/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepATest.java +++ b/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519SignatureDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519SignatureDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEd25519SignatureDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEd25519SignatureDepATest { @@ -30,203 +34,15 @@ public class auto_check_sbp_signing_MsgEd25519SignatureDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEd25519SignatureDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 20, - (byte) 21, - (byte) 22, - (byte) 23, - (byte) 24, - (byte) 25, - (byte) 26, - (byte) 27, - (byte) 28, - (byte) 29, - (byte) 30, - (byte) 31, - (byte) 32, - (byte) 33, - (byte) 34, - (byte) 35, - (byte) 36, - (byte) 37, - (byte) 38, - (byte) 39, - (byte) 40, - (byte) 41, - (byte) 42, - (byte) 43, - (byte) 44, - (byte) 45, - (byte) 46, - (byte) 47, - (byte) 48, - (byte) 49, - (byte) 50, - (byte) 51, - (byte) 52, - (byte) 53, - (byte) 54, - (byte) 55, - (byte) 56, - (byte) 57, - (byte) 58, - (byte) 59, - (byte) 60, - (byte) 61, - (byte) 62, - (byte) 63, - (byte) 100, - (byte) 101, - (byte) 102, - (byte) 103, - (byte) 104, - (byte) 105, - (byte) 106, - (byte) 107, - (byte) 108, - (byte) 109, - (byte) 110, - (byte) 111, - (byte) 112, - (byte) 113, - (byte) 114, - (byte) 115, - (byte) 116, - (byte) 117, - (byte) 118, - (byte) 119, - (byte) 136, - (byte) 19, - (byte) 0, - (byte) 0, - (byte) 114, - (byte) 20, - (byte) 0, - (byte) 0, - (byte) 92, - (byte) 21, - (byte) 0, - (byte) 0, - (byte) 70, - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 23, - (byte) 0, - (byte) 0, - (byte) 26, - (byte) 24, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 238, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 216, - (byte) 26, - (byte) 0, - (byte) 0, - (byte) 194, - (byte) 27, - (byte) 0, - (byte) 0, - (byte) 172, - (byte) 28, - (byte) 0, - (byte) 0, - (byte) 150, - (byte) 29, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 30, - (byte) 0, - (byte) 0, - (byte) 106, - (byte) 31, - (byte) 0, - (byte) 0, - (byte) 84, - (byte) 32, - (byte) 0, - (byte) 0, - (byte) 62, - (byte) 33, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 34, - (byte) 0, - (byte) 0, - (byte) 18, - (byte) 35, - (byte) 0, - (byte) 0, - (byte) 252, - (byte) 35, - (byte) 0, - (byte) 0, - (byte) 230, - (byte) 36, - (byte) 0, - (byte) 0, - (byte) 208, - (byte) 37, - (byte) 0, - (byte) 0, - (byte) 186, - (byte) 38, - (byte) 0, - (byte) 0, - (byte) 164, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 142, - (byte) 40, - (byte) 0, - (byte) 0, - (byte) 120, - (byte) 41, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC01, payload); - MsgEd25519SignatureDepA msg = new MsgEd25519SignatureDepA(sbp); + byte[] payload = new byte[] {(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)30,(byte)31,(byte)32,(byte)33,(byte)34,(byte)35,(byte)36,(byte)37,(byte)38,(byte)39,(byte)40,(byte)41,(byte)42,(byte)43,(byte)44,(byte)45,(byte)46,(byte)47,(byte)48,(byte)49,(byte)50,(byte)51,(byte)52,(byte)53,(byte)54,(byte)55,(byte)56,(byte)57,(byte)58,(byte)59,(byte)60,(byte)61,(byte)62,(byte)63,(byte)100,(byte)101,(byte)102,(byte)103,(byte)104,(byte)105,(byte)106,(byte)107,(byte)108,(byte)109,(byte)110,(byte)111,(byte)112,(byte)113,(byte)114,(byte)115,(byte)116,(byte)117,(byte)118,(byte)119,(byte)136,(byte)19,(byte)0,(byte)0,(byte)114,(byte)20,(byte)0,(byte)0,(byte)92,(byte)21,(byte)0,(byte)0,(byte)70,(byte)22,(byte)0,(byte)0,(byte)48,(byte)23,(byte)0,(byte)0,(byte)26,(byte)24,(byte)0,(byte)0,(byte)4,(byte)25,(byte)0,(byte)0,(byte)238,(byte)25,(byte)0,(byte)0,(byte)216,(byte)26,(byte)0,(byte)0,(byte)194,(byte)27,(byte)0,(byte)0,(byte)172,(byte)28,(byte)0,(byte)0,(byte)150,(byte)29,(byte)0,(byte)0,(byte)128,(byte)30,(byte)0,(byte)0,(byte)106,(byte)31,(byte)0,(byte)0,(byte)84,(byte)32,(byte)0,(byte)0,(byte)62,(byte)33,(byte)0,(byte)0,(byte)40,(byte)34,(byte)0,(byte)0,(byte)18,(byte)35,(byte)0,(byte)0,(byte)252,(byte)35,(byte)0,(byte)0,(byte)230,(byte)36,(byte)0,(byte)0,(byte)208,(byte)37,(byte)0,(byte)0,(byte)186,(byte)38,(byte)0,(byte)0,(byte)164,(byte)39,(byte)0,(byte)0,(byte)142,(byte)40,(byte)0,(byte)0,(byte)120,(byte)41,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC01, payload ); + MsgEd25519SignatureDepA msg = new MsgEd25519SignatureDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.fingerprint[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[0] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[0] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -234,9 +50,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[1] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[1] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -244,9 +58,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[2] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[2] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -254,9 +66,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[3] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[3] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -264,9 +74,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[4] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[4] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -274,9 +82,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[5] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[5] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -284,9 +90,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[6] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[6] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -294,9 +98,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[7] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[7] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -304,9 +106,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[8] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[8] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -314,9 +114,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[9] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[9] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -324,9 +122,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[10] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[10] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -334,9 +130,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[11] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[11] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -344,9 +138,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[12] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[12] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -354,9 +146,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[13] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[13] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -364,9 +154,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[14] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[14] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -374,9 +162,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[15] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[15] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -384,9 +170,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[16] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[16] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -394,9 +178,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[17] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[17] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -404,9 +186,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[18] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[18] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -414,9 +194,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[19] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[19] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -424,9 +202,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -434,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -444,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -454,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -464,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -474,9 +242,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -484,9 +250,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -494,9 +258,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -504,9 +266,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -514,9 +274,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -524,9 +282,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -534,9 +290,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -544,9 +298,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -554,9 +306,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -564,9 +314,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -574,9 +322,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -584,9 +330,7 @@ public void test1() throws Throwable { } value = msg.signature[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signature[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -594,9 +338,7 @@ public void test1() throws Throwable { } value = msg.signature[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signature[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -604,9 +346,7 @@ public void test1() throws Throwable { } value = msg.signature[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signature[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -614,9 +354,7 @@ public void test1() throws Throwable { } value = msg.signature[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signature[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -624,9 +362,7 @@ public void test1() throws Throwable { } value = msg.signature[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[20] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signature[20] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -634,9 +370,7 @@ public void test1() throws Throwable { } value = msg.signature[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[21] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signature[21] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -644,9 +378,7 @@ public void test1() throws Throwable { } value = msg.signature[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[22] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signature[22] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -654,9 +386,7 @@ public void test1() throws Throwable { } value = msg.signature[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[23] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signature[23] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -664,9 +394,7 @@ public void test1() throws Throwable { } value = msg.signature[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[24] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signature[24] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -674,9 +402,7 @@ public void test1() throws Throwable { } value = msg.signature[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[25] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signature[25] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -684,9 +410,7 @@ public void test1() throws Throwable { } value = msg.signature[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[26] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signature[26] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -694,9 +418,7 @@ public void test1() throws Throwable { } value = msg.signature[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[27] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signature[27] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -704,9 +426,7 @@ public void test1() throws Throwable { } value = msg.signature[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[28] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signature[28] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -714,9 +434,7 @@ public void test1() throws Throwable { } value = msg.signature[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[29] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signature[29] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -724,9 +442,7 @@ public void test1() throws Throwable { } value = msg.signature[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[30] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signature[30] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -734,9 +450,7 @@ public void test1() throws Throwable { } value = msg.signature[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[31] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signature[31] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -744,9 +458,7 @@ public void test1() throws Throwable { } value = msg.signature[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signature[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -754,9 +466,7 @@ public void test1() throws Throwable { } value = msg.signature[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[33] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signature[33] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -764,9 +474,7 @@ public void test1() throws Throwable { } value = msg.signature[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[34] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signature[34] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -774,9 +482,7 @@ public void test1() throws Throwable { } value = msg.signature[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[35] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signature[35] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -784,9 +490,7 @@ public void test1() throws Throwable { } value = msg.signature[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[36] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signature[36] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -794,9 +498,7 @@ public void test1() throws Throwable { } value = msg.signature[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[37] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signature[37] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -804,9 +506,7 @@ public void test1() throws Throwable { } value = msg.signature[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[38] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signature[38] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -814,9 +514,7 @@ public void test1() throws Throwable { } value = msg.signature[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[39] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signature[39] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -824,9 +522,7 @@ public void test1() throws Throwable { } value = msg.signature[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[40] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signature[40] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -834,9 +530,7 @@ public void test1() throws Throwable { } value = msg.signature[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[41] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signature[41] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -844,9 +538,7 @@ public void test1() throws Throwable { } value = msg.signature[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[42] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signature[42] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -854,9 +546,7 @@ public void test1() throws Throwable { } value = msg.signature[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[43] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signature[43] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -864,9 +554,7 @@ public void test1() throws Throwable { } value = msg.signature[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[44] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signature[44] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -874,9 +562,7 @@ public void test1() throws Throwable { } value = msg.signature[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[45] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signature[45] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -884,9 +570,7 @@ public void test1() throws Throwable { } value = msg.signature[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[46] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signature[46] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -894,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[47] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signature[47] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -904,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[48] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signature[48] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -914,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[49] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signature[49] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -924,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signature[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -934,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[51] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signature[51] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -944,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[52] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signature[52] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -954,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[53] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signature[53] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -964,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[54] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signature[54] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -974,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[55] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signature[55] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -984,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[56] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signature[56] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -994,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[57] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signature[57] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1004,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[58] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signature[58] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1014,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signature[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[59] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signature[59] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1024,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signature[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[60] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signature[60] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1034,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signature[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[61] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signature[61] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1044,9 +698,7 @@ public void test1() throws Throwable { } value = msg.signature[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[62] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signature[62] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1054,9 +706,7 @@ public void test1() throws Throwable { } value = msg.signature[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[63] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signature[63] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1064,9 +714,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 5000 + "'", - value.equals(BigInteger.valueOf(5000L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 5000 + "'", value.equals(BigInteger.valueOf( 5000L ) ) ); } else { value = value.longValue(); expected = 5000L; @@ -1074,9 +722,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 5234 + "'", - value.equals(BigInteger.valueOf(5234L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 5234 + "'", value.equals(BigInteger.valueOf( 5234L ) ) ); } else { value = value.longValue(); expected = 5234L; @@ -1084,9 +730,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 5468 + "'", - value.equals(BigInteger.valueOf(5468L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 5468 + "'", value.equals(BigInteger.valueOf( 5468L ) ) ); } else { value = value.longValue(); expected = 5468L; @@ -1094,9 +738,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[3] + "' != '" + 5702 + "'", - value.equals(BigInteger.valueOf(5702L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[3] + "' != '" + 5702 + "'", value.equals(BigInteger.valueOf( 5702L ) ) ); } else { value = value.longValue(); expected = 5702L; @@ -1104,9 +746,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[4] + "' != '" + 5936 + "'", - value.equals(BigInteger.valueOf(5936L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[4] + "' != '" + 5936 + "'", value.equals(BigInteger.valueOf( 5936L ) ) ); } else { value = value.longValue(); expected = 5936L; @@ -1114,9 +754,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[5] + "' != '" + 6170 + "'", - value.equals(BigInteger.valueOf(6170L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[5] + "' != '" + 6170 + "'", value.equals(BigInteger.valueOf( 6170L ) ) ); } else { value = value.longValue(); expected = 6170L; @@ -1124,9 +762,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[6] + "' != '" + 6404 + "'", - value.equals(BigInteger.valueOf(6404L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[6] + "' != '" + 6404 + "'", value.equals(BigInteger.valueOf( 6404L ) ) ); } else { value = value.longValue(); expected = 6404L; @@ -1134,9 +770,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[7] + "' != '" + 6638 + "'", - value.equals(BigInteger.valueOf(6638L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[7] + "' != '" + 6638 + "'", value.equals(BigInteger.valueOf( 6638L ) ) ); } else { value = value.longValue(); expected = 6638L; @@ -1144,9 +778,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[8] + "' != '" + 6872 + "'", - value.equals(BigInteger.valueOf(6872L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[8] + "' != '" + 6872 + "'", value.equals(BigInteger.valueOf( 6872L ) ) ); } else { value = value.longValue(); expected = 6872L; @@ -1154,9 +786,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[9] + "' != '" + 7106 + "'", - value.equals(BigInteger.valueOf(7106L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[9] + "' != '" + 7106 + "'", value.equals(BigInteger.valueOf( 7106L ) ) ); } else { value = value.longValue(); expected = 7106L; @@ -1164,9 +794,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[10] + "' != '" + 7340 + "'", - value.equals(BigInteger.valueOf(7340L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[10] + "' != '" + 7340 + "'", value.equals(BigInteger.valueOf( 7340L ) ) ); } else { value = value.longValue(); expected = 7340L; @@ -1174,9 +802,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[11] + "' != '" + 7574 + "'", - value.equals(BigInteger.valueOf(7574L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[11] + "' != '" + 7574 + "'", value.equals(BigInteger.valueOf( 7574L ) ) ); } else { value = value.longValue(); expected = 7574L; @@ -1184,9 +810,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[12] + "' != '" + 7808 + "'", - value.equals(BigInteger.valueOf(7808L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[12] + "' != '" + 7808 + "'", value.equals(BigInteger.valueOf( 7808L ) ) ); } else { value = value.longValue(); expected = 7808L; @@ -1194,9 +818,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[13] + "' != '" + 8042 + "'", - value.equals(BigInteger.valueOf(8042L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[13] + "' != '" + 8042 + "'", value.equals(BigInteger.valueOf( 8042L ) ) ); } else { value = value.longValue(); expected = 8042L; @@ -1204,9 +826,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[14] + "' != '" + 8276 + "'", - value.equals(BigInteger.valueOf(8276L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[14] + "' != '" + 8276 + "'", value.equals(BigInteger.valueOf( 8276L ) ) ); } else { value = value.longValue(); expected = 8276L; @@ -1214,9 +834,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[15] + "' != '" + 8510 + "'", - value.equals(BigInteger.valueOf(8510L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[15] + "' != '" + 8510 + "'", value.equals(BigInteger.valueOf( 8510L ) ) ); } else { value = value.longValue(); expected = 8510L; @@ -1224,9 +842,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[16] + "' != '" + 8744 + "'", - value.equals(BigInteger.valueOf(8744L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[16] + "' != '" + 8744 + "'", value.equals(BigInteger.valueOf( 8744L ) ) ); } else { value = value.longValue(); expected = 8744L; @@ -1234,9 +850,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[17] + "' != '" + 8978 + "'", - value.equals(BigInteger.valueOf(8978L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[17] + "' != '" + 8978 + "'", value.equals(BigInteger.valueOf( 8978L ) ) ); } else { value = value.longValue(); expected = 8978L; @@ -1244,9 +858,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[18] + "' != '" + 9212 + "'", - value.equals(BigInteger.valueOf(9212L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[18] + "' != '" + 9212 + "'", value.equals(BigInteger.valueOf( 9212L ) ) ); } else { value = value.longValue(); expected = 9212L; @@ -1254,9 +866,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[19] + "' != '" + 9446 + "'", - value.equals(BigInteger.valueOf(9446L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[19] + "' != '" + 9446 + "'", value.equals(BigInteger.valueOf( 9446L ) ) ); } else { value = value.longValue(); expected = 9446L; @@ -1264,9 +874,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[20] + "' != '" + 9680 + "'", - value.equals(BigInteger.valueOf(9680L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[20] + "' != '" + 9680 + "'", value.equals(BigInteger.valueOf( 9680L ) ) ); } else { value = value.longValue(); expected = 9680L; @@ -1274,9 +882,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[21] + "' != '" + 9914 + "'", - value.equals(BigInteger.valueOf(9914L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[21] + "' != '" + 9914 + "'", value.equals(BigInteger.valueOf( 9914L ) ) ); } else { value = value.longValue(); expected = 9914L; @@ -1284,9 +890,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[22] + "' != '" + 10148 + "'", - value.equals(BigInteger.valueOf(10148L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[22] + "' != '" + 10148 + "'", value.equals(BigInteger.valueOf( 10148L ) ) ); } else { value = value.longValue(); expected = 10148L; @@ -1294,9 +898,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[23] + "' != '" + 10382 + "'", - value.equals(BigInteger.valueOf(10382L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[23] + "' != '" + 10382 + "'", value.equals(BigInteger.valueOf( 10382L ) ) ); } else { value = value.longValue(); expected = 10382L; @@ -1304,9 +906,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[24] + "' != '" + 10616 + "'", - value.equals(BigInteger.valueOf(10616L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[24] + "' != '" + 10616 + "'", value.equals(BigInteger.valueOf( 10616L ) ) ); } else { value = value.longValue(); expected = 10616L; diff --git a/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepBTest.java b/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepBTest.java index 507eef6e54..20682333a9 100644 --- a/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepBTest.java +++ b/java/test/auto_check_sbp_signing_MsgEd25519SignatureDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519SignatureDepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_MsgEd25519SignatureDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.signing.MsgEd25519SignatureDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_signing_MsgEd25519SignatureDepBTest { @@ -30,205 +34,15 @@ public class auto_check_sbp_signing_MsgEd25519SignatureDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_signing_MsgEd25519SignatureDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 4, - (byte) 5, - (byte) 6, - (byte) 7, - (byte) 8, - (byte) 9, - (byte) 10, - (byte) 11, - (byte) 12, - (byte) 13, - (byte) 14, - (byte) 15, - (byte) 16, - (byte) 17, - (byte) 18, - (byte) 19, - (byte) 20, - (byte) 21, - (byte) 22, - (byte) 23, - (byte) 24, - (byte) 25, - (byte) 26, - (byte) 27, - (byte) 28, - (byte) 29, - (byte) 30, - (byte) 31, - (byte) 32, - (byte) 33, - (byte) 34, - (byte) 35, - (byte) 36, - (byte) 37, - (byte) 38, - (byte) 39, - (byte) 40, - (byte) 41, - (byte) 42, - (byte) 43, - (byte) 44, - (byte) 45, - (byte) 46, - (byte) 47, - (byte) 48, - (byte) 49, - (byte) 50, - (byte) 51, - (byte) 52, - (byte) 53, - (byte) 54, - (byte) 55, - (byte) 56, - (byte) 57, - (byte) 58, - (byte) 59, - (byte) 60, - (byte) 61, - (byte) 62, - (byte) 63, - (byte) 100, - (byte) 101, - (byte) 102, - (byte) 103, - (byte) 104, - (byte) 105, - (byte) 106, - (byte) 107, - (byte) 108, - (byte) 109, - (byte) 110, - (byte) 111, - (byte) 112, - (byte) 113, - (byte) 114, - (byte) 115, - (byte) 116, - (byte) 117, - (byte) 118, - (byte) 119, - (byte) 136, - (byte) 19, - (byte) 0, - (byte) 0, - (byte) 114, - (byte) 20, - (byte) 0, - (byte) 0, - (byte) 92, - (byte) 21, - (byte) 0, - (byte) 0, - (byte) 70, - (byte) 22, - (byte) 0, - (byte) 0, - (byte) 48, - (byte) 23, - (byte) 0, - (byte) 0, - (byte) 26, - (byte) 24, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 238, - (byte) 25, - (byte) 0, - (byte) 0, - (byte) 216, - (byte) 26, - (byte) 0, - (byte) 0, - (byte) 194, - (byte) 27, - (byte) 0, - (byte) 0, - (byte) 172, - (byte) 28, - (byte) 0, - (byte) 0, - (byte) 150, - (byte) 29, - (byte) 0, - (byte) 0, - (byte) 128, - (byte) 30, - (byte) 0, - (byte) 0, - (byte) 106, - (byte) 31, - (byte) 0, - (byte) 0, - (byte) 84, - (byte) 32, - (byte) 0, - (byte) 0, - (byte) 62, - (byte) 33, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 34, - (byte) 0, - (byte) 0, - (byte) 18, - (byte) 35, - (byte) 0, - (byte) 0, - (byte) 252, - (byte) 35, - (byte) 0, - (byte) 0, - (byte) 230, - (byte) 36, - (byte) 0, - (byte) 0, - (byte) 208, - (byte) 37, - (byte) 0, - (byte) 0, - (byte) 186, - (byte) 38, - (byte) 0, - (byte) 0, - (byte) 164, - (byte) 39, - (byte) 0, - (byte) 0, - (byte) 142, - (byte) 40, - (byte) 0, - (byte) 0, - (byte) 120, - (byte) 41, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xC03, payload); - MsgEd25519SignatureDepB msg = new MsgEd25519SignatureDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)0,(byte)1,(byte)2,(byte)3,(byte)4,(byte)5,(byte)6,(byte)7,(byte)8,(byte)9,(byte)10,(byte)11,(byte)12,(byte)13,(byte)14,(byte)15,(byte)16,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)22,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27,(byte)28,(byte)29,(byte)30,(byte)31,(byte)32,(byte)33,(byte)34,(byte)35,(byte)36,(byte)37,(byte)38,(byte)39,(byte)40,(byte)41,(byte)42,(byte)43,(byte)44,(byte)45,(byte)46,(byte)47,(byte)48,(byte)49,(byte)50,(byte)51,(byte)52,(byte)53,(byte)54,(byte)55,(byte)56,(byte)57,(byte)58,(byte)59,(byte)60,(byte)61,(byte)62,(byte)63,(byte)100,(byte)101,(byte)102,(byte)103,(byte)104,(byte)105,(byte)106,(byte)107,(byte)108,(byte)109,(byte)110,(byte)111,(byte)112,(byte)113,(byte)114,(byte)115,(byte)116,(byte)117,(byte)118,(byte)119,(byte)136,(byte)19,(byte)0,(byte)0,(byte)114,(byte)20,(byte)0,(byte)0,(byte)92,(byte)21,(byte)0,(byte)0,(byte)70,(byte)22,(byte)0,(byte)0,(byte)48,(byte)23,(byte)0,(byte)0,(byte)26,(byte)24,(byte)0,(byte)0,(byte)4,(byte)25,(byte)0,(byte)0,(byte)238,(byte)25,(byte)0,(byte)0,(byte)216,(byte)26,(byte)0,(byte)0,(byte)194,(byte)27,(byte)0,(byte)0,(byte)172,(byte)28,(byte)0,(byte)0,(byte)150,(byte)29,(byte)0,(byte)0,(byte)128,(byte)30,(byte)0,(byte)0,(byte)106,(byte)31,(byte)0,(byte)0,(byte)84,(byte)32,(byte)0,(byte)0,(byte)62,(byte)33,(byte)0,(byte)0,(byte)40,(byte)34,(byte)0,(byte)0,(byte)18,(byte)35,(byte)0,(byte)0,(byte)252,(byte)35,(byte)0,(byte)0,(byte)230,(byte)36,(byte)0,(byte)0,(byte)208,(byte)37,(byte)0,(byte)0,(byte)186,(byte)38,(byte)0,(byte)0,(byte)164,(byte)39,(byte)0,(byte)0,(byte)142,(byte)40,(byte)0,(byte)0,(byte)120,(byte)41,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xC03, payload ); + MsgEd25519SignatureDepB msg = new MsgEd25519SignatureDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.fingerprint[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[0] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[0] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -236,9 +50,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[1] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[1] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -246,9 +58,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[2] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[2] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -256,9 +66,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[3] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[3] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -266,9 +74,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[4] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[4] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -276,9 +82,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[5] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[5] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -286,9 +90,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[6] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[6] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -296,9 +98,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[7] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[7] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -306,9 +106,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[8] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[8] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -316,9 +114,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[9] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[9] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -326,9 +122,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[10] + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[10] + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -336,9 +130,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[11] + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[11] + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -346,9 +138,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[12] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[12] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -356,9 +146,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[13] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[13] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -366,9 +154,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[14] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[14] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -376,9 +162,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[15] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[15] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -386,9 +170,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[16] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[16] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -396,9 +178,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[17] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[17] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -406,9 +186,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[18] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[18] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -416,9 +194,7 @@ public void test1() throws Throwable { } value = msg.fingerprint[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.fingerprint[19] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.fingerprint[19] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -426,9 +202,7 @@ public void test1() throws Throwable { } value = msg.on_demand_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.on_demand_counter + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.on_demand_counter + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -436,9 +210,7 @@ public void test1() throws Throwable { } value = msg.signature[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[0] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.signature[0] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -446,9 +218,7 @@ public void test1() throws Throwable { } value = msg.signature[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[1] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.signature[1] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -456,9 +226,7 @@ public void test1() throws Throwable { } value = msg.signature[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[2] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.signature[2] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -466,9 +234,7 @@ public void test1() throws Throwable { } value = msg.signature[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[3] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.signature[3] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -476,9 +242,7 @@ public void test1() throws Throwable { } value = msg.signature[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[4] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.signature[4] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -486,9 +250,7 @@ public void test1() throws Throwable { } value = msg.signature[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[5] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.signature[5] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -496,9 +258,7 @@ public void test1() throws Throwable { } value = msg.signature[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[6] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.signature[6] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -506,9 +266,7 @@ public void test1() throws Throwable { } value = msg.signature[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[7] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.signature[7] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -516,9 +274,7 @@ public void test1() throws Throwable { } value = msg.signature[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[8] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.signature[8] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -526,9 +282,7 @@ public void test1() throws Throwable { } value = msg.signature[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[9] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.signature[9] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -536,9 +290,7 @@ public void test1() throws Throwable { } value = msg.signature[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[10] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.signature[10] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -546,9 +298,7 @@ public void test1() throws Throwable { } value = msg.signature[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[11] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.signature[11] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -556,9 +306,7 @@ public void test1() throws Throwable { } value = msg.signature[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[12] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.signature[12] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -566,9 +314,7 @@ public void test1() throws Throwable { } value = msg.signature[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[13] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.signature[13] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -576,9 +322,7 @@ public void test1() throws Throwable { } value = msg.signature[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[14] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.signature[14] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -586,9 +330,7 @@ public void test1() throws Throwable { } value = msg.signature[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[15] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.signature[15] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -596,9 +338,7 @@ public void test1() throws Throwable { } value = msg.signature[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[16] + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.signature[16] + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -606,9 +346,7 @@ public void test1() throws Throwable { } value = msg.signature[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[17] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.signature[17] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -616,9 +354,7 @@ public void test1() throws Throwable { } value = msg.signature[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[18] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.signature[18] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -626,9 +362,7 @@ public void test1() throws Throwable { } value = msg.signature[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[19] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.signature[19] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -636,9 +370,7 @@ public void test1() throws Throwable { } value = msg.signature[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[20] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.signature[20] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -646,9 +378,7 @@ public void test1() throws Throwable { } value = msg.signature[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[21] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.signature[21] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -656,9 +386,7 @@ public void test1() throws Throwable { } value = msg.signature[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[22] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.signature[22] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -666,9 +394,7 @@ public void test1() throws Throwable { } value = msg.signature[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[23] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.signature[23] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -676,9 +402,7 @@ public void test1() throws Throwable { } value = msg.signature[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[24] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.signature[24] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -686,9 +410,7 @@ public void test1() throws Throwable { } value = msg.signature[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[25] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.signature[25] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -696,9 +418,7 @@ public void test1() throws Throwable { } value = msg.signature[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[26] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.signature[26] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -706,9 +426,7 @@ public void test1() throws Throwable { } value = msg.signature[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[27] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.signature[27] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -716,9 +434,7 @@ public void test1() throws Throwable { } value = msg.signature[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[28] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.signature[28] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -726,9 +442,7 @@ public void test1() throws Throwable { } value = msg.signature[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[29] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.signature[29] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -736,9 +450,7 @@ public void test1() throws Throwable { } value = msg.signature[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[30] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.signature[30] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -746,9 +458,7 @@ public void test1() throws Throwable { } value = msg.signature[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[31] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.signature[31] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -756,9 +466,7 @@ public void test1() throws Throwable { } value = msg.signature[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.signature[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -766,9 +474,7 @@ public void test1() throws Throwable { } value = msg.signature[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[33] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.signature[33] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -776,9 +482,7 @@ public void test1() throws Throwable { } value = msg.signature[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[34] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.signature[34] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -786,9 +490,7 @@ public void test1() throws Throwable { } value = msg.signature[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[35] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.signature[35] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -796,9 +498,7 @@ public void test1() throws Throwable { } value = msg.signature[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[36] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.signature[36] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -806,9 +506,7 @@ public void test1() throws Throwable { } value = msg.signature[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[37] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.signature[37] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -816,9 +514,7 @@ public void test1() throws Throwable { } value = msg.signature[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[38] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.signature[38] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -826,9 +522,7 @@ public void test1() throws Throwable { } value = msg.signature[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[39] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.signature[39] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -836,9 +530,7 @@ public void test1() throws Throwable { } value = msg.signature[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[40] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.signature[40] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -846,9 +538,7 @@ public void test1() throws Throwable { } value = msg.signature[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[41] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.signature[41] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -856,9 +546,7 @@ public void test1() throws Throwable { } value = msg.signature[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[42] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.signature[42] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -866,9 +554,7 @@ public void test1() throws Throwable { } value = msg.signature[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[43] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.signature[43] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -876,9 +562,7 @@ public void test1() throws Throwable { } value = msg.signature[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[44] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.signature[44] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -886,9 +570,7 @@ public void test1() throws Throwable { } value = msg.signature[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[45] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.signature[45] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -896,9 +578,7 @@ public void test1() throws Throwable { } value = msg.signature[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[46] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.signature[46] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -906,9 +586,7 @@ public void test1() throws Throwable { } value = msg.signature[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[47] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.signature[47] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -916,9 +594,7 @@ public void test1() throws Throwable { } value = msg.signature[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[48] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.signature[48] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -926,9 +602,7 @@ public void test1() throws Throwable { } value = msg.signature[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[49] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.signature[49] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -936,9 +610,7 @@ public void test1() throws Throwable { } value = msg.signature[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.signature[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -946,9 +618,7 @@ public void test1() throws Throwable { } value = msg.signature[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[51] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.signature[51] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -956,9 +626,7 @@ public void test1() throws Throwable { } value = msg.signature[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[52] + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.signature[52] + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -966,9 +634,7 @@ public void test1() throws Throwable { } value = msg.signature[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[53] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.signature[53] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -976,9 +642,7 @@ public void test1() throws Throwable { } value = msg.signature[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[54] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.signature[54] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -986,9 +650,7 @@ public void test1() throws Throwable { } value = msg.signature[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[55] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.signature[55] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -996,9 +658,7 @@ public void test1() throws Throwable { } value = msg.signature[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[56] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.signature[56] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1006,9 +666,7 @@ public void test1() throws Throwable { } value = msg.signature[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[57] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.signature[57] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1016,9 +674,7 @@ public void test1() throws Throwable { } value = msg.signature[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[58] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.signature[58] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1026,9 +682,7 @@ public void test1() throws Throwable { } value = msg.signature[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[59] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.signature[59] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1036,9 +690,7 @@ public void test1() throws Throwable { } value = msg.signature[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[60] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.signature[60] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1046,9 +698,7 @@ public void test1() throws Throwable { } value = msg.signature[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[61] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.signature[61] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1056,9 +706,7 @@ public void test1() throws Throwable { } value = msg.signature[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[62] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.signature[62] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1066,9 +714,7 @@ public void test1() throws Throwable { } value = msg.signature[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signature[63] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.signature[63] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1076,9 +722,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[0] + "' != '" + 5000 + "'", - value.equals(BigInteger.valueOf(5000L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[0] + "' != '" + 5000 + "'", value.equals(BigInteger.valueOf( 5000L ) ) ); } else { value = value.longValue(); expected = 5000L; @@ -1086,9 +730,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[1] + "' != '" + 5234 + "'", - value.equals(BigInteger.valueOf(5234L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[1] + "' != '" + 5234 + "'", value.equals(BigInteger.valueOf( 5234L ) ) ); } else { value = value.longValue(); expected = 5234L; @@ -1096,9 +738,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[2] + "' != '" + 5468 + "'", - value.equals(BigInteger.valueOf(5468L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[2] + "' != '" + 5468 + "'", value.equals(BigInteger.valueOf( 5468L ) ) ); } else { value = value.longValue(); expected = 5468L; @@ -1106,9 +746,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[3] + "' != '" + 5702 + "'", - value.equals(BigInteger.valueOf(5702L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[3] + "' != '" + 5702 + "'", value.equals(BigInteger.valueOf( 5702L ) ) ); } else { value = value.longValue(); expected = 5702L; @@ -1116,9 +754,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[4] + "' != '" + 5936 + "'", - value.equals(BigInteger.valueOf(5936L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[4] + "' != '" + 5936 + "'", value.equals(BigInteger.valueOf( 5936L ) ) ); } else { value = value.longValue(); expected = 5936L; @@ -1126,9 +762,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[5] + "' != '" + 6170 + "'", - value.equals(BigInteger.valueOf(6170L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[5] + "' != '" + 6170 + "'", value.equals(BigInteger.valueOf( 6170L ) ) ); } else { value = value.longValue(); expected = 6170L; @@ -1136,9 +770,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[6] + "' != '" + 6404 + "'", - value.equals(BigInteger.valueOf(6404L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[6] + "' != '" + 6404 + "'", value.equals(BigInteger.valueOf( 6404L ) ) ); } else { value = value.longValue(); expected = 6404L; @@ -1146,9 +778,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[7] + "' != '" + 6638 + "'", - value.equals(BigInteger.valueOf(6638L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[7] + "' != '" + 6638 + "'", value.equals(BigInteger.valueOf( 6638L ) ) ); } else { value = value.longValue(); expected = 6638L; @@ -1156,9 +786,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[8] + "' != '" + 6872 + "'", - value.equals(BigInteger.valueOf(6872L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[8] + "' != '" + 6872 + "'", value.equals(BigInteger.valueOf( 6872L ) ) ); } else { value = value.longValue(); expected = 6872L; @@ -1166,9 +794,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[9] + "' != '" + 7106 + "'", - value.equals(BigInteger.valueOf(7106L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[9] + "' != '" + 7106 + "'", value.equals(BigInteger.valueOf( 7106L ) ) ); } else { value = value.longValue(); expected = 7106L; @@ -1176,9 +802,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[10] + "' != '" + 7340 + "'", - value.equals(BigInteger.valueOf(7340L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[10] + "' != '" + 7340 + "'", value.equals(BigInteger.valueOf( 7340L ) ) ); } else { value = value.longValue(); expected = 7340L; @@ -1186,9 +810,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[11] + "' != '" + 7574 + "'", - value.equals(BigInteger.valueOf(7574L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[11] + "' != '" + 7574 + "'", value.equals(BigInteger.valueOf( 7574L ) ) ); } else { value = value.longValue(); expected = 7574L; @@ -1196,9 +818,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[12] + "' != '" + 7808 + "'", - value.equals(BigInteger.valueOf(7808L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[12] + "' != '" + 7808 + "'", value.equals(BigInteger.valueOf( 7808L ) ) ); } else { value = value.longValue(); expected = 7808L; @@ -1206,9 +826,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[13] + "' != '" + 8042 + "'", - value.equals(BigInteger.valueOf(8042L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[13] + "' != '" + 8042 + "'", value.equals(BigInteger.valueOf( 8042L ) ) ); } else { value = value.longValue(); expected = 8042L; @@ -1216,9 +834,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[14] + "' != '" + 8276 + "'", - value.equals(BigInteger.valueOf(8276L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[14] + "' != '" + 8276 + "'", value.equals(BigInteger.valueOf( 8276L ) ) ); } else { value = value.longValue(); expected = 8276L; @@ -1226,9 +842,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[15] + "' != '" + 8510 + "'", - value.equals(BigInteger.valueOf(8510L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[15] + "' != '" + 8510 + "'", value.equals(BigInteger.valueOf( 8510L ) ) ); } else { value = value.longValue(); expected = 8510L; @@ -1236,9 +850,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[16] + "' != '" + 8744 + "'", - value.equals(BigInteger.valueOf(8744L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[16] + "' != '" + 8744 + "'", value.equals(BigInteger.valueOf( 8744L ) ) ); } else { value = value.longValue(); expected = 8744L; @@ -1246,9 +858,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[17] + "' != '" + 8978 + "'", - value.equals(BigInteger.valueOf(8978L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[17] + "' != '" + 8978 + "'", value.equals(BigInteger.valueOf( 8978L ) ) ); } else { value = value.longValue(); expected = 8978L; @@ -1256,9 +866,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[18] + "' != '" + 9212 + "'", - value.equals(BigInteger.valueOf(9212L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[18] + "' != '" + 9212 + "'", value.equals(BigInteger.valueOf( 9212L ) ) ); } else { value = value.longValue(); expected = 9212L; @@ -1266,9 +874,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[19] + "' != '" + 9446 + "'", - value.equals(BigInteger.valueOf(9446L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[19] + "' != '" + 9446 + "'", value.equals(BigInteger.valueOf( 9446L ) ) ); } else { value = value.longValue(); expected = 9446L; @@ -1276,9 +882,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[20] + "' != '" + 9680 + "'", - value.equals(BigInteger.valueOf(9680L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[20] + "' != '" + 9680 + "'", value.equals(BigInteger.valueOf( 9680L ) ) ); } else { value = value.longValue(); expected = 9680L; @@ -1286,9 +890,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[21] + "' != '" + 9914 + "'", - value.equals(BigInteger.valueOf(9914L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[21] + "' != '" + 9914 + "'", value.equals(BigInteger.valueOf( 9914L ) ) ); } else { value = value.longValue(); expected = 9914L; @@ -1296,9 +898,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[22] + "' != '" + 10148 + "'", - value.equals(BigInteger.valueOf(10148L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[22] + "' != '" + 10148 + "'", value.equals(BigInteger.valueOf( 10148L ) ) ); } else { value = value.longValue(); expected = 10148L; @@ -1306,9 +906,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[23] + "' != '" + 10382 + "'", - value.equals(BigInteger.valueOf(10382L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[23] + "' != '" + 10382 + "'", value.equals(BigInteger.valueOf( 10382L ) ) ); } else { value = value.longValue(); expected = 10382L; @@ -1316,9 +914,7 @@ public void test1() throws Throwable { } value = msg.signed_messages[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.signed_messages[24] + "' != '" + 10616 + "'", - value.equals(BigInteger.valueOf(10616L))); + org.junit.Assert.assertTrue("'" + msg.signed_messages[24] + "' != '" + 10616 + "'", value.equals(BigInteger.valueOf( 10616L ) ) ); } else { value = value.longValue(); expected = 10616L; @@ -1326,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stream_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stream_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stream_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_signing_signing_structsTest.java b/java/test/auto_check_sbp_signing_signing_structsTest.java index 2e30779e74..c8cde28052 100644 --- a/java/test/auto_check_sbp_signing_signing_structsTest.java +++ b/java/test/auto_check_sbp_signing_signing_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,10 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_signing_structs.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/signing/test_signing_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_signing_signing_structsTest { diff --git a/java/test/auto_check_sbp_soln_meta_soln_meta_structsTest.java b/java/test/auto_check_sbp_soln_meta_soln_meta_structsTest.java index 5871466182..80ceddffe8 100644 --- a/java/test/auto_check_sbp_soln_meta_soln_meta_structsTest.java +++ b/java/test/auto_check_sbp_soln_meta_soln_meta_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/soln_meta/test_soln_meta_structs.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/soln_meta/test_soln_meta_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_soln_meta_soln_meta_structsTest { diff --git a/java/test/auto_check_sbp_solution_meta_MsgSolnMetaDepATest.java b/java/test/auto_check_sbp_solution_meta_MsgSolnMetaDepATest.java index f0649f156d..1f20dcefcb 100644 --- a/java/test/auto_check_sbp_solution_meta_MsgSolnMetaDepATest.java +++ b/java/test/auto_check_sbp_solution_meta_MsgSolnMetaDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/soln_meta/test_MsgSolnMetaDepA.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/soln_meta/test_MsgSolnMetaDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.solution_meta.MsgSolnMetaDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_solution_meta_MsgSolnMetaDepATest { @@ -30,273 +34,15 @@ public class auto_check_sbp_solution_meta_MsgSolnMetaDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_solution_meta_MsgSolnMetaDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 183, - (byte) 222, - (byte) 157, - (byte) 121, - (byte) 5, - (byte) 164, - (byte) 238, - (byte) 31, - (byte) 190, - (byte) 115, - (byte) 93, - (byte) 59, - (byte) 103, - (byte) 36, - (byte) 83, - (byte) 161, - (byte) 156, - (byte) 46, - (byte) 253, - (byte) 67, - (byte) 87, - (byte) 200, - (byte) 39, - (byte) 250, - (byte) 245, - (byte) 242, - (byte) 228, - (byte) 72, - (byte) 18, - (byte) 222, - (byte) 11, - (byte) 88, - (byte) 207, - (byte) 218, - (byte) 231, - (byte) 13, - (byte) 226, - (byte) 224, - (byte) 22, - (byte) 196, - (byte) 21, - (byte) 242, - (byte) 12, - (byte) 89, - (byte) 71, - (byte) 219, - (byte) 182, - (byte) 85, - (byte) 145, - (byte) 204, - (byte) 146, - (byte) 40, - (byte) 204, - (byte) 51, - (byte) 21, - (byte) 153, - (byte) 227, - (byte) 44, - (byte) 15, - (byte) 28, - (byte) 255, - (byte) 39, - (byte) 205, - (byte) 216, - (byte) 240, - (byte) 190, - (byte) 93, - (byte) 219, - (byte) 103, - (byte) 42, - (byte) 41, - (byte) 182, - (byte) 76, - (byte) 222, - (byte) 17, - (byte) 23, - (byte) 125, - (byte) 31, - (byte) 18, - (byte) 229, - (byte) 28, - (byte) 47, - (byte) 214, - (byte) 25, - (byte) 100, - (byte) 84, - (byte) 106, - (byte) 72, - (byte) 48, - (byte) 10, - (byte) 222, - (byte) 232, - (byte) 235, - (byte) 73, - (byte) 109, - (byte) 163, - (byte) 51, - (byte) 152, - (byte) 133, - (byte) 235, - (byte) 87, - (byte) 70, - (byte) 2, - (byte) 108, - (byte) 91, - (byte) 101, - (byte) 200, - (byte) 55, - (byte) 24, - (byte) 156, - (byte) 233, - (byte) 73, - (byte) 39, - (byte) 66, - (byte) 97, - (byte) 140, - (byte) 252, - (byte) 227, - (byte) 230, - (byte) 237, - (byte) 135, - (byte) 241, - (byte) 245, - (byte) 205, - (byte) 70, - (byte) 0, - (byte) 219, - (byte) 188, - (byte) 107, - (byte) 136, - (byte) 178, - (byte) 58, - (byte) 1, - (byte) 29, - (byte) 44, - (byte) 213, - (byte) 225, - (byte) 147, - (byte) 190, - (byte) 96, - (byte) 192, - (byte) 108, - (byte) 228, - (byte) 15, - (byte) 203, - (byte) 18, - (byte) 3, - (byte) 222, - (byte) 180, - (byte) 68, - (byte) 101, - (byte) 229, - (byte) 223, - (byte) 203, - (byte) 243, - (byte) 164, - (byte) 92, - (byte) 165, - (byte) 220, - (byte) 159, - (byte) 174, - (byte) 121, - (byte) 112, - (byte) 167, - (byte) 240, - (byte) 40, - (byte) 59, - (byte) 3, - (byte) 230, - (byte) 52, - (byte) 149, - (byte) 148, - (byte) 218, - (byte) 142, - (byte) 212, - (byte) 109, - (byte) 176, - (byte) 71, - (byte) 179, - (byte) 172, - (byte) 77, - (byte) 1, - (byte) 193, - (byte) 70, - (byte) 147, - (byte) 149, - (byte) 23, - (byte) 144, - (byte) 148, - (byte) 239, - (byte) 195, - (byte) 186, - (byte) 86, - (byte) 30, - (byte) 34, - (byte) 143, - (byte) 156, - (byte) 207, - (byte) 63, - (byte) 55, - (byte) 117, - (byte) 255, - (byte) 222, - (byte) 222, - (byte) 219, - (byte) 145, - (byte) 224, - (byte) 191, - (byte) 210, - (byte) 109, - (byte) 86, - (byte) 153, - (byte) 21, - (byte) 32, - (byte) 226, - (byte) 10, - (byte) 60, - (byte) 63, - (byte) 106, - (byte) 236, - (byte) 93, - (byte) 96, - (byte) 30, - (byte) 163, - (byte) 106, - (byte) 238, - (byte) 147, - (byte) 133, - (byte) 132, - (byte) 107, - (byte) 152, - (byte) 214, - (byte) 221, - (byte) 185, - (byte) 202, - (byte) 21, - (byte) 252, - (byte) 51, - (byte) 130, - (byte) 59, - (byte) 166, - (byte) 202, - (byte) 127, - (byte) 170, - (byte) 58, - (byte) 193, - (byte) 215, - (byte) 125, - (byte) 22, - (byte) 58, - (byte) 135, - (byte) 47, - (byte) 88, - (byte) 142, - }; - SBPMessage sbp = new SBPMessage(0xf154, 0xff0f, payload); - MsgSolnMetaDepA msg = new MsgSolnMetaDepA(sbp); + byte[] payload = new byte[] {(byte)183,(byte)222,(byte)157,(byte)121,(byte)5,(byte)164,(byte)238,(byte)31,(byte)190,(byte)115,(byte)93,(byte)59,(byte)103,(byte)36,(byte)83,(byte)161,(byte)156,(byte)46,(byte)253,(byte)67,(byte)87,(byte)200,(byte)39,(byte)250,(byte)245,(byte)242,(byte)228,(byte)72,(byte)18,(byte)222,(byte)11,(byte)88,(byte)207,(byte)218,(byte)231,(byte)13,(byte)226,(byte)224,(byte)22,(byte)196,(byte)21,(byte)242,(byte)12,(byte)89,(byte)71,(byte)219,(byte)182,(byte)85,(byte)145,(byte)204,(byte)146,(byte)40,(byte)204,(byte)51,(byte)21,(byte)153,(byte)227,(byte)44,(byte)15,(byte)28,(byte)255,(byte)39,(byte)205,(byte)216,(byte)240,(byte)190,(byte)93,(byte)219,(byte)103,(byte)42,(byte)41,(byte)182,(byte)76,(byte)222,(byte)17,(byte)23,(byte)125,(byte)31,(byte)18,(byte)229,(byte)28,(byte)47,(byte)214,(byte)25,(byte)100,(byte)84,(byte)106,(byte)72,(byte)48,(byte)10,(byte)222,(byte)232,(byte)235,(byte)73,(byte)109,(byte)163,(byte)51,(byte)152,(byte)133,(byte)235,(byte)87,(byte)70,(byte)2,(byte)108,(byte)91,(byte)101,(byte)200,(byte)55,(byte)24,(byte)156,(byte)233,(byte)73,(byte)39,(byte)66,(byte)97,(byte)140,(byte)252,(byte)227,(byte)230,(byte)237,(byte)135,(byte)241,(byte)245,(byte)205,(byte)70,(byte)0,(byte)219,(byte)188,(byte)107,(byte)136,(byte)178,(byte)58,(byte)1,(byte)29,(byte)44,(byte)213,(byte)225,(byte)147,(byte)190,(byte)96,(byte)192,(byte)108,(byte)228,(byte)15,(byte)203,(byte)18,(byte)3,(byte)222,(byte)180,(byte)68,(byte)101,(byte)229,(byte)223,(byte)203,(byte)243,(byte)164,(byte)92,(byte)165,(byte)220,(byte)159,(byte)174,(byte)121,(byte)112,(byte)167,(byte)240,(byte)40,(byte)59,(byte)3,(byte)230,(byte)52,(byte)149,(byte)148,(byte)218,(byte)142,(byte)212,(byte)109,(byte)176,(byte)71,(byte)179,(byte)172,(byte)77,(byte)1,(byte)193,(byte)70,(byte)147,(byte)149,(byte)23,(byte)144,(byte)148,(byte)239,(byte)195,(byte)186,(byte)86,(byte)30,(byte)34,(byte)143,(byte)156,(byte)207,(byte)63,(byte)55,(byte)117,(byte)255,(byte)222,(byte)222,(byte)219,(byte)145,(byte)224,(byte)191,(byte)210,(byte)109,(byte)86,(byte)153,(byte)21,(byte)32,(byte)226,(byte)10,(byte)60,(byte)63,(byte)106,(byte)236,(byte)93,(byte)96,(byte)30,(byte)163,(byte)106,(byte)238,(byte)147,(byte)133,(byte)132,(byte)107,(byte)152,(byte)214,(byte)221,(byte)185,(byte)202,(byte)21,(byte)252,(byte)51,(byte)130,(byte)59,(byte)166,(byte)202,(byte)127,(byte)170,(byte)58,(byte)193,(byte)215,(byte)125,(byte)22,(byte)58,(byte)135,(byte)47,(byte)88,(byte)142, }; + SBPMessage sbp = new SBPMessage( 0xf154, 0xff0f, payload ); + MsgSolnMetaDepA msg = new MsgSolnMetaDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.age_corrections; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.age_corrections + "' != '" + 48671 + "'", - value.equals(BigInteger.valueOf(48671L))); + org.junit.Assert.assertTrue("'" + msg.age_corrections + "' != '" + 48671 + "'", value.equals(BigInteger.valueOf( 48671L ) ) ); } else { value = value.longValue(); expected = 48671L; @@ -304,9 +50,7 @@ public void test1() throws Throwable { } value = msg.alignment_status; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.alignment_status + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.alignment_status + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -314,9 +58,7 @@ public void test1() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 31133 + "'", - value.equals(BigInteger.valueOf(31133L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 31133 + "'", value.equals(BigInteger.valueOf( 31133L ) ) ); } else { value = value.longValue(); expected = 31133L; @@ -324,9 +66,7 @@ public void test1() throws Throwable { } value = msg.last_used_gnss_pos_tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.last_used_gnss_pos_tow + "' != '" + 610745181 + "'", - value.equals(BigInteger.valueOf(610745181L))); + org.junit.Assert.assertTrue("'" + msg.last_used_gnss_pos_tow + "' != '" + 610745181 + "'", value.equals(BigInteger.valueOf( 610745181L ) ) ); } else { value = value.longValue(); expected = 610745181L; @@ -334,9 +74,7 @@ public void test1() throws Throwable { } value = msg.last_used_gnss_vel_tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.last_used_gnss_vel_tow + "' != '" + 782016851 + "'", - value.equals(BigInteger.valueOf(782016851L))); + org.junit.Assert.assertTrue("'" + msg.last_used_gnss_vel_tow + "' != '" + 782016851 + "'", value.equals(BigInteger.valueOf( 782016851L ) ) ); } else { value = value.longValue(); expected = 782016851L; @@ -344,9 +82,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -354,9 +90,7 @@ public void test1() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 57015 + "'", - value.equals(BigInteger.valueOf(57015L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 57015 + "'", value.equals(BigInteger.valueOf( 57015L ) ) ); } else { value = value.longValue(); expected = 57015L; @@ -364,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sol_in[0].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[0].flags + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[0].flags + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -374,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sol_in[0].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[0].sensor_type + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[0].sensor_type + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -384,9 +114,7 @@ public void test1() throws Throwable { } value = msg.sol_in[1].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[1].flags + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[1].flags + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -394,9 +122,7 @@ public void test1() throws Throwable { } value = msg.sol_in[1].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[1].sensor_type + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[1].sensor_type + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -404,9 +130,7 @@ public void test1() throws Throwable { } value = msg.sol_in[2].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[2].flags + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[2].flags + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -414,9 +138,7 @@ public void test1() throws Throwable { } value = msg.sol_in[2].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[2].sensor_type + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[2].sensor_type + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -424,9 +146,7 @@ public void test1() throws Throwable { } value = msg.sol_in[3].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[3].flags + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[3].flags + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -434,9 +154,7 @@ public void test1() throws Throwable { } value = msg.sol_in[3].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[3].sensor_type + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[3].sensor_type + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -444,9 +162,7 @@ public void test1() throws Throwable { } value = msg.sol_in[4].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[4].flags + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[4].flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -454,9 +170,7 @@ public void test1() throws Throwable { } value = msg.sol_in[4].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[4].sensor_type + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[4].sensor_type + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -464,9 +178,7 @@ public void test1() throws Throwable { } value = msg.sol_in[5].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[5].flags + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[5].flags + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -474,9 +186,7 @@ public void test1() throws Throwable { } value = msg.sol_in[5].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[5].sensor_type + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[5].sensor_type + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -484,9 +194,7 @@ public void test1() throws Throwable { } value = msg.sol_in[6].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[6].flags + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[6].flags + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -494,9 +202,7 @@ public void test1() throws Throwable { } value = msg.sol_in[6].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[6].sensor_type + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[6].sensor_type + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -504,9 +210,7 @@ public void test1() throws Throwable { } value = msg.sol_in[7].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[7].flags + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[7].flags + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -514,9 +218,7 @@ public void test1() throws Throwable { } value = msg.sol_in[7].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[7].sensor_type + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[7].sensor_type + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -524,9 +226,7 @@ public void test1() throws Throwable { } value = msg.sol_in[8].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[8].flags + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[8].flags + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -534,9 +234,7 @@ public void test1() throws Throwable { } value = msg.sol_in[8].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[8].sensor_type + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[8].sensor_type + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -544,9 +242,7 @@ public void test1() throws Throwable { } value = msg.sol_in[9].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[9].flags + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[9].flags + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -554,9 +250,7 @@ public void test1() throws Throwable { } value = msg.sol_in[9].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[9].sensor_type + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[9].sensor_type + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -564,9 +258,7 @@ public void test1() throws Throwable { } value = msg.sol_in[10].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[10].flags + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[10].flags + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -574,9 +266,7 @@ public void test1() throws Throwable { } value = msg.sol_in[10].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[10].sensor_type + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[10].sensor_type + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -584,9 +274,7 @@ public void test1() throws Throwable { } value = msg.sol_in[11].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[11].flags + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[11].flags + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -594,9 +282,7 @@ public void test1() throws Throwable { } value = msg.sol_in[11].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[11].sensor_type + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[11].sensor_type + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -604,9 +290,7 @@ public void test1() throws Throwable { } value = msg.sol_in[12].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[12].flags + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[12].flags + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -614,9 +298,7 @@ public void test1() throws Throwable { } value = msg.sol_in[12].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[12].sensor_type + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[12].sensor_type + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -624,9 +306,7 @@ public void test1() throws Throwable { } value = msg.sol_in[13].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[13].flags + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[13].flags + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -634,9 +314,7 @@ public void test1() throws Throwable { } value = msg.sol_in[13].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[13].sensor_type + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[13].sensor_type + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -644,9 +322,7 @@ public void test1() throws Throwable { } value = msg.sol_in[14].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[14].flags + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[14].flags + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -654,9 +330,7 @@ public void test1() throws Throwable { } value = msg.sol_in[14].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[14].sensor_type + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[14].sensor_type + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -664,9 +338,7 @@ public void test1() throws Throwable { } value = msg.sol_in[15].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[15].flags + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[15].flags + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -674,9 +346,7 @@ public void test1() throws Throwable { } value = msg.sol_in[15].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[15].sensor_type + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[15].sensor_type + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -684,9 +354,7 @@ public void test1() throws Throwable { } value = msg.sol_in[16].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[16].flags + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[16].flags + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -694,9 +362,7 @@ public void test1() throws Throwable { } value = msg.sol_in[16].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[16].sensor_type + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[16].sensor_type + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -704,9 +370,7 @@ public void test1() throws Throwable { } value = msg.sol_in[17].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[17].flags + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[17].flags + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -714,9 +378,7 @@ public void test1() throws Throwable { } value = msg.sol_in[17].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[17].sensor_type + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[17].sensor_type + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -724,9 +386,7 @@ public void test1() throws Throwable { } value = msg.sol_in[18].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[18].flags + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[18].flags + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -734,9 +394,7 @@ public void test1() throws Throwable { } value = msg.sol_in[18].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[18].sensor_type + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[18].sensor_type + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -744,9 +402,7 @@ public void test1() throws Throwable { } value = msg.sol_in[19].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[19].flags + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[19].flags + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -754,9 +410,7 @@ public void test1() throws Throwable { } value = msg.sol_in[19].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[19].sensor_type + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[19].sensor_type + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -764,9 +418,7 @@ public void test1() throws Throwable { } value = msg.sol_in[20].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[20].flags + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[20].flags + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -774,9 +426,7 @@ public void test1() throws Throwable { } value = msg.sol_in[20].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[20].sensor_type + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[20].sensor_type + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -784,9 +434,7 @@ public void test1() throws Throwable { } value = msg.sol_in[21].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[21].flags + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[21].flags + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -794,9 +442,7 @@ public void test1() throws Throwable { } value = msg.sol_in[21].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[21].sensor_type + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[21].sensor_type + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -804,9 +450,7 @@ public void test1() throws Throwable { } value = msg.sol_in[22].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[22].flags + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[22].flags + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -814,9 +458,7 @@ public void test1() throws Throwable { } value = msg.sol_in[22].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[22].sensor_type + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[22].sensor_type + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -824,9 +466,7 @@ public void test1() throws Throwable { } value = msg.sol_in[23].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[23].flags + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[23].flags + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -834,9 +474,7 @@ public void test1() throws Throwable { } value = msg.sol_in[23].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[23].sensor_type + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[23].sensor_type + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -844,9 +482,7 @@ public void test1() throws Throwable { } value = msg.sol_in[24].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[24].flags + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[24].flags + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -854,9 +490,7 @@ public void test1() throws Throwable { } value = msg.sol_in[24].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[24].sensor_type + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[24].sensor_type + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -864,9 +498,7 @@ public void test1() throws Throwable { } value = msg.sol_in[25].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[25].flags + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[25].flags + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -874,9 +506,7 @@ public void test1() throws Throwable { } value = msg.sol_in[25].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[25].sensor_type + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[25].sensor_type + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -884,9 +514,7 @@ public void test1() throws Throwable { } value = msg.sol_in[26].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[26].flags + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[26].flags + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -894,9 +522,7 @@ public void test1() throws Throwable { } value = msg.sol_in[26].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[26].sensor_type + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[26].sensor_type + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -904,9 +530,7 @@ public void test1() throws Throwable { } value = msg.sol_in[27].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[27].flags + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[27].flags + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -914,9 +538,7 @@ public void test1() throws Throwable { } value = msg.sol_in[27].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[27].sensor_type + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[27].sensor_type + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -924,9 +546,7 @@ public void test1() throws Throwable { } value = msg.sol_in[28].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[28].flags + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[28].flags + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -934,9 +554,7 @@ public void test1() throws Throwable { } value = msg.sol_in[28].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[28].sensor_type + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[28].sensor_type + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -944,9 +562,7 @@ public void test1() throws Throwable { } value = msg.sol_in[29].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[29].flags + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[29].flags + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -954,9 +570,7 @@ public void test1() throws Throwable { } value = msg.sol_in[29].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[29].sensor_type + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[29].sensor_type + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -964,9 +578,7 @@ public void test1() throws Throwable { } value = msg.sol_in[30].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[30].flags + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[30].flags + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -974,9 +586,7 @@ public void test1() throws Throwable { } value = msg.sol_in[30].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[30].sensor_type + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[30].sensor_type + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -984,9 +594,7 @@ public void test1() throws Throwable { } value = msg.sol_in[31].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[31].flags + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[31].flags + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -994,9 +602,7 @@ public void test1() throws Throwable { } value = msg.sol_in[31].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[31].sensor_type + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[31].sensor_type + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1004,9 +610,7 @@ public void test1() throws Throwable { } value = msg.sol_in[32].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[32].flags + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[32].flags + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1014,9 +618,7 @@ public void test1() throws Throwable { } value = msg.sol_in[32].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[32].sensor_type + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[32].sensor_type + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1024,9 +626,7 @@ public void test1() throws Throwable { } value = msg.sol_in[33].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[33].flags + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[33].flags + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -1034,9 +634,7 @@ public void test1() throws Throwable { } value = msg.sol_in[33].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[33].sensor_type + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[33].sensor_type + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1044,9 +642,7 @@ public void test1() throws Throwable { } value = msg.sol_in[34].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[34].flags + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[34].flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1054,9 +650,7 @@ public void test1() throws Throwable { } value = msg.sol_in[34].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[34].sensor_type + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[34].sensor_type + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1064,9 +658,7 @@ public void test1() throws Throwable { } value = msg.sol_in[35].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[35].flags + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[35].flags + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1074,9 +666,7 @@ public void test1() throws Throwable { } value = msg.sol_in[35].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[35].sensor_type + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[35].sensor_type + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1084,9 +674,7 @@ public void test1() throws Throwable { } value = msg.sol_in[36].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[36].flags + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[36].flags + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1094,9 +682,7 @@ public void test1() throws Throwable { } value = msg.sol_in[36].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[36].sensor_type + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[36].sensor_type + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1104,9 +690,7 @@ public void test1() throws Throwable { } value = msg.sol_in[37].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[37].flags + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[37].flags + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1114,9 +698,7 @@ public void test1() throws Throwable { } value = msg.sol_in[37].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[37].sensor_type + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[37].sensor_type + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1124,9 +706,7 @@ public void test1() throws Throwable { } value = msg.sol_in[38].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[38].flags + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[38].flags + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1134,9 +714,7 @@ public void test1() throws Throwable { } value = msg.sol_in[38].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[38].sensor_type + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[38].sensor_type + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1144,9 +722,7 @@ public void test1() throws Throwable { } value = msg.sol_in[39].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[39].flags + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[39].flags + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1154,9 +730,7 @@ public void test1() throws Throwable { } value = msg.sol_in[39].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[39].sensor_type + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[39].sensor_type + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1164,9 +738,7 @@ public void test1() throws Throwable { } value = msg.sol_in[40].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[40].flags + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[40].flags + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1174,9 +746,7 @@ public void test1() throws Throwable { } value = msg.sol_in[40].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[40].sensor_type + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[40].sensor_type + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1184,9 +754,7 @@ public void test1() throws Throwable { } value = msg.sol_in[41].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[41].flags + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[41].flags + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1194,9 +762,7 @@ public void test1() throws Throwable { } value = msg.sol_in[41].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[41].sensor_type + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[41].sensor_type + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -1204,9 +770,7 @@ public void test1() throws Throwable { } value = msg.sol_in[42].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[42].flags + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[42].flags + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1214,9 +778,7 @@ public void test1() throws Throwable { } value = msg.sol_in[42].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[42].sensor_type + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[42].sensor_type + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1224,9 +786,7 @@ public void test1() throws Throwable { } value = msg.sol_in[43].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[43].flags + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[43].flags + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1234,9 +794,7 @@ public void test1() throws Throwable { } value = msg.sol_in[43].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[43].sensor_type + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[43].sensor_type + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1244,9 +802,7 @@ public void test1() throws Throwable { } value = msg.sol_in[44].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[44].flags + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[44].flags + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1254,9 +810,7 @@ public void test1() throws Throwable { } value = msg.sol_in[44].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[44].sensor_type + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[44].sensor_type + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1264,9 +818,7 @@ public void test1() throws Throwable { } value = msg.sol_in[45].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[45].flags + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[45].flags + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1274,9 +826,7 @@ public void test1() throws Throwable { } value = msg.sol_in[45].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[45].sensor_type + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[45].sensor_type + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1284,9 +834,7 @@ public void test1() throws Throwable { } value = msg.sol_in[46].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[46].flags + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[46].flags + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1294,9 +842,7 @@ public void test1() throws Throwable { } value = msg.sol_in[46].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[46].sensor_type + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[46].sensor_type + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1304,9 +850,7 @@ public void test1() throws Throwable { } value = msg.sol_in[47].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[47].flags + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[47].flags + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1314,9 +858,7 @@ public void test1() throws Throwable { } value = msg.sol_in[47].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[47].sensor_type + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[47].sensor_type + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1324,9 +866,7 @@ public void test1() throws Throwable { } value = msg.sol_in[48].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[48].flags + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[48].flags + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1334,9 +874,7 @@ public void test1() throws Throwable { } value = msg.sol_in[48].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[48].sensor_type + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[48].sensor_type + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1344,9 +882,7 @@ public void test1() throws Throwable { } value = msg.sol_in[49].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[49].flags + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[49].flags + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1354,9 +890,7 @@ public void test1() throws Throwable { } value = msg.sol_in[49].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[49].sensor_type + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[49].sensor_type + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1364,9 +898,7 @@ public void test1() throws Throwable { } value = msg.sol_in[50].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[50].flags + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[50].flags + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1374,9 +906,7 @@ public void test1() throws Throwable { } value = msg.sol_in[50].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[50].sensor_type + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[50].sensor_type + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1384,9 +914,7 @@ public void test1() throws Throwable { } value = msg.sol_in[51].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[51].flags + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[51].flags + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1394,9 +922,7 @@ public void test1() throws Throwable { } value = msg.sol_in[51].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[51].sensor_type + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[51].sensor_type + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1404,9 +930,7 @@ public void test1() throws Throwable { } value = msg.sol_in[52].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[52].flags + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[52].flags + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -1414,9 +938,7 @@ public void test1() throws Throwable { } value = msg.sol_in[52].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[52].sensor_type + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[52].sensor_type + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1424,9 +946,7 @@ public void test1() throws Throwable { } value = msg.sol_in[53].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[53].flags + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[53].flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1434,9 +954,7 @@ public void test1() throws Throwable { } value = msg.sol_in[53].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[53].sensor_type + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[53].sensor_type + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1444,9 +962,7 @@ public void test1() throws Throwable { } value = msg.sol_in[54].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[54].flags + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[54].flags + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1454,9 +970,7 @@ public void test1() throws Throwable { } value = msg.sol_in[54].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[54].sensor_type + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[54].sensor_type + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1464,9 +978,7 @@ public void test1() throws Throwable { } value = msg.sol_in[55].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[55].flags + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[55].flags + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -1474,9 +986,7 @@ public void test1() throws Throwable { } value = msg.sol_in[55].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[55].sensor_type + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[55].sensor_type + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1484,9 +994,7 @@ public void test1() throws Throwable { } value = msg.sol_in[56].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[56].flags + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[56].flags + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1494,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.sol_in[56].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[56].sensor_type + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[56].sensor_type + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1504,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.sol_in[57].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[57].flags + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[57].flags + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1514,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.sol_in[57].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[57].sensor_type + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[57].sensor_type + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1524,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.sol_in[58].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[58].flags + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[58].flags + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1534,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.sol_in[58].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[58].sensor_type + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[58].sensor_type + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1544,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.sol_in[59].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[59].flags + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[59].flags + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1554,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.sol_in[59].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[59].sensor_type + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[59].sensor_type + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1564,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.sol_in[60].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[60].flags + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[60].flags + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1574,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.sol_in[60].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[60].sensor_type + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[60].sensor_type + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1584,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.sol_in[61].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[61].flags + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[61].flags + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1594,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.sol_in[61].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[61].sensor_type + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[61].sensor_type + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1604,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.sol_in[62].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[62].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[62].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1614,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.sol_in[62].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[62].sensor_type + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[62].sensor_type + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1624,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.sol_in[63].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[63].flags + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[63].flags + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1634,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.sol_in[63].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[63].sensor_type + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[63].sensor_type + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1644,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.sol_in[64].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[64].flags + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[64].flags + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1654,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.sol_in[64].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[64].sensor_type + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[64].sensor_type + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1664,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.sol_in[65].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[65].flags + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[65].flags + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1674,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.sol_in[65].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[65].sensor_type + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[65].sensor_type + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1684,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.sol_in[66].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[66].flags + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[66].flags + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -1694,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.sol_in[66].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[66].sensor_type + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[66].sensor_type + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1704,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.sol_in[67].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[67].flags + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[67].flags + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1714,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.sol_in[67].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[67].sensor_type + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[67].sensor_type + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -1724,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.sol_in[68].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[68].flags + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[68].flags + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1734,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.sol_in[68].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[68].sensor_type + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[68].sensor_type + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -1744,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.sol_in[69].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[69].flags + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[69].flags + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1754,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.sol_in[69].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[69].sensor_type + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[69].sensor_type + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1764,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.sol_in[70].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[70].flags + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[70].flags + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1774,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.sol_in[70].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[70].sensor_type + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[70].sensor_type + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1784,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.sol_in[71].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[71].flags + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[71].flags + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1794,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.sol_in[71].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[71].sensor_type + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[71].sensor_type + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1804,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.sol_in[72].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[72].flags + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[72].flags + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1814,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.sol_in[72].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[72].sensor_type + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[72].sensor_type + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1824,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.sol_in[73].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[73].flags + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[73].flags + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1834,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.sol_in[73].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[73].sensor_type + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[73].sensor_type + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1844,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.sol_in[74].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[74].flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[74].flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1854,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.sol_in[74].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[74].sensor_type + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[74].sensor_type + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1864,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.sol_in[75].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[75].flags + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[75].flags + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -1874,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.sol_in[75].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[75].sensor_type + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[75].sensor_type + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1884,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.sol_in[76].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[76].flags + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[76].flags + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -1894,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.sol_in[76].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[76].sensor_type + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[76].sensor_type + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1904,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.sol_in[77].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[77].flags + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[77].flags + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1914,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.sol_in[77].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[77].sensor_type + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[77].sensor_type + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1924,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.sol_in[78].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[78].flags + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[78].flags + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1934,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.sol_in[78].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[78].sensor_type + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[78].sensor_type + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1944,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.sol_in[79].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[79].flags + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[79].flags + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1954,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.sol_in[79].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[79].sensor_type + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[79].sensor_type + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1964,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.sol_in[80].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[80].flags + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[80].flags + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1974,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.sol_in[80].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[80].sensor_type + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[80].sensor_type + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1984,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.sol_in[81].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[81].flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[81].flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1994,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.sol_in[81].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[81].sensor_type + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[81].sensor_type + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2004,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.sol_in[82].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[82].flags + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[82].flags + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -2014,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.sol_in[82].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[82].sensor_type + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[82].sensor_type + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2024,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.sol_in[83].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[83].flags + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[83].flags + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -2034,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.sol_in[83].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[83].sensor_type + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[83].sensor_type + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -2044,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.sol_in[84].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[84].flags + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[84].flags + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2054,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.sol_in[84].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[84].sensor_type + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[84].sensor_type + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -2064,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.sol_in[85].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[85].flags + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[85].flags + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2074,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.sol_in[85].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[85].sensor_type + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[85].sensor_type + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2084,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.sol_in[86].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[86].flags + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[86].flags + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2094,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.sol_in[86].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[86].sensor_type + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[86].sensor_type + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -2104,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.sol_in[87].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[87].flags + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[87].flags + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -2114,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.sol_in[87].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[87].sensor_type + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[87].sensor_type + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -2124,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.sol_in[88].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[88].flags + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[88].flags + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -2134,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.sol_in[88].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[88].sensor_type + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[88].sensor_type + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -2144,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.sol_in[89].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[89].flags + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[89].flags + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2154,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.sol_in[89].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[89].sensor_type + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[89].sensor_type + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -2164,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.sol_in[90].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[90].flags + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[90].flags + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -2174,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.sol_in[90].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[90].sensor_type + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[90].sensor_type + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -2184,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.sol_in[91].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[91].flags + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[91].flags + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -2194,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.sol_in[91].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[91].sensor_type + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[91].sensor_type + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2204,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.sol_in[92].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[92].flags + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[92].flags + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2214,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.sol_in[92].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[92].sensor_type + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[92].sensor_type + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2224,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.sol_in[93].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[93].flags + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[93].flags + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2234,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.sol_in[93].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[93].sensor_type + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[93].sensor_type + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -2244,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.sol_in[94].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[94].flags + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[94].flags + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -2254,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.sol_in[94].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[94].sensor_type + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[94].sensor_type + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -2264,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.sol_in[95].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[95].flags + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[95].flags + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -2274,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.sol_in[95].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[95].sensor_type + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[95].sensor_type + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -2284,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.sol_in[96].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[96].flags + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[96].flags + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -2294,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.sol_in[96].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[96].sensor_type + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[96].sensor_type + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -2304,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.sol_in[97].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[97].flags + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[97].flags + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -2314,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.sol_in[97].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[97].sensor_type + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[97].sensor_type + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2324,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.sol_in[98].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[98].flags + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[98].flags + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2334,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.sol_in[98].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[98].sensor_type + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[98].sensor_type + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -2344,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.sol_in[99].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[99].flags + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[99].flags + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -2354,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.sol_in[99].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[99].sensor_type + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[99].sensor_type + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -2364,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.sol_in[100].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[100].flags + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[100].flags + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -2374,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.sol_in[100].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[100].sensor_type + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[100].sensor_type + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2384,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.sol_in[101].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[101].flags + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[101].flags + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2394,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.sol_in[101].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[101].sensor_type + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[101].sensor_type + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -2404,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.sol_in[102].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[102].flags + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[102].flags + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -2414,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.sol_in[102].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[102].sensor_type + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[102].sensor_type + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -2424,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.sol_in[103].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[103].flags + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[103].flags + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2434,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.sol_in[103].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[103].sensor_type + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[103].sensor_type + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2444,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.sol_in[104].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[104].flags + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[104].flags + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -2454,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.sol_in[104].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[104].sensor_type + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[104].sensor_type + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -2464,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.sol_in[105].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[105].flags + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[105].flags + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -2474,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.sol_in[105].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[105].sensor_type + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[105].sensor_type + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2484,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.sol_in[106].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[106].flags + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[106].flags + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -2494,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.sol_in[106].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[106].sensor_type + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[106].sensor_type + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -2504,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.sol_in[107].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[107].flags + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[107].flags + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -2514,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.sol_in[107].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[107].sensor_type + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[107].sensor_type + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -2524,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.sol_in[108].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[108].flags + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[108].flags + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2534,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.sol_in[108].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[108].sensor_type + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[108].sensor_type + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2544,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.sol_in[109].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[109].flags + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[109].flags + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2554,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.sol_in[109].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[109].sensor_type + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[109].sensor_type + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -2564,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.sol_in[110].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[110].flags + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[110].flags + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2574,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.sol_in[110].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[110].sensor_type + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[110].sensor_type + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -2584,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.sol_in[111].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[111].flags + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[111].flags + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2594,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.sol_in[111].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[111].sensor_type + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[111].sensor_type + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -2604,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.sol_in[112].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[112].flags + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[112].flags + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -2614,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.sol_in[112].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[112].sensor_type + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[112].sensor_type + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -2624,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.sol_in[113].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[113].flags + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[113].flags + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2634,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.sol_in[113].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[113].sensor_type + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[113].sensor_type + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2644,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.sol_in[114].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[114].flags + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[114].flags + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -2654,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.sol_in[114].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[114].sensor_type + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[114].sensor_type + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2664,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.sol_in[115].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[115].flags + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[115].flags + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2674,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.sol_in[115].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[115].sensor_type + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[115].sensor_type + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -2684,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.sol_in[116].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[116].flags + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[116].flags + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -2694,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.sol_in[116].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[116].sensor_type + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[116].sensor_type + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -2704,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.sol_in[117].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[117].flags + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[117].flags + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -2714,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.sol_in[117].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[117].sensor_type + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[117].sensor_type + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2724,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 41989 + "'", - value.equals(BigInteger.valueOf(41989L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 41989 + "'", value.equals(BigInteger.valueOf( 41989L ) ) ); } else { value = value.longValue(); expected = 41989L; diff --git a/java/test/auto_check_sbp_solution_meta_MsgSolnMetaTest.java b/java/test/auto_check_sbp_solution_meta_MsgSolnMetaTest.java index 0a9149c9cc..bfe2b934c4 100644 --- a/java/test/auto_check_sbp_solution_meta_MsgSolnMetaTest.java +++ b/java/test/auto_check_sbp_solution_meta_MsgSolnMetaTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/soln_meta/test_MsgSolnMeta.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/soln_meta/test_MsgSolnMeta.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.solution_meta.MsgSolnMeta; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_solution_meta_MsgSolnMetaTest { @@ -29,273 +34,15 @@ public class auto_check_sbp_solution_meta_MsgSolnMetaTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_solution_meta_MsgSolnMetaTest.test1"); - byte[] payload = - new byte[] { - (byte) 48, - (byte) 208, - (byte) 65, - (byte) 216, - (byte) 122, - (byte) 45, - (byte) 196, - (byte) 160, - (byte) 144, - (byte) 228, - (byte) 8, - (byte) 83, - (byte) 89, - (byte) 87, - (byte) 3, - (byte) 213, - (byte) 95, - (byte) 109, - (byte) 86, - (byte) 131, - (byte) 71, - (byte) 70, - (byte) 84, - (byte) 73, - (byte) 131, - (byte) 26, - (byte) 82, - (byte) 247, - (byte) 140, - (byte) 97, - (byte) 115, - (byte) 110, - (byte) 118, - (byte) 253, - (byte) 2, - (byte) 122, - (byte) 186, - (byte) 148, - (byte) 122, - (byte) 148, - (byte) 180, - (byte) 231, - (byte) 68, - (byte) 46, - (byte) 190, - (byte) 102, - (byte) 243, - (byte) 48, - (byte) 192, - (byte) 15, - (byte) 208, - (byte) 89, - (byte) 56, - (byte) 10, - (byte) 245, - (byte) 2, - (byte) 254, - (byte) 201, - (byte) 120, - (byte) 32, - (byte) 126, - (byte) 2, - (byte) 83, - (byte) 161, - (byte) 238, - (byte) 123, - (byte) 102, - (byte) 230, - (byte) 76, - (byte) 190, - (byte) 225, - (byte) 182, - (byte) 207, - (byte) 228, - (byte) 7, - (byte) 218, - (byte) 117, - (byte) 89, - (byte) 29, - (byte) 191, - (byte) 56, - (byte) 248, - (byte) 185, - (byte) 255, - (byte) 46, - (byte) 18, - (byte) 72, - (byte) 142, - (byte) 82, - (byte) 113, - (byte) 26, - (byte) 4, - (byte) 172, - (byte) 254, - (byte) 178, - (byte) 136, - (byte) 113, - (byte) 115, - (byte) 58, - (byte) 193, - (byte) 89, - (byte) 227, - (byte) 182, - (byte) 246, - (byte) 76, - (byte) 77, - (byte) 108, - (byte) 245, - (byte) 41, - (byte) 31, - (byte) 70, - (byte) 124, - (byte) 249, - (byte) 145, - (byte) 15, - (byte) 78, - (byte) 228, - (byte) 38, - (byte) 241, - (byte) 129, - (byte) 8, - (byte) 176, - (byte) 251, - (byte) 72, - (byte) 248, - (byte) 80, - (byte) 115, - (byte) 244, - (byte) 231, - (byte) 145, - (byte) 191, - (byte) 190, - (byte) 178, - (byte) 168, - (byte) 89, - (byte) 233, - (byte) 69, - (byte) 176, - (byte) 174, - (byte) 140, - (byte) 182, - (byte) 141, - (byte) 81, - (byte) 82, - (byte) 92, - (byte) 79, - (byte) 101, - (byte) 223, - (byte) 100, - (byte) 64, - (byte) 184, - (byte) 215, - (byte) 124, - (byte) 37, - (byte) 21, - (byte) 227, - (byte) 135, - (byte) 102, - (byte) 72, - (byte) 36, - (byte) 219, - (byte) 56, - (byte) 146, - (byte) 90, - (byte) 219, - (byte) 104, - (byte) 227, - (byte) 102, - (byte) 83, - (byte) 12, - (byte) 41, - (byte) 122, - (byte) 173, - (byte) 94, - (byte) 1, - (byte) 174, - (byte) 134, - (byte) 130, - (byte) 104, - (byte) 237, - (byte) 116, - (byte) 249, - (byte) 107, - (byte) 230, - (byte) 130, - (byte) 123, - (byte) 25, - (byte) 162, - (byte) 57, - (byte) 223, - (byte) 193, - (byte) 174, - (byte) 146, - (byte) 193, - (byte) 239, - (byte) 44, - (byte) 246, - (byte) 197, - (byte) 214, - (byte) 80, - (byte) 83, - (byte) 100, - (byte) 66, - (byte) 72, - (byte) 133, - (byte) 137, - (byte) 140, - (byte) 82, - (byte) 2, - (byte) 2, - (byte) 96, - (byte) 9, - (byte) 96, - (byte) 158, - (byte) 134, - (byte) 97, - (byte) 43, - (byte) 129, - (byte) 141, - (byte) 25, - (byte) 183, - (byte) 200, - (byte) 214, - (byte) 57, - (byte) 248, - (byte) 103, - (byte) 222, - (byte) 65, - (byte) 195, - (byte) 15, - (byte) 244, - (byte) 21, - (byte) 180, - (byte) 46, - (byte) 140, - (byte) 130, - (byte) 36, - (byte) 17, - (byte) 194, - (byte) 209, - (byte) 65, - (byte) 254, - (byte) 115, - (byte) 103, - (byte) 152, - (byte) 129, - (byte) 234, - (byte) 235, - (byte) 194, - (byte) 234, - (byte) 170, - (byte) 201, - (byte) 210, - (byte) 154, - }; - SBPMessage sbp = new SBPMessage(0x3c00, 0xff0e, payload); - MsgSolnMeta msg = new MsgSolnMeta(sbp); + byte[] payload = new byte[] {(byte)48,(byte)208,(byte)65,(byte)216,(byte)122,(byte)45,(byte)196,(byte)160,(byte)144,(byte)228,(byte)8,(byte)83,(byte)89,(byte)87,(byte)3,(byte)213,(byte)95,(byte)109,(byte)86,(byte)131,(byte)71,(byte)70,(byte)84,(byte)73,(byte)131,(byte)26,(byte)82,(byte)247,(byte)140,(byte)97,(byte)115,(byte)110,(byte)118,(byte)253,(byte)2,(byte)122,(byte)186,(byte)148,(byte)122,(byte)148,(byte)180,(byte)231,(byte)68,(byte)46,(byte)190,(byte)102,(byte)243,(byte)48,(byte)192,(byte)15,(byte)208,(byte)89,(byte)56,(byte)10,(byte)245,(byte)2,(byte)254,(byte)201,(byte)120,(byte)32,(byte)126,(byte)2,(byte)83,(byte)161,(byte)238,(byte)123,(byte)102,(byte)230,(byte)76,(byte)190,(byte)225,(byte)182,(byte)207,(byte)228,(byte)7,(byte)218,(byte)117,(byte)89,(byte)29,(byte)191,(byte)56,(byte)248,(byte)185,(byte)255,(byte)46,(byte)18,(byte)72,(byte)142,(byte)82,(byte)113,(byte)26,(byte)4,(byte)172,(byte)254,(byte)178,(byte)136,(byte)113,(byte)115,(byte)58,(byte)193,(byte)89,(byte)227,(byte)182,(byte)246,(byte)76,(byte)77,(byte)108,(byte)245,(byte)41,(byte)31,(byte)70,(byte)124,(byte)249,(byte)145,(byte)15,(byte)78,(byte)228,(byte)38,(byte)241,(byte)129,(byte)8,(byte)176,(byte)251,(byte)72,(byte)248,(byte)80,(byte)115,(byte)244,(byte)231,(byte)145,(byte)191,(byte)190,(byte)178,(byte)168,(byte)89,(byte)233,(byte)69,(byte)176,(byte)174,(byte)140,(byte)182,(byte)141,(byte)81,(byte)82,(byte)92,(byte)79,(byte)101,(byte)223,(byte)100,(byte)64,(byte)184,(byte)215,(byte)124,(byte)37,(byte)21,(byte)227,(byte)135,(byte)102,(byte)72,(byte)36,(byte)219,(byte)56,(byte)146,(byte)90,(byte)219,(byte)104,(byte)227,(byte)102,(byte)83,(byte)12,(byte)41,(byte)122,(byte)173,(byte)94,(byte)1,(byte)174,(byte)134,(byte)130,(byte)104,(byte)237,(byte)116,(byte)249,(byte)107,(byte)230,(byte)130,(byte)123,(byte)25,(byte)162,(byte)57,(byte)223,(byte)193,(byte)174,(byte)146,(byte)193,(byte)239,(byte)44,(byte)246,(byte)197,(byte)214,(byte)80,(byte)83,(byte)100,(byte)66,(byte)72,(byte)133,(byte)137,(byte)140,(byte)82,(byte)2,(byte)2,(byte)96,(byte)9,(byte)96,(byte)158,(byte)134,(byte)97,(byte)43,(byte)129,(byte)141,(byte)25,(byte)183,(byte)200,(byte)214,(byte)57,(byte)248,(byte)103,(byte)222,(byte)65,(byte)195,(byte)15,(byte)244,(byte)21,(byte)180,(byte)46,(byte)140,(byte)130,(byte)36,(byte)17,(byte)194,(byte)209,(byte)65,(byte)254,(byte)115,(byte)103,(byte)152,(byte)129,(byte)234,(byte)235,(byte)194,(byte)234,(byte)170,(byte)201,(byte)210,(byte)154, }; + SBPMessage sbp = new SBPMessage( 0x3c00, 0xff0e, payload ); + MsgSolnMeta msg = new MsgSolnMeta( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.age_corrections; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.age_corrections + "' != '" + 21256 + "'", - value.equals(BigInteger.valueOf(21256L))); + org.junit.Assert.assertTrue("'" + msg.age_corrections + "' != '" + 21256 + "'", value.equals(BigInteger.valueOf( 21256L ) ) ); } else { value = value.longValue(); expected = 21256L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.age_gnss; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.age_gnss + "' != '" + 3573765977L + "'", - value.equals(new BigInteger("3573765977"))); + org.junit.Assert.assertTrue("'" + msg.age_gnss + "' != '" + 3573765977L + "'", value.equals( new BigInteger( "3573765977" ) ) ); } else { value = value.longValue(); expected = 3573765977L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.hdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.hdop + "' != '" + 41156 + "'", - value.equals(BigInteger.valueOf(41156L))); + org.junit.Assert.assertTrue("'" + msg.hdop + "' != '" + 41156 + "'", value.equals(BigInteger.valueOf( 41156L ) ) ); } else { value = value.longValue(); expected = 41156L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.pdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pdop + "' != '" + 11642 + "'", - value.equals(BigInteger.valueOf(11642L))); + org.junit.Assert.assertTrue("'" + msg.pdop + "' != '" + 11642 + "'", value.equals(BigInteger.valueOf( 11642L ) ) ); } else { value = value.longValue(); expected = 11642L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.sol_in[0].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[0].flags + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[0].flags + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.sol_in[0].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[0].sensor_type + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[0].sensor_type + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.sol_in[1].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[1].flags + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[1].flags + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sol_in[1].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[1].sensor_type + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[1].sensor_type + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sol_in[2].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[2].flags + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[2].flags + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.sol_in[2].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[2].sensor_type + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[2].sensor_type + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.sol_in[3].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[3].flags + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[3].flags + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.sol_in[3].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[3].sensor_type + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[3].sensor_type + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.sol_in[4].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[4].flags + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[4].flags + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.sol_in[4].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[4].sensor_type + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[4].sensor_type + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.sol_in[5].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[5].flags + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[5].flags + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.sol_in[5].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[5].sensor_type + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[5].sensor_type + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.sol_in[6].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[6].flags + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[6].flags + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.sol_in[6].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[6].sensor_type + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[6].sensor_type + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.sol_in[7].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[7].flags + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[7].flags + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.sol_in[7].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[7].sensor_type + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[7].sensor_type + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.sol_in[8].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[8].flags + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[8].flags + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.sol_in[8].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[8].sensor_type + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[8].sensor_type + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.sol_in[9].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[9].flags + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[9].flags + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.sol_in[9].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[9].sensor_type + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[9].sensor_type + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.sol_in[10].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[10].flags + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[10].flags + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.sol_in[10].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[10].sensor_type + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[10].sensor_type + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.sol_in[11].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[11].flags + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[11].flags + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.sol_in[11].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[11].sensor_type + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[11].sensor_type + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.sol_in[12].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[12].flags + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[12].flags + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.sol_in[12].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[12].sensor_type + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[12].sensor_type + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.sol_in[13].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[13].flags + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[13].flags + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.sol_in[13].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[13].sensor_type + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[13].sensor_type + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.sol_in[14].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[14].flags + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[14].flags + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.sol_in[14].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[14].sensor_type + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[14].sensor_type + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.sol_in[15].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[15].flags + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[15].flags + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.sol_in[15].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[15].sensor_type + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[15].sensor_type + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.sol_in[16].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[16].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[16].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.sol_in[16].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[16].sensor_type + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[16].sensor_type + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.sol_in[17].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[17].flags + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[17].flags + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.sol_in[17].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[17].sensor_type + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[17].sensor_type + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.sol_in[18].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[18].flags + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[18].flags + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.sol_in[18].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[18].sensor_type + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[18].sensor_type + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.sol_in[19].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[19].flags + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[19].flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.sol_in[19].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[19].sensor_type + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[19].sensor_type + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.sol_in[20].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[20].flags + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[20].flags + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.sol_in[20].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[20].sensor_type + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[20].sensor_type + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.sol_in[21].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[21].flags + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[21].flags + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.sol_in[21].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[21].sensor_type + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[21].sensor_type + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.sol_in[22].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[22].flags + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[22].flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.sol_in[22].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[22].sensor_type + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[22].sensor_type + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.sol_in[23].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[23].flags + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[23].flags + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.sol_in[23].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[23].sensor_type + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[23].sensor_type + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.sol_in[24].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[24].flags + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[24].flags + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.sol_in[24].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[24].sensor_type + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[24].sensor_type + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.sol_in[25].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[25].flags + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[25].flags + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.sol_in[25].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[25].sensor_type + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[25].sensor_type + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.sol_in[26].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[26].flags + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[26].flags + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.sol_in[26].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[26].sensor_type + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[26].sensor_type + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.sol_in[27].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[27].flags + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[27].flags + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.sol_in[27].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[27].sensor_type + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[27].sensor_type + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.sol_in[28].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[28].flags + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[28].flags + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.sol_in[28].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[28].sensor_type + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[28].sensor_type + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.sol_in[29].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[29].flags + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[29].flags + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.sol_in[29].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[29].sensor_type + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[29].sensor_type + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.sol_in[30].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[30].flags + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[30].flags + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.sol_in[30].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[30].sensor_type + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[30].sensor_type + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.sol_in[31].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[31].flags + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[31].flags + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.sol_in[31].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[31].sensor_type + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[31].sensor_type + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.sol_in[32].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[32].flags + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[32].flags + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.sol_in[32].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[32].sensor_type + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[32].sensor_type + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.sol_in[33].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[33].flags + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[33].flags + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.sol_in[33].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[33].sensor_type + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[33].sensor_type + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.sol_in[34].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[34].flags + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[34].flags + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.sol_in[34].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[34].sensor_type + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[34].sensor_type + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.sol_in[35].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[35].flags + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[35].flags + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.sol_in[35].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[35].sensor_type + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[35].sensor_type + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.sol_in[36].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[36].flags + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[36].flags + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.sol_in[36].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[36].sensor_type + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[36].sensor_type + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.sol_in[37].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[37].flags + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[37].flags + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.sol_in[37].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[37].sensor_type + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[37].sensor_type + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.sol_in[38].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[38].flags + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[38].flags + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.sol_in[38].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[38].sensor_type + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[38].sensor_type + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.sol_in[39].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[39].flags + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[39].flags + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.sol_in[39].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[39].sensor_type + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[39].sensor_type + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.sol_in[40].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[40].flags + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[40].flags + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.sol_in[40].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[40].sensor_type + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[40].sensor_type + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.sol_in[41].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[41].flags + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[41].flags + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.sol_in[41].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[41].sensor_type + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[41].sensor_type + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.sol_in[42].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[42].flags + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[42].flags + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.sol_in[42].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[42].sensor_type + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[42].sensor_type + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.sol_in[43].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[43].flags + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[43].flags + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.sol_in[43].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[43].sensor_type + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[43].sensor_type + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.sol_in[44].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[44].flags + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[44].flags + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.sol_in[44].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[44].sensor_type + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[44].sensor_type + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.sol_in[45].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[45].flags + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[45].flags + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.sol_in[45].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[45].sensor_type + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[45].sensor_type + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.sol_in[46].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[46].flags + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[46].flags + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.sol_in[46].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[46].sensor_type + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[46].sensor_type + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.sol_in[47].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[47].flags + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[47].flags + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.sol_in[47].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[47].sensor_type + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[47].sensor_type + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.sol_in[48].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[48].flags + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[48].flags + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.sol_in[48].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[48].sensor_type + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[48].sensor_type + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.sol_in[49].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[49].flags + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[49].flags + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.sol_in[49].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[49].sensor_type + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[49].sensor_type + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.sol_in[50].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[50].flags + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[50].flags + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.sol_in[50].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[50].sensor_type + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[50].sensor_type + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.sol_in[51].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[51].flags + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[51].flags + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.sol_in[51].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[51].sensor_type + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[51].sensor_type + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.sol_in[52].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[52].flags + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[52].flags + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.sol_in[52].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[52].sensor_type + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[52].sensor_type + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.sol_in[53].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[53].flags + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[53].flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.sol_in[53].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[53].sensor_type + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[53].sensor_type + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.sol_in[54].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[54].flags + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[54].flags + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.sol_in[54].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[54].sensor_type + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[54].sensor_type + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.sol_in[55].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[55].flags + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[55].flags + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.sol_in[55].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[55].sensor_type + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[55].sensor_type + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.sol_in[56].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[56].flags + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[56].flags + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.sol_in[56].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[56].sensor_type + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[56].sensor_type + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.sol_in[57].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[57].flags + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[57].flags + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.sol_in[57].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[57].sensor_type + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[57].sensor_type + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.sol_in[58].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[58].flags + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[58].flags + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.sol_in[58].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[58].sensor_type + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[58].sensor_type + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.sol_in[59].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[59].flags + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[59].flags + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.sol_in[59].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[59].sensor_type + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[59].sensor_type + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.sol_in[60].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[60].flags + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[60].flags + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.sol_in[60].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[60].sensor_type + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[60].sensor_type + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.sol_in[61].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[61].flags + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[61].flags + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.sol_in[61].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[61].sensor_type + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[61].sensor_type + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.sol_in[62].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[62].flags + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[62].flags + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.sol_in[62].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[62].sensor_type + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[62].sensor_type + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.sol_in[63].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[63].flags + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[63].flags + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.sol_in[63].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[63].sensor_type + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[63].sensor_type + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.sol_in[64].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[64].flags + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[64].flags + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.sol_in[64].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[64].sensor_type + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[64].sensor_type + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.sol_in[65].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[65].flags + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[65].flags + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.sol_in[65].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[65].sensor_type + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[65].sensor_type + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.sol_in[66].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[66].flags + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[66].flags + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.sol_in[66].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[66].sensor_type + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[66].sensor_type + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.sol_in[67].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[67].flags + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[67].flags + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.sol_in[67].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[67].sensor_type + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[67].sensor_type + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.sol_in[68].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[68].flags + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[68].flags + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.sol_in[68].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[68].sensor_type + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[68].sensor_type + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.sol_in[69].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[69].flags + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[69].flags + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.sol_in[69].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[69].sensor_type + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[69].sensor_type + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.sol_in[70].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[70].flags + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[70].flags + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.sol_in[70].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[70].sensor_type + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[70].sensor_type + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.sol_in[71].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[71].flags + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[71].flags + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.sol_in[71].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[71].sensor_type + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[71].sensor_type + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.sol_in[72].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[72].flags + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[72].flags + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.sol_in[72].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[72].sensor_type + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[72].sensor_type + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.sol_in[73].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[73].flags + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[73].flags + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.sol_in[73].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[73].sensor_type + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[73].sensor_type + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.sol_in[74].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[74].flags + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[74].flags + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.sol_in[74].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[74].sensor_type + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[74].sensor_type + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.sol_in[75].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[75].flags + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[75].flags + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.sol_in[75].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[75].sensor_type + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[75].sensor_type + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.sol_in[76].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[76].flags + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[76].flags + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.sol_in[76].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[76].sensor_type + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[76].sensor_type + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1873,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.sol_in[77].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[77].flags + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[77].flags + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1883,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.sol_in[77].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[77].sensor_type + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[77].sensor_type + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1893,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.sol_in[78].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[78].flags + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[78].flags + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1903,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.sol_in[78].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[78].sensor_type + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[78].sensor_type + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1913,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.sol_in[79].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[79].flags + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[79].flags + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1923,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.sol_in[79].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[79].sensor_type + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[79].sensor_type + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1933,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.sol_in[80].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[80].flags + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[80].flags + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -1943,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.sol_in[80].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[80].sensor_type + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[80].sensor_type + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1953,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.sol_in[81].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[81].flags + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[81].flags + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1963,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.sol_in[81].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[81].sensor_type + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[81].sensor_type + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1973,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.sol_in[82].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[82].flags + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[82].flags + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1983,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.sol_in[82].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[82].sensor_type + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[82].sensor_type + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1993,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.sol_in[83].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[83].flags + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[83].flags + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -2003,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.sol_in[83].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[83].sensor_type + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[83].sensor_type + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -2013,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.sol_in[84].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[84].flags + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[84].flags + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -2023,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.sol_in[84].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[84].sensor_type + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[84].sensor_type + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -2033,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.sol_in[85].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[85].flags + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[85].flags + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -2043,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.sol_in[85].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[85].sensor_type + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[85].sensor_type + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2053,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.sol_in[86].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[86].flags + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[86].flags + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -2063,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.sol_in[86].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[86].sensor_type + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[86].sensor_type + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -2073,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.sol_in[87].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[87].flags + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[87].flags + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2083,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.sol_in[87].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[87].sensor_type + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[87].sensor_type + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2093,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.sol_in[88].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[88].flags + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[88].flags + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2103,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.sol_in[88].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[88].sensor_type + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[88].sensor_type + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -2113,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.sol_in[89].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[89].flags + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[89].flags + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -2123,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.sol_in[89].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[89].sensor_type + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[89].sensor_type + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2133,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.sol_in[90].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[90].flags + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[90].flags + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -2143,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.sol_in[90].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[90].sensor_type + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[90].sensor_type + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -2153,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.sol_in[91].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[91].flags + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[91].flags + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -2163,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.sol_in[91].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[91].sensor_type + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[91].sensor_type + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -2173,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.sol_in[92].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[92].flags + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[92].flags + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -2183,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.sol_in[92].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[92].sensor_type + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[92].sensor_type + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2193,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.sol_in[93].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[93].flags + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[93].flags + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2203,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.sol_in[93].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[93].sensor_type + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[93].sensor_type + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -2213,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.sol_in[94].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[94].flags + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[94].flags + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -2223,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.sol_in[94].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[94].sensor_type + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[94].sensor_type + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -2233,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.sol_in[95].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[95].flags + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[95].flags + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -2243,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.sol_in[95].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[95].sensor_type + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[95].sensor_type + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -2253,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.sol_in[96].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[96].flags + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[96].flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2263,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.sol_in[96].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[96].sensor_type + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[96].sensor_type + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2273,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.sol_in[97].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[97].flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[97].flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -2283,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.sol_in[97].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[97].sensor_type + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[97].sensor_type + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2293,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.sol_in[98].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[98].flags + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[98].flags + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -2303,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.sol_in[98].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[98].sensor_type + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[98].sensor_type + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2313,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.sol_in[99].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[99].flags + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[99].flags + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -2323,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.sol_in[99].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[99].sensor_type + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[99].sensor_type + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2333,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.sol_in[100].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[100].flags + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[100].flags + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2343,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.sol_in[100].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[100].sensor_type + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[100].sensor_type + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -2353,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.sol_in[101].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[101].flags + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[101].flags + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2363,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.sol_in[101].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[101].sensor_type + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[101].sensor_type + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -2373,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.sol_in[102].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[102].flags + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[102].flags + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2383,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.sol_in[102].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[102].sensor_type + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[102].sensor_type + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -2393,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.sol_in[103].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[103].flags + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[103].flags + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -2403,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.sol_in[103].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[103].sensor_type + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[103].sensor_type + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -2413,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.sol_in[104].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[104].flags + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[104].flags + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -2423,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.sol_in[104].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[104].sensor_type + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[104].sensor_type + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -2433,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.sol_in[105].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[105].flags + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[105].flags + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2443,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.sol_in[105].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[105].sensor_type + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[105].sensor_type + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2453,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.sol_in[106].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[106].flags + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[106].flags + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2463,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.sol_in[106].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[106].sensor_type + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[106].sensor_type + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -2473,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.sol_in[107].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[107].flags + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[107].flags + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2483,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.sol_in[107].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[107].sensor_type + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[107].sensor_type + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2493,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.sol_in[108].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[108].flags + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[108].flags + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -2503,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.sol_in[108].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[108].sensor_type + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[108].sensor_type + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2513,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.sol_in[109].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[109].flags + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[109].flags + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -2523,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.sol_in[109].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[109].sensor_type + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[109].sensor_type + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -2533,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.sol_in[110].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[110].flags + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[110].flags + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2543,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.sol_in[110].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[110].sensor_type + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[110].sensor_type + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2553,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.sol_in[111].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[111].flags + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[111].flags + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -2563,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.sol_in[111].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[111].sensor_type + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[111].sensor_type + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2573,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.sol_in[112].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[112].flags + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[112].flags + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -2583,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.sol_in[112].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[112].sensor_type + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[112].sensor_type + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2593,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.sol_in[113].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[113].flags + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[113].flags + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -2603,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.sol_in[113].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[113].sensor_type + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[113].sensor_type + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -2613,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.sol_in[114].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[114].flags + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[114].flags + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2623,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.sol_in[114].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[114].sensor_type + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[114].sensor_type + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -2633,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.sol_in[115].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[115].flags + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[115].flags + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -2643,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.sol_in[115].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[115].sensor_type + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[115].sensor_type + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -2653,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.sol_in[116].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[116].flags + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[116].flags + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -2663,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.sol_in[116].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[116].sensor_type + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[116].sensor_type + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2673,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.sol_in[117].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[117].flags + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[117].flags + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -2683,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.sol_in[117].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[117].sensor_type + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[117].sensor_type + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -2693,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.sol_in[118].flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[118].flags + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[118].flags + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -2703,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.sol_in[118].sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_in[118].sensor_type + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.sol_in[118].sensor_type + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -2713,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 3628191792L + "'", - value.equals(new BigInteger("3628191792"))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 3628191792L + "'", value.equals( new BigInteger( "3628191792" ) ) ); } else { value = value.longValue(); expected = 3628191792L; @@ -2723,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.vdop; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.vdop + "' != '" + 58512 + "'", - value.equals(BigInteger.valueOf(58512L))); + org.junit.Assert.assertTrue("'" + msg.vdop + "' != '" + 58512 + "'", value.equals(BigInteger.valueOf( 58512L ) ) ); } else { value = value.longValue(); expected = 58512L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrCodeBiasesTest.java b/java/test/auto_check_sbp_ssr_MsgSsrCodeBiasesTest.java index 103734a78f..cf9c4cf4cf 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrCodeBiasesTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrCodeBiasesTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrCodeBiases.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrCodeBiases.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrCodeBiases; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrCodeBiasesTest { @@ -27,273 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrCodeBiasesTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrCodeBiasesTest.test1"); - byte[] payload = - new byte[] { - (byte) 208, - (byte) 90, - (byte) 19, - (byte) 23, - (byte) 9, - (byte) 66, - (byte) 133, - (byte) 241, - (byte) 254, - (byte) 132, - (byte) 51, - (byte) 4, - (byte) 131, - (byte) 240, - (byte) 120, - (byte) 83, - (byte) 148, - (byte) 209, - (byte) 213, - (byte) 62, - (byte) 228, - (byte) 232, - (byte) 71, - (byte) 66, - (byte) 188, - (byte) 210, - (byte) 128, - (byte) 54, - (byte) 131, - (byte) 152, - (byte) 129, - (byte) 111, - (byte) 139, - (byte) 242, - (byte) 177, - (byte) 145, - (byte) 44, - (byte) 9, - (byte) 245, - (byte) 207, - (byte) 241, - (byte) 202, - (byte) 150, - (byte) 141, - (byte) 50, - (byte) 159, - (byte) 220, - (byte) 139, - (byte) 37, - (byte) 187, - (byte) 98, - (byte) 191, - (byte) 23, - (byte) 128, - (byte) 136, - (byte) 167, - (byte) 200, - (byte) 6, - (byte) 211, - (byte) 90, - (byte) 23, - (byte) 244, - (byte) 138, - (byte) 215, - (byte) 209, - (byte) 139, - (byte) 13, - (byte) 101, - (byte) 32, - (byte) 7, - (byte) 18, - (byte) 29, - (byte) 70, - (byte) 250, - (byte) 109, - (byte) 73, - (byte) 202, - (byte) 79, - (byte) 144, - (byte) 9, - (byte) 146, - (byte) 69, - (byte) 241, - (byte) 52, - (byte) 22, - (byte) 99, - (byte) 98, - (byte) 204, - (byte) 3, - (byte) 171, - (byte) 230, - (byte) 180, - (byte) 75, - (byte) 62, - (byte) 145, - (byte) 86, - (byte) 130, - (byte) 31, - (byte) 30, - (byte) 155, - (byte) 37, - (byte) 18, - (byte) 55, - (byte) 210, - (byte) 39, - (byte) 127, - (byte) 242, - (byte) 66, - (byte) 13, - (byte) 237, - (byte) 152, - (byte) 170, - (byte) 212, - (byte) 15, - (byte) 246, - (byte) 59, - (byte) 94, - (byte) 180, - (byte) 195, - (byte) 157, - (byte) 69, - (byte) 100, - (byte) 119, - (byte) 16, - (byte) 68, - (byte) 179, - (byte) 175, - (byte) 144, - (byte) 113, - (byte) 81, - (byte) 82, - (byte) 30, - (byte) 151, - (byte) 21, - (byte) 109, - (byte) 41, - (byte) 225, - (byte) 8, - (byte) 77, - (byte) 164, - (byte) 157, - (byte) 0, - (byte) 73, - (byte) 30, - (byte) 6, - (byte) 78, - (byte) 81, - (byte) 143, - (byte) 116, - (byte) 240, - (byte) 151, - (byte) 55, - (byte) 185, - (byte) 169, - (byte) 254, - (byte) 51, - (byte) 39, - (byte) 74, - (byte) 175, - (byte) 247, - (byte) 34, - (byte) 97, - (byte) 74, - (byte) 97, - (byte) 176, - (byte) 48, - (byte) 236, - (byte) 173, - (byte) 12, - (byte) 174, - (byte) 101, - (byte) 130, - (byte) 30, - (byte) 169, - (byte) 193, - (byte) 190, - (byte) 204, - (byte) 196, - (byte) 123, - (byte) 107, - (byte) 25, - (byte) 225, - (byte) 74, - (byte) 9, - (byte) 10, - (byte) 55, - (byte) 3, - (byte) 131, - (byte) 246, - (byte) 99, - (byte) 133, - (byte) 34, - (byte) 227, - (byte) 203, - (byte) 68, - (byte) 18, - (byte) 97, - (byte) 223, - (byte) 89, - (byte) 192, - (byte) 246, - (byte) 50, - (byte) 69, - (byte) 91, - (byte) 10, - (byte) 151, - (byte) 74, - (byte) 118, - (byte) 110, - (byte) 36, - (byte) 168, - (byte) 247, - (byte) 160, - (byte) 77, - (byte) 179, - (byte) 141, - (byte) 178, - (byte) 99, - (byte) 191, - (byte) 120, - (byte) 77, - (byte) 192, - (byte) 91, - (byte) 224, - (byte) 1, - (byte) 226, - (byte) 50, - (byte) 87, - (byte) 146, - (byte) 148, - (byte) 238, - (byte) 100, - (byte) 179, - (byte) 125, - (byte) 227, - (byte) 215, - (byte) 104, - (byte) 184, - (byte) 31, - (byte) 57, - (byte) 90, - (byte) 79, - (byte) 21, - (byte) 156, - (byte) 245, - (byte) 81, - (byte) 60, - (byte) 93, - (byte) 170, - (byte) 60, - (byte) 200, - (byte) 167, - (byte) 13, - }; - SBPMessage sbp = new SBPMessage(0x5727, 0x5e1, payload); - MsgSsrCodeBiases msg = new MsgSsrCodeBiases(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrCodeBiasesTest.test1"); + byte[] payload = new byte[] {(byte)208,(byte)90,(byte)19,(byte)23,(byte)9,(byte)66,(byte)133,(byte)241,(byte)254,(byte)132,(byte)51,(byte)4,(byte)131,(byte)240,(byte)120,(byte)83,(byte)148,(byte)209,(byte)213,(byte)62,(byte)228,(byte)232,(byte)71,(byte)66,(byte)188,(byte)210,(byte)128,(byte)54,(byte)131,(byte)152,(byte)129,(byte)111,(byte)139,(byte)242,(byte)177,(byte)145,(byte)44,(byte)9,(byte)245,(byte)207,(byte)241,(byte)202,(byte)150,(byte)141,(byte)50,(byte)159,(byte)220,(byte)139,(byte)37,(byte)187,(byte)98,(byte)191,(byte)23,(byte)128,(byte)136,(byte)167,(byte)200,(byte)6,(byte)211,(byte)90,(byte)23,(byte)244,(byte)138,(byte)215,(byte)209,(byte)139,(byte)13,(byte)101,(byte)32,(byte)7,(byte)18,(byte)29,(byte)70,(byte)250,(byte)109,(byte)73,(byte)202,(byte)79,(byte)144,(byte)9,(byte)146,(byte)69,(byte)241,(byte)52,(byte)22,(byte)99,(byte)98,(byte)204,(byte)3,(byte)171,(byte)230,(byte)180,(byte)75,(byte)62,(byte)145,(byte)86,(byte)130,(byte)31,(byte)30,(byte)155,(byte)37,(byte)18,(byte)55,(byte)210,(byte)39,(byte)127,(byte)242,(byte)66,(byte)13,(byte)237,(byte)152,(byte)170,(byte)212,(byte)15,(byte)246,(byte)59,(byte)94,(byte)180,(byte)195,(byte)157,(byte)69,(byte)100,(byte)119,(byte)16,(byte)68,(byte)179,(byte)175,(byte)144,(byte)113,(byte)81,(byte)82,(byte)30,(byte)151,(byte)21,(byte)109,(byte)41,(byte)225,(byte)8,(byte)77,(byte)164,(byte)157,(byte)0,(byte)73,(byte)30,(byte)6,(byte)78,(byte)81,(byte)143,(byte)116,(byte)240,(byte)151,(byte)55,(byte)185,(byte)169,(byte)254,(byte)51,(byte)39,(byte)74,(byte)175,(byte)247,(byte)34,(byte)97,(byte)74,(byte)97,(byte)176,(byte)48,(byte)236,(byte)173,(byte)12,(byte)174,(byte)101,(byte)130,(byte)30,(byte)169,(byte)193,(byte)190,(byte)204,(byte)196,(byte)123,(byte)107,(byte)25,(byte)225,(byte)74,(byte)9,(byte)10,(byte)55,(byte)3,(byte)131,(byte)246,(byte)99,(byte)133,(byte)34,(byte)227,(byte)203,(byte)68,(byte)18,(byte)97,(byte)223,(byte)89,(byte)192,(byte)246,(byte)50,(byte)69,(byte)91,(byte)10,(byte)151,(byte)74,(byte)118,(byte)110,(byte)36,(byte)168,(byte)247,(byte)160,(byte)77,(byte)179,(byte)141,(byte)178,(byte)99,(byte)191,(byte)120,(byte)77,(byte)192,(byte)91,(byte)224,(byte)1,(byte)226,(byte)50,(byte)87,(byte)146,(byte)148,(byte)238,(byte)100,(byte)179,(byte)125,(byte)227,(byte)215,(byte)104,(byte)184,(byte)31,(byte)57,(byte)90,(byte)79,(byte)21,(byte)156,(byte)245,(byte)81,(byte)60,(byte)93,(byte)170,(byte)60,(byte)200,(byte)167,(byte)13, }; + SBPMessage sbp = new SBPMessage( 0x5727, 0x5e1, payload ); + MsgSsrCodeBiases msg = new MsgSsrCodeBiases( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.biases[0].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].code + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].code + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -301,9 +50,7 @@ public void test1() throws Throwable { } value = msg.biases[0].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].value + "' != '" + -31996 + "'", - value.equals(BigInteger.valueOf(-31996L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].value + "' != '" + -31996 + "'", value.equals(BigInteger.valueOf( -31996L ) ) ); } else { value = value.longValue(); expected = -31996L; @@ -311,9 +58,7 @@ public void test1() throws Throwable { } value = msg.biases[1].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].code + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].code + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -321,9 +66,7 @@ public void test1() throws Throwable { } value = msg.biases[1].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].value + "' != '" + 21368 + "'", - value.equals(BigInteger.valueOf(21368L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].value + "' != '" + 21368 + "'", value.equals(BigInteger.valueOf( 21368L ) ) ); } else { value = value.longValue(); expected = 21368L; @@ -331,9 +74,7 @@ public void test1() throws Throwable { } value = msg.biases[2].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].code + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].code + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -341,9 +82,7 @@ public void test1() throws Throwable { } value = msg.biases[2].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].value + "' != '" + -10799 + "'", - value.equals(BigInteger.valueOf(-10799L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].value + "' != '" + -10799 + "'", value.equals(BigInteger.valueOf( -10799L ) ) ); } else { value = value.longValue(); expected = -10799L; @@ -351,9 +90,7 @@ public void test1() throws Throwable { } value = msg.biases[3].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].code + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].code + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -361,9 +98,7 @@ public void test1() throws Throwable { } value = msg.biases[3].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].value + "' != '" + -5916 + "'", - value.equals(BigInteger.valueOf(-5916L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].value + "' != '" + -5916 + "'", value.equals(BigInteger.valueOf( -5916L ) ) ); } else { value = value.longValue(); expected = -5916L; @@ -371,9 +106,7 @@ public void test1() throws Throwable { } value = msg.biases[4].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].code + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].code + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -381,9 +114,7 @@ public void test1() throws Throwable { } value = msg.biases[4].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].value + "' != '" + -17342 + "'", - value.equals(BigInteger.valueOf(-17342L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].value + "' != '" + -17342 + "'", value.equals(BigInteger.valueOf( -17342L ) ) ); } else { value = value.longValue(); expected = -17342L; @@ -391,9 +122,7 @@ public void test1() throws Throwable { } value = msg.biases[5].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].code + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].code + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -401,9 +130,7 @@ public void test1() throws Throwable { } value = msg.biases[5].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].value + "' != '" + 13952 + "'", - value.equals(BigInteger.valueOf(13952L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].value + "' != '" + 13952 + "'", value.equals(BigInteger.valueOf( 13952L ) ) ); } else { value = value.longValue(); expected = 13952L; @@ -411,9 +138,7 @@ public void test1() throws Throwable { } value = msg.biases[6].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].code + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].code + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -421,9 +146,7 @@ public void test1() throws Throwable { } value = msg.biases[6].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].value + "' != '" + -32360 + "'", - value.equals(BigInteger.valueOf(-32360L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].value + "' != '" + -32360 + "'", value.equals(BigInteger.valueOf( -32360L ) ) ); } else { value = value.longValue(); expected = -32360L; @@ -431,9 +154,7 @@ public void test1() throws Throwable { } value = msg.biases[7].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].code + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].code + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -441,9 +162,7 @@ public void test1() throws Throwable { } value = msg.biases[7].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].value + "' != '" + -3445 + "'", - value.equals(BigInteger.valueOf(-3445L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].value + "' != '" + -3445 + "'", value.equals(BigInteger.valueOf( -3445L ) ) ); } else { value = value.longValue(); expected = -3445L; @@ -451,9 +170,7 @@ public void test1() throws Throwable { } value = msg.biases[8].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].code + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].code + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -461,9 +178,7 @@ public void test1() throws Throwable { } value = msg.biases[8].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].value + "' != '" + 11409 + "'", - value.equals(BigInteger.valueOf(11409L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].value + "' != '" + 11409 + "'", value.equals(BigInteger.valueOf( 11409L ) ) ); } else { value = value.longValue(); expected = 11409L; @@ -471,9 +186,7 @@ public void test1() throws Throwable { } value = msg.biases[9].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].code + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].code + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -481,9 +194,7 @@ public void test1() throws Throwable { } value = msg.biases[9].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].value + "' != '" + -12299 + "'", - value.equals(BigInteger.valueOf(-12299L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].value + "' != '" + -12299 + "'", value.equals(BigInteger.valueOf( -12299L ) ) ); } else { value = value.longValue(); expected = -12299L; @@ -491,9 +202,7 @@ public void test1() throws Throwable { } value = msg.biases[10].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].code + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].code + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -501,9 +210,7 @@ public void test1() throws Throwable { } value = msg.biases[10].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].value + "' != '" + -26934 + "'", - value.equals(BigInteger.valueOf(-26934L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].value + "' != '" + -26934 + "'", value.equals(BigInteger.valueOf( -26934L ) ) ); } else { value = value.longValue(); expected = -26934L; @@ -511,9 +218,7 @@ public void test1() throws Throwable { } value = msg.biases[11].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].code + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].code + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -521,9 +226,7 @@ public void test1() throws Throwable { } value = msg.biases[11].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].value + "' != '" + -24782 + "'", - value.equals(BigInteger.valueOf(-24782L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].value + "' != '" + -24782 + "'", value.equals(BigInteger.valueOf( -24782L ) ) ); } else { value = value.longValue(); expected = -24782L; @@ -531,9 +234,7 @@ public void test1() throws Throwable { } value = msg.biases[12].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].code + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].code + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -541,9 +242,7 @@ public void test1() throws Throwable { } value = msg.biases[12].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].value + "' != '" + 9611 + "'", - value.equals(BigInteger.valueOf(9611L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].value + "' != '" + 9611 + "'", value.equals(BigInteger.valueOf( 9611L ) ) ); } else { value = value.longValue(); expected = 9611L; @@ -551,9 +250,7 @@ public void test1() throws Throwable { } value = msg.biases[13].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].code + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].code + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -561,9 +258,7 @@ public void test1() throws Throwable { } value = msg.biases[13].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].value + "' != '" + -16542 + "'", - value.equals(BigInteger.valueOf(-16542L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].value + "' != '" + -16542 + "'", value.equals(BigInteger.valueOf( -16542L ) ) ); } else { value = value.longValue(); expected = -16542L; @@ -571,9 +266,7 @@ public void test1() throws Throwable { } value = msg.biases[14].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].code + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].code + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -581,9 +274,7 @@ public void test1() throws Throwable { } value = msg.biases[14].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].value + "' != '" + -30592 + "'", - value.equals(BigInteger.valueOf(-30592L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].value + "' != '" + -30592 + "'", value.equals(BigInteger.valueOf( -30592L ) ) ); } else { value = value.longValue(); expected = -30592L; @@ -591,9 +282,7 @@ public void test1() throws Throwable { } value = msg.biases[15].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].code + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].code + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -601,9 +290,7 @@ public void test1() throws Throwable { } value = msg.biases[15].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].value + "' != '" + 1736 + "'", - value.equals(BigInteger.valueOf(1736L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].value + "' != '" + 1736 + "'", value.equals(BigInteger.valueOf( 1736L ) ) ); } else { value = value.longValue(); expected = 1736L; @@ -611,9 +298,7 @@ public void test1() throws Throwable { } value = msg.biases[16].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].code + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].code + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -621,9 +306,7 @@ public void test1() throws Throwable { } value = msg.biases[16].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].value + "' != '" + 5978 + "'", - value.equals(BigInteger.valueOf(5978L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].value + "' != '" + 5978 + "'", value.equals(BigInteger.valueOf( 5978L ) ) ); } else { value = value.longValue(); expected = 5978L; @@ -631,9 +314,7 @@ public void test1() throws Throwable { } value = msg.biases[17].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].code + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].code + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -641,9 +322,7 @@ public void test1() throws Throwable { } value = msg.biases[17].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].value + "' != '" + -10358 + "'", - value.equals(BigInteger.valueOf(-10358L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].value + "' != '" + -10358 + "'", value.equals(BigInteger.valueOf( -10358L ) ) ); } else { value = value.longValue(); expected = -10358L; @@ -651,9 +330,7 @@ public void test1() throws Throwable { } value = msg.biases[18].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].code + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].code + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -661,9 +338,7 @@ public void test1() throws Throwable { } value = msg.biases[18].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].value + "' != '" + 3467 + "'", - value.equals(BigInteger.valueOf(3467L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].value + "' != '" + 3467 + "'", value.equals(BigInteger.valueOf( 3467L ) ) ); } else { value = value.longValue(); expected = 3467L; @@ -671,9 +346,7 @@ public void test1() throws Throwable { } value = msg.biases[19].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].code + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].code + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -681,9 +354,7 @@ public void test1() throws Throwable { } value = msg.biases[19].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].value + "' != '" + 1824 + "'", - value.equals(BigInteger.valueOf(1824L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].value + "' != '" + 1824 + "'", value.equals(BigInteger.valueOf( 1824L ) ) ); } else { value = value.longValue(); expected = 1824L; @@ -691,9 +362,7 @@ public void test1() throws Throwable { } value = msg.biases[20].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].code + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].code + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -701,9 +370,7 @@ public void test1() throws Throwable { } value = msg.biases[20].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].value + "' != '" + 17949 + "'", - value.equals(BigInteger.valueOf(17949L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].value + "' != '" + 17949 + "'", value.equals(BigInteger.valueOf( 17949L ) ) ); } else { value = value.longValue(); expected = 17949L; @@ -711,9 +378,7 @@ public void test1() throws Throwable { } value = msg.biases[21].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].code + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].code + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -721,9 +386,7 @@ public void test1() throws Throwable { } value = msg.biases[21].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].value + "' != '" + 18797 + "'", - value.equals(BigInteger.valueOf(18797L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].value + "' != '" + 18797 + "'", value.equals(BigInteger.valueOf( 18797L ) ) ); } else { value = value.longValue(); expected = 18797L; @@ -731,9 +394,7 @@ public void test1() throws Throwable { } value = msg.biases[22].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].code + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].code + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -741,9 +402,7 @@ public void test1() throws Throwable { } value = msg.biases[22].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].value + "' != '" + -28593 + "'", - value.equals(BigInteger.valueOf(-28593L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].value + "' != '" + -28593 + "'", value.equals(BigInteger.valueOf( -28593L ) ) ); } else { value = value.longValue(); expected = -28593L; @@ -751,9 +410,7 @@ public void test1() throws Throwable { } value = msg.biases[23].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].code + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].code + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -761,9 +418,7 @@ public void test1() throws Throwable { } value = msg.biases[23].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].value + "' != '" + 17810 + "'", - value.equals(BigInteger.valueOf(17810L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].value + "' != '" + 17810 + "'", value.equals(BigInteger.valueOf( 17810L ) ) ); } else { value = value.longValue(); expected = 17810L; @@ -771,9 +426,7 @@ public void test1() throws Throwable { } value = msg.biases[24].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].code + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].code + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -781,9 +434,7 @@ public void test1() throws Throwable { } value = msg.biases[24].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].value + "' != '" + 5684 + "'", - value.equals(BigInteger.valueOf(5684L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].value + "' != '" + 5684 + "'", value.equals(BigInteger.valueOf( 5684L ) ) ); } else { value = value.longValue(); expected = 5684L; @@ -791,9 +442,7 @@ public void test1() throws Throwable { } value = msg.biases[25].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].code + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].code + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -801,9 +450,7 @@ public void test1() throws Throwable { } value = msg.biases[25].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].value + "' != '" + -13214 + "'", - value.equals(BigInteger.valueOf(-13214L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].value + "' != '" + -13214 + "'", value.equals(BigInteger.valueOf( -13214L ) ) ); } else { value = value.longValue(); expected = -13214L; @@ -811,9 +458,7 @@ public void test1() throws Throwable { } value = msg.biases[26].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -821,9 +466,7 @@ public void test1() throws Throwable { } value = msg.biases[26].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].value + "' != '" + -6485 + "'", - value.equals(BigInteger.valueOf(-6485L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].value + "' != '" + -6485 + "'", value.equals(BigInteger.valueOf( -6485L ) ) ); } else { value = value.longValue(); expected = -6485L; @@ -831,9 +474,7 @@ public void test1() throws Throwable { } value = msg.biases[27].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].code + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].code + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -841,9 +482,7 @@ public void test1() throws Throwable { } value = msg.biases[27].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].value + "' != '" + 15947 + "'", - value.equals(BigInteger.valueOf(15947L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].value + "' != '" + 15947 + "'", value.equals(BigInteger.valueOf( 15947L ) ) ); } else { value = value.longValue(); expected = 15947L; @@ -851,9 +490,7 @@ public void test1() throws Throwable { } value = msg.biases[28].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].code + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].code + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -861,9 +498,7 @@ public void test1() throws Throwable { } value = msg.biases[28].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].value + "' != '" + -32170 + "'", - value.equals(BigInteger.valueOf(-32170L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].value + "' != '" + -32170 + "'", value.equals(BigInteger.valueOf( -32170L ) ) ); } else { value = value.longValue(); expected = -32170L; @@ -871,9 +506,7 @@ public void test1() throws Throwable { } value = msg.biases[29].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].code + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].code + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -881,9 +514,7 @@ public void test1() throws Throwable { } value = msg.biases[29].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].value + "' != '" + -25826 + "'", - value.equals(BigInteger.valueOf(-25826L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].value + "' != '" + -25826 + "'", value.equals(BigInteger.valueOf( -25826L ) ) ); } else { value = value.longValue(); expected = -25826L; @@ -891,9 +522,7 @@ public void test1() throws Throwable { } value = msg.biases[30].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[30].code + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.biases[30].code + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -901,9 +530,7 @@ public void test1() throws Throwable { } value = msg.biases[30].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[30].value + "' != '" + 14098 + "'", - value.equals(BigInteger.valueOf(14098L))); + org.junit.Assert.assertTrue("'" + msg.biases[30].value + "' != '" + 14098 + "'", value.equals(BigInteger.valueOf( 14098L ) ) ); } else { value = value.longValue(); expected = 14098L; @@ -911,9 +538,7 @@ public void test1() throws Throwable { } value = msg.biases[31].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[31].code + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.biases[31].code + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -921,9 +546,7 @@ public void test1() throws Throwable { } value = msg.biases[31].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[31].value + "' != '" + 32551 + "'", - value.equals(BigInteger.valueOf(32551L))); + org.junit.Assert.assertTrue("'" + msg.biases[31].value + "' != '" + 32551 + "'", value.equals(BigInteger.valueOf( 32551L ) ) ); } else { value = value.longValue(); expected = 32551L; @@ -931,9 +554,7 @@ public void test1() throws Throwable { } value = msg.biases[32].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[32].code + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.biases[32].code + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -941,9 +562,7 @@ public void test1() throws Throwable { } value = msg.biases[32].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[32].value + "' != '" + 3394 + "'", - value.equals(BigInteger.valueOf(3394L))); + org.junit.Assert.assertTrue("'" + msg.biases[32].value + "' != '" + 3394 + "'", value.equals(BigInteger.valueOf( 3394L ) ) ); } else { value = value.longValue(); expected = 3394L; @@ -951,9 +570,7 @@ public void test1() throws Throwable { } value = msg.biases[33].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[33].code + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.biases[33].code + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -961,9 +578,7 @@ public void test1() throws Throwable { } value = msg.biases[33].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[33].value + "' != '" + -21864 + "'", - value.equals(BigInteger.valueOf(-21864L))); + org.junit.Assert.assertTrue("'" + msg.biases[33].value + "' != '" + -21864 + "'", value.equals(BigInteger.valueOf( -21864L ) ) ); } else { value = value.longValue(); expected = -21864L; @@ -971,9 +586,7 @@ public void test1() throws Throwable { } value = msg.biases[34].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[34].code + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.biases[34].code + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -981,9 +594,7 @@ public void test1() throws Throwable { } value = msg.biases[34].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[34].value + "' != '" + -2545 + "'", - value.equals(BigInteger.valueOf(-2545L))); + org.junit.Assert.assertTrue("'" + msg.biases[34].value + "' != '" + -2545 + "'", value.equals(BigInteger.valueOf( -2545L ) ) ); } else { value = value.longValue(); expected = -2545L; @@ -991,9 +602,7 @@ public void test1() throws Throwable { } value = msg.biases[35].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[35].code + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.biases[35].code + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1001,9 +610,7 @@ public void test1() throws Throwable { } value = msg.biases[35].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[35].value + "' != '" + -19362 + "'", - value.equals(BigInteger.valueOf(-19362L))); + org.junit.Assert.assertTrue("'" + msg.biases[35].value + "' != '" + -19362 + "'", value.equals(BigInteger.valueOf( -19362L ) ) ); } else { value = value.longValue(); expected = -19362L; @@ -1011,9 +618,7 @@ public void test1() throws Throwable { } value = msg.biases[36].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[36].code + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.biases[36].code + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1021,9 +626,7 @@ public void test1() throws Throwable { } value = msg.biases[36].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[36].value + "' != '" + 17821 + "'", - value.equals(BigInteger.valueOf(17821L))); + org.junit.Assert.assertTrue("'" + msg.biases[36].value + "' != '" + 17821 + "'", value.equals(BigInteger.valueOf( 17821L ) ) ); } else { value = value.longValue(); expected = 17821L; @@ -1031,9 +634,7 @@ public void test1() throws Throwable { } value = msg.biases[37].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[37].code + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.biases[37].code + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1041,9 +642,7 @@ public void test1() throws Throwable { } value = msg.biases[37].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[37].value + "' != '" + 4215 + "'", - value.equals(BigInteger.valueOf(4215L))); + org.junit.Assert.assertTrue("'" + msg.biases[37].value + "' != '" + 4215 + "'", value.equals(BigInteger.valueOf( 4215L ) ) ); } else { value = value.longValue(); expected = 4215L; @@ -1051,9 +650,7 @@ public void test1() throws Throwable { } value = msg.biases[38].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[38].code + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.biases[38].code + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1061,9 +658,7 @@ public void test1() throws Throwable { } value = msg.biases[38].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[38].value + "' != '" + -20557 + "'", - value.equals(BigInteger.valueOf(-20557L))); + org.junit.Assert.assertTrue("'" + msg.biases[38].value + "' != '" + -20557 + "'", value.equals(BigInteger.valueOf( -20557L ) ) ); } else { value = value.longValue(); expected = -20557L; @@ -1071,9 +666,7 @@ public void test1() throws Throwable { } value = msg.biases[39].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[39].code + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.biases[39].code + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -1081,9 +674,7 @@ public void test1() throws Throwable { } value = msg.biases[39].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[39].value + "' != '" + 20849 + "'", - value.equals(BigInteger.valueOf(20849L))); + org.junit.Assert.assertTrue("'" + msg.biases[39].value + "' != '" + 20849 + "'", value.equals(BigInteger.valueOf( 20849L ) ) ); } else { value = value.longValue(); expected = 20849L; @@ -1091,9 +682,7 @@ public void test1() throws Throwable { } value = msg.biases[40].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[40].code + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.biases[40].code + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1101,9 +690,7 @@ public void test1() throws Throwable { } value = msg.biases[40].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[40].value + "' != '" + -26850 + "'", - value.equals(BigInteger.valueOf(-26850L))); + org.junit.Assert.assertTrue("'" + msg.biases[40].value + "' != '" + -26850 + "'", value.equals(BigInteger.valueOf( -26850L ) ) ); } else { value = value.longValue(); expected = -26850L; @@ -1111,9 +698,7 @@ public void test1() throws Throwable { } value = msg.biases[41].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[41].code + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.biases[41].code + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1121,9 +706,7 @@ public void test1() throws Throwable { } value = msg.biases[41].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[41].value + "' != '" + 10605 + "'", - value.equals(BigInteger.valueOf(10605L))); + org.junit.Assert.assertTrue("'" + msg.biases[41].value + "' != '" + 10605 + "'", value.equals(BigInteger.valueOf( 10605L ) ) ); } else { value = value.longValue(); expected = 10605L; @@ -1131,9 +714,7 @@ public void test1() throws Throwable { } value = msg.biases[42].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[42].code + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.biases[42].code + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1141,9 +722,7 @@ public void test1() throws Throwable { } value = msg.biases[42].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[42].value + "' != '" + 19720 + "'", - value.equals(BigInteger.valueOf(19720L))); + org.junit.Assert.assertTrue("'" + msg.biases[42].value + "' != '" + 19720 + "'", value.equals(BigInteger.valueOf( 19720L ) ) ); } else { value = value.longValue(); expected = 19720L; @@ -1151,9 +730,7 @@ public void test1() throws Throwable { } value = msg.biases[43].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[43].code + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.biases[43].code + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1161,9 +738,7 @@ public void test1() throws Throwable { } value = msg.biases[43].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[43].value + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.biases[43].value + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1171,9 +746,7 @@ public void test1() throws Throwable { } value = msg.biases[44].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[44].code + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.biases[44].code + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1181,9 +754,7 @@ public void test1() throws Throwable { } value = msg.biases[44].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[44].value + "' != '" + 1566 + "'", - value.equals(BigInteger.valueOf(1566L))); + org.junit.Assert.assertTrue("'" + msg.biases[44].value + "' != '" + 1566 + "'", value.equals(BigInteger.valueOf( 1566L ) ) ); } else { value = value.longValue(); expected = 1566L; @@ -1191,9 +762,7 @@ public void test1() throws Throwable { } value = msg.biases[45].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[45].code + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.biases[45].code + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1201,9 +770,7 @@ public void test1() throws Throwable { } value = msg.biases[45].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[45].value + "' != '" + -28847 + "'", - value.equals(BigInteger.valueOf(-28847L))); + org.junit.Assert.assertTrue("'" + msg.biases[45].value + "' != '" + -28847 + "'", value.equals(BigInteger.valueOf( -28847L ) ) ); } else { value = value.longValue(); expected = -28847L; @@ -1211,9 +778,7 @@ public void test1() throws Throwable { } value = msg.biases[46].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[46].code + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.biases[46].code + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1221,9 +786,7 @@ public void test1() throws Throwable { } value = msg.biases[46].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[46].value + "' != '" + -26640 + "'", - value.equals(BigInteger.valueOf(-26640L))); + org.junit.Assert.assertTrue("'" + msg.biases[46].value + "' != '" + -26640 + "'", value.equals(BigInteger.valueOf( -26640L ) ) ); } else { value = value.longValue(); expected = -26640L; @@ -1231,9 +794,7 @@ public void test1() throws Throwable { } value = msg.biases[47].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[47].code + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.biases[47].code + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1241,9 +802,7 @@ public void test1() throws Throwable { } value = msg.biases[47].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[47].value + "' != '" + -22087 + "'", - value.equals(BigInteger.valueOf(-22087L))); + org.junit.Assert.assertTrue("'" + msg.biases[47].value + "' != '" + -22087 + "'", value.equals(BigInteger.valueOf( -22087L ) ) ); } else { value = value.longValue(); expected = -22087L; @@ -1251,9 +810,7 @@ public void test1() throws Throwable { } value = msg.biases[48].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[48].code + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.biases[48].code + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1261,9 +818,7 @@ public void test1() throws Throwable { } value = msg.biases[48].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[48].value + "' != '" + 10035 + "'", - value.equals(BigInteger.valueOf(10035L))); + org.junit.Assert.assertTrue("'" + msg.biases[48].value + "' != '" + 10035 + "'", value.equals(BigInteger.valueOf( 10035L ) ) ); } else { value = value.longValue(); expected = 10035L; @@ -1271,9 +826,7 @@ public void test1() throws Throwable { } value = msg.biases[49].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[49].code + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.biases[49].code + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1281,9 +834,7 @@ public void test1() throws Throwable { } value = msg.biases[49].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[49].value + "' != '" + -2129 + "'", - value.equals(BigInteger.valueOf(-2129L))); + org.junit.Assert.assertTrue("'" + msg.biases[49].value + "' != '" + -2129 + "'", value.equals(BigInteger.valueOf( -2129L ) ) ); } else { value = value.longValue(); expected = -2129L; @@ -1291,9 +842,7 @@ public void test1() throws Throwable { } value = msg.biases[50].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[50].code + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.biases[50].code + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -1301,9 +850,7 @@ public void test1() throws Throwable { } value = msg.biases[50].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[50].value + "' != '" + 19041 + "'", - value.equals(BigInteger.valueOf(19041L))); + org.junit.Assert.assertTrue("'" + msg.biases[50].value + "' != '" + 19041 + "'", value.equals(BigInteger.valueOf( 19041L ) ) ); } else { value = value.longValue(); expected = 19041L; @@ -1311,9 +858,7 @@ public void test1() throws Throwable { } value = msg.biases[51].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[51].code + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.biases[51].code + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1321,9 +866,7 @@ public void test1() throws Throwable { } value = msg.biases[51].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[51].value + "' != '" + 12464 + "'", - value.equals(BigInteger.valueOf(12464L))); + org.junit.Assert.assertTrue("'" + msg.biases[51].value + "' != '" + 12464 + "'", value.equals(BigInteger.valueOf( 12464L ) ) ); } else { value = value.longValue(); expected = 12464L; @@ -1331,9 +874,7 @@ public void test1() throws Throwable { } value = msg.biases[52].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[52].code + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.biases[52].code + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -1341,9 +882,7 @@ public void test1() throws Throwable { } value = msg.biases[52].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[52].value + "' != '" + 3245 + "'", - value.equals(BigInteger.valueOf(3245L))); + org.junit.Assert.assertTrue("'" + msg.biases[52].value + "' != '" + 3245 + "'", value.equals(BigInteger.valueOf( 3245L ) ) ); } else { value = value.longValue(); expected = 3245L; @@ -1351,9 +890,7 @@ public void test1() throws Throwable { } value = msg.biases[53].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[53].code + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.biases[53].code + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1361,9 +898,7 @@ public void test1() throws Throwable { } value = msg.biases[53].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[53].value + "' != '" + -32155 + "'", - value.equals(BigInteger.valueOf(-32155L))); + org.junit.Assert.assertTrue("'" + msg.biases[53].value + "' != '" + -32155 + "'", value.equals(BigInteger.valueOf( -32155L ) ) ); } else { value = value.longValue(); expected = -32155L; @@ -1371,9 +906,7 @@ public void test1() throws Throwable { } value = msg.biases[54].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[54].code + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.biases[54].code + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1381,9 +914,7 @@ public void test1() throws Throwable { } value = msg.biases[54].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[54].value + "' != '" + -15959 + "'", - value.equals(BigInteger.valueOf(-15959L))); + org.junit.Assert.assertTrue("'" + msg.biases[54].value + "' != '" + -15959 + "'", value.equals(BigInteger.valueOf( -15959L ) ) ); } else { value = value.longValue(); expected = -15959L; @@ -1391,9 +922,7 @@ public void test1() throws Throwable { } value = msg.biases[55].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[55].code + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.biases[55].code + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1401,9 +930,7 @@ public void test1() throws Throwable { } value = msg.biases[55].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[55].value + "' != '" + -15156 + "'", - value.equals(BigInteger.valueOf(-15156L))); + org.junit.Assert.assertTrue("'" + msg.biases[55].value + "' != '" + -15156 + "'", value.equals(BigInteger.valueOf( -15156L ) ) ); } else { value = value.longValue(); expected = -15156L; @@ -1411,9 +938,7 @@ public void test1() throws Throwable { } value = msg.biases[56].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[56].code + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.biases[56].code + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1421,9 +946,7 @@ public void test1() throws Throwable { } value = msg.biases[56].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[56].value + "' != '" + 6507 + "'", - value.equals(BigInteger.valueOf(6507L))); + org.junit.Assert.assertTrue("'" + msg.biases[56].value + "' != '" + 6507 + "'", value.equals(BigInteger.valueOf( 6507L ) ) ); } else { value = value.longValue(); expected = 6507L; @@ -1431,9 +954,7 @@ public void test1() throws Throwable { } value = msg.biases[57].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[57].code + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.biases[57].code + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -1441,9 +962,7 @@ public void test1() throws Throwable { } value = msg.biases[57].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[57].value + "' != '" + 2378 + "'", - value.equals(BigInteger.valueOf(2378L))); + org.junit.Assert.assertTrue("'" + msg.biases[57].value + "' != '" + 2378 + "'", value.equals(BigInteger.valueOf( 2378L ) ) ); } else { value = value.longValue(); expected = 2378L; @@ -1451,9 +970,7 @@ public void test1() throws Throwable { } value = msg.biases[58].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[58].code + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.biases[58].code + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1461,9 +978,7 @@ public void test1() throws Throwable { } value = msg.biases[58].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[58].value + "' != '" + 823 + "'", - value.equals(BigInteger.valueOf(823L))); + org.junit.Assert.assertTrue("'" + msg.biases[58].value + "' != '" + 823 + "'", value.equals(BigInteger.valueOf( 823L ) ) ); } else { value = value.longValue(); expected = 823L; @@ -1471,9 +986,7 @@ public void test1() throws Throwable { } value = msg.biases[59].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[59].code + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.biases[59].code + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1481,9 +994,7 @@ public void test1() throws Throwable { } value = msg.biases[59].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[59].value + "' != '" + 25590 + "'", - value.equals(BigInteger.valueOf(25590L))); + org.junit.Assert.assertTrue("'" + msg.biases[59].value + "' != '" + 25590 + "'", value.equals(BigInteger.valueOf( 25590L ) ) ); } else { value = value.longValue(); expected = 25590L; @@ -1491,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.biases[60].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[60].code + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.biases[60].code + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1501,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.biases[60].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[60].value + "' != '" + -7390 + "'", - value.equals(BigInteger.valueOf(-7390L))); + org.junit.Assert.assertTrue("'" + msg.biases[60].value + "' != '" + -7390 + "'", value.equals(BigInteger.valueOf( -7390L ) ) ); } else { value = value.longValue(); expected = -7390L; @@ -1511,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.biases[61].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[61].code + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.biases[61].code + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1521,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.biases[61].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[61].value + "' != '" + 4676 + "'", - value.equals(BigInteger.valueOf(4676L))); + org.junit.Assert.assertTrue("'" + msg.biases[61].value + "' != '" + 4676 + "'", value.equals(BigInteger.valueOf( 4676L ) ) ); } else { value = value.longValue(); expected = 4676L; @@ -1531,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.biases[62].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[62].code + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.biases[62].code + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1541,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.biases[62].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[62].value + "' != '" + 23007 + "'", - value.equals(BigInteger.valueOf(23007L))); + org.junit.Assert.assertTrue("'" + msg.biases[62].value + "' != '" + 23007 + "'", value.equals(BigInteger.valueOf( 23007L ) ) ); } else { value = value.longValue(); expected = 23007L; @@ -1551,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.biases[63].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[63].code + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.biases[63].code + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1561,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.biases[63].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[63].value + "' != '" + 13046 + "'", - value.equals(BigInteger.valueOf(13046L))); + org.junit.Assert.assertTrue("'" + msg.biases[63].value + "' != '" + 13046 + "'", value.equals(BigInteger.valueOf( 13046L ) ) ); } else { value = value.longValue(); expected = 13046L; @@ -1571,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.biases[64].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[64].code + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.biases[64].code + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1581,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.biases[64].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[64].value + "' != '" + 2651 + "'", - value.equals(BigInteger.valueOf(2651L))); + org.junit.Assert.assertTrue("'" + msg.biases[64].value + "' != '" + 2651 + "'", value.equals(BigInteger.valueOf( 2651L ) ) ); } else { value = value.longValue(); expected = 2651L; @@ -1591,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.biases[65].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[65].code + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.biases[65].code + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1601,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.biases[65].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[65].value + "' != '" + 30282 + "'", - value.equals(BigInteger.valueOf(30282L))); + org.junit.Assert.assertTrue("'" + msg.biases[65].value + "' != '" + 30282 + "'", value.equals(BigInteger.valueOf( 30282L ) ) ); } else { value = value.longValue(); expected = 30282L; @@ -1611,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.biases[66].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[66].code + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.biases[66].code + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1621,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.biases[66].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[66].value + "' != '" + -22492 + "'", - value.equals(BigInteger.valueOf(-22492L))); + org.junit.Assert.assertTrue("'" + msg.biases[66].value + "' != '" + -22492 + "'", value.equals(BigInteger.valueOf( -22492L ) ) ); } else { value = value.longValue(); expected = -22492L; @@ -1631,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.biases[67].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[67].code + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.biases[67].code + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1641,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.biases[67].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[67].value + "' != '" + 19872 + "'", - value.equals(BigInteger.valueOf(19872L))); + org.junit.Assert.assertTrue("'" + msg.biases[67].value + "' != '" + 19872 + "'", value.equals(BigInteger.valueOf( 19872L ) ) ); } else { value = value.longValue(); expected = 19872L; @@ -1651,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.biases[68].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[68].code + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.biases[68].code + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1661,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.biases[68].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[68].value + "' != '" + -19827 + "'", - value.equals(BigInteger.valueOf(-19827L))); + org.junit.Assert.assertTrue("'" + msg.biases[68].value + "' != '" + -19827 + "'", value.equals(BigInteger.valueOf( -19827L ) ) ); } else { value = value.longValue(); expected = -19827L; @@ -1671,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.biases[69].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[69].code + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.biases[69].code + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1681,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.biases[69].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[69].value + "' != '" + 30911 + "'", - value.equals(BigInteger.valueOf(30911L))); + org.junit.Assert.assertTrue("'" + msg.biases[69].value + "' != '" + 30911 + "'", value.equals(BigInteger.valueOf( 30911L ) ) ); } else { value = value.longValue(); expected = 30911L; @@ -1691,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.biases[70].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[70].code + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.biases[70].code + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1701,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.biases[70].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[70].value + "' != '" + 23488 + "'", - value.equals(BigInteger.valueOf(23488L))); + org.junit.Assert.assertTrue("'" + msg.biases[70].value + "' != '" + 23488 + "'", value.equals(BigInteger.valueOf( 23488L ) ) ); } else { value = value.longValue(); expected = 23488L; @@ -1711,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.biases[71].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[71].code + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.biases[71].code + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1721,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.biases[71].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[71].value + "' != '" + -7679 + "'", - value.equals(BigInteger.valueOf(-7679L))); + org.junit.Assert.assertTrue("'" + msg.biases[71].value + "' != '" + -7679 + "'", value.equals(BigInteger.valueOf( -7679L ) ) ); } else { value = value.longValue(); expected = -7679L; @@ -1731,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.biases[72].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[72].code + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.biases[72].code + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1741,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.biases[72].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[72].value + "' != '" + -28073 + "'", - value.equals(BigInteger.valueOf(-28073L))); + org.junit.Assert.assertTrue("'" + msg.biases[72].value + "' != '" + -28073 + "'", value.equals(BigInteger.valueOf( -28073L ) ) ); } else { value = value.longValue(); expected = -28073L; @@ -1751,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.biases[73].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[73].code + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.biases[73].code + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -1761,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.biases[73].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[73].value + "' != '" + 25838 + "'", - value.equals(BigInteger.valueOf(25838L))); + org.junit.Assert.assertTrue("'" + msg.biases[73].value + "' != '" + 25838 + "'", value.equals(BigInteger.valueOf( 25838L ) ) ); } else { value = value.longValue(); expected = 25838L; @@ -1771,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.biases[74].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[74].code + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.biases[74].code + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1781,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.biases[74].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[74].value + "' != '" + -7299 + "'", - value.equals(BigInteger.valueOf(-7299L))); + org.junit.Assert.assertTrue("'" + msg.biases[74].value + "' != '" + -7299 + "'", value.equals(BigInteger.valueOf( -7299L ) ) ); } else { value = value.longValue(); expected = -7299L; @@ -1791,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.biases[75].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[75].code + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.biases[75].code + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1801,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.biases[75].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[75].value + "' != '" + -18328 + "'", - value.equals(BigInteger.valueOf(-18328L))); + org.junit.Assert.assertTrue("'" + msg.biases[75].value + "' != '" + -18328 + "'", value.equals(BigInteger.valueOf( -18328L ) ) ); } else { value = value.longValue(); expected = -18328L; @@ -1811,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.biases[76].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[76].code + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.biases[76].code + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1821,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.biases[76].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[76].value + "' != '" + 23097 + "'", - value.equals(BigInteger.valueOf(23097L))); + org.junit.Assert.assertTrue("'" + msg.biases[76].value + "' != '" + 23097 + "'", value.equals(BigInteger.valueOf( 23097L ) ) ); } else { value = value.longValue(); expected = 23097L; @@ -1831,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.biases[77].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[77].code + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.biases[77].code + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -1841,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.biases[77].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[77].value + "' != '" + -25579 + "'", - value.equals(BigInteger.valueOf(-25579L))); + org.junit.Assert.assertTrue("'" + msg.biases[77].value + "' != '" + -25579 + "'", value.equals(BigInteger.valueOf( -25579L ) ) ); } else { value = value.longValue(); expected = -25579L; @@ -1851,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.biases[78].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[78].code + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.biases[78].code + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1861,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.biases[78].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[78].value + "' != '" + 15441 + "'", - value.equals(BigInteger.valueOf(15441L))); + org.junit.Assert.assertTrue("'" + msg.biases[78].value + "' != '" + 15441 + "'", value.equals(BigInteger.valueOf( 15441L ) ) ); } else { value = value.longValue(); expected = 15441L; @@ -1871,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.biases[79].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[79].code + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.biases[79].code + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1881,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.biases[79].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[79].value + "' != '" + 15530 + "'", - value.equals(BigInteger.valueOf(15530L))); + org.junit.Assert.assertTrue("'" + msg.biases[79].value + "' != '" + 15530 + "'", value.equals(BigInteger.valueOf( 15530L ) ) ); } else { value = value.longValue(); expected = 15530L; @@ -1891,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.biases[80].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[80].code + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.biases[80].code + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1901,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.biases[80].value; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[80].value + "' != '" + 3495 + "'", - value.equals(BigInteger.valueOf(3495L))); + org.junit.Assert.assertTrue("'" + msg.biases[80].value + "' != '" + 3495 + "'", value.equals(BigInteger.valueOf( 3495L ) ) ); } else { value = value.longValue(); expected = 3495L; @@ -1911,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.iod_ssr; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_ssr + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.iod_ssr + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1921,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1931,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1941,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 387144400 + "'", - value.equals(BigInteger.valueOf(387144400L))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 387144400 + "'", value.equals(BigInteger.valueOf( 387144400L ) ) ); } else { value = value.longValue(); expected = 387144400L; @@ -1951,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 16905 + "'", - value.equals(BigInteger.valueOf(16905L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 16905 + "'", value.equals(BigInteger.valueOf( 16905L ) ) ); } else { value = value.longValue(); expected = 16905L; @@ -1961,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest.java b/java/test/auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest.java index eb7d73ea48..28e65842f8 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrCodePhaseBiasesBounds.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrCodePhaseBiasesBounds.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrCodePhaseBiasesBounds; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest { @@ -30,23 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrCodePhaseBiasesBoundsTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 2, (byte) 1, (byte) 14, (byte) 15, (byte) 1, (byte) 3, (byte) 0, - (byte) 3, (byte) 39, (byte) 1, (byte) 39, (byte) 1, (byte) 1, (byte) 3, - (byte) 39, (byte) 1, (byte) 39, (byte) 1, (byte) 1, (byte) 1, (byte) 39, - (byte) 1, (byte) 39, (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05EC, payload); - MsgSsrCodePhaseBiasesBounds msg = new MsgSsrCodePhaseBiasesBounds(sbp); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)1,(byte)14,(byte)15,(byte)1,(byte)3,(byte)0,(byte)3,(byte)39,(byte)1,(byte)39,(byte)1,(byte)1,(byte)3,(byte)39,(byte)1,(byte)39,(byte)1,(byte)1,(byte)1,(byte)39,(byte)1,(byte)39,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05EC, payload ); + MsgSsrCodePhaseBiasesBounds msg = new MsgSsrCodePhaseBiasesBounds( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.const_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -54,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -64,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -74,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -84,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -94,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -104,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -114,9 +98,7 @@ public void test1() throws Throwable { } value = msg.n_sats_signals; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats_signals + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_sats_signals + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -124,9 +106,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].code_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].code_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].code_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -134,9 +114,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].code_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].code_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].code_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -144,9 +122,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].phase_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].phase_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].phase_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -154,9 +130,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].phase_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].phase_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].phase_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -164,9 +138,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].sat_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].sat_id + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].sat_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -174,9 +146,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[0].signal_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[0].signal_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[0].signal_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -184,9 +154,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].code_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].code_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].code_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -194,9 +162,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].code_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].code_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].code_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -204,9 +170,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].phase_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].phase_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].phase_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -214,9 +178,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].phase_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].phase_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].phase_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -224,9 +186,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].sat_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].sat_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].sat_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -234,9 +194,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[1].signal_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[1].signal_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[1].signal_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -244,9 +202,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].code_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].code_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].code_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -254,9 +210,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].code_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].code_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].code_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -264,9 +218,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].phase_bias_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].phase_bias_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].phase_bias_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -274,9 +226,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].phase_bias_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].phase_bias_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].phase_bias_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -284,9 +234,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].sat_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].sat_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].sat_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -294,9 +242,7 @@ public void test1() throws Throwable { } value = msg.satellites_signals[2].signal_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.satellites_signals[2].signal_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.satellites_signals[2].signal_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -304,8 +250,7 @@ public void test1() throws Throwable { } value = msg.ssr_iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest.java index 96ba4fcd1c..7c30f9e09b 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGridDefinitionDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGridDefinitionDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrGridDefinitionDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest { @@ -30,274 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGridDefinitionDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 11, - (byte) 84, - (byte) 171, - (byte) 229, - (byte) 132, - (byte) 143, - (byte) 46, - (byte) 204, - (byte) 52, - (byte) 92, - (byte) 104, - (byte) 25, - (byte) 204, - (byte) 182, - (byte) 22, - (byte) 98, - (byte) 203, - (byte) 123, - (byte) 211, - (byte) 38, - (byte) 13, - (byte) 253, - (byte) 129, - (byte) 173, - (byte) 171, - (byte) 235, - (byte) 253, - (byte) 26, - (byte) 203, - (byte) 3, - (byte) 120, - (byte) 126, - (byte) 42, - (byte) 44, - (byte) 39, - (byte) 87, - (byte) 69, - (byte) 154, - (byte) 13, - (byte) 28, - (byte) 179, - (byte) 32, - (byte) 47, - (byte) 36, - (byte) 195, - (byte) 39, - (byte) 198, - (byte) 134, - (byte) 235, - (byte) 134, - (byte) 57, - (byte) 120, - (byte) 243, - (byte) 151, - (byte) 35, - (byte) 17, - (byte) 201, - (byte) 211, - (byte) 125, - (byte) 117, - (byte) 164, - (byte) 142, - (byte) 101, - (byte) 239, - (byte) 144, - (byte) 158, - (byte) 239, - (byte) 90, - (byte) 56, - (byte) 71, - (byte) 120, - (byte) 67, - (byte) 221, - (byte) 114, - (byte) 10, - (byte) 190, - (byte) 4, - (byte) 230, - (byte) 164, - (byte) 171, - (byte) 78, - (byte) 185, - (byte) 90, - (byte) 46, - (byte) 177, - (byte) 82, - (byte) 228, - (byte) 123, - (byte) 222, - (byte) 227, - (byte) 145, - (byte) 195, - (byte) 219, - (byte) 27, - (byte) 56, - (byte) 227, - (byte) 246, - (byte) 215, - (byte) 144, - (byte) 158, - (byte) 31, - (byte) 214, - (byte) 241, - (byte) 254, - (byte) 200, - (byte) 86, - (byte) 142, - (byte) 89, - (byte) 12, - (byte) 121, - (byte) 29, - (byte) 124, - (byte) 9, - (byte) 19, - (byte) 153, - (byte) 44, - (byte) 35, - (byte) 126, - (byte) 14, - (byte) 217, - (byte) 65, - (byte) 116, - (byte) 26, - (byte) 139, - (byte) 122, - (byte) 114, - (byte) 90, - (byte) 124, - (byte) 81, - (byte) 0, - (byte) 186, - (byte) 246, - (byte) 46, - (byte) 98, - (byte) 179, - (byte) 243, - (byte) 198, - (byte) 217, - (byte) 36, - (byte) 30, - (byte) 202, - (byte) 12, - (byte) 135, - (byte) 61, - (byte) 42, - (byte) 150, - (byte) 221, - (byte) 102, - (byte) 83, - (byte) 179, - (byte) 43, - (byte) 252, - (byte) 81, - (byte) 62, - (byte) 126, - (byte) 204, - (byte) 195, - (byte) 238, - (byte) 18, - (byte) 128, - (byte) 193, - (byte) 53, - (byte) 94, - (byte) 99, - (byte) 63, - (byte) 182, - (byte) 2, - (byte) 186, - (byte) 220, - (byte) 77, - (byte) 186, - (byte) 224, - (byte) 220, - (byte) 13, - (byte) 212, - (byte) 182, - (byte) 88, - (byte) 15, - (byte) 151, - (byte) 5, - (byte) 93, - (byte) 251, - (byte) 164, - (byte) 18, - (byte) 228, - (byte) 168, - (byte) 226, - (byte) 195, - (byte) 44, - (byte) 170, - (byte) 145, - (byte) 36, - (byte) 58, - (byte) 96, - (byte) 107, - (byte) 144, - (byte) 11, - (byte) 228, - (byte) 12, - (byte) 163, - (byte) 238, - (byte) 247, - (byte) 159, - (byte) 189, - (byte) 1, - (byte) 115, - (byte) 65, - (byte) 202, - (byte) 121, - (byte) 47, - (byte) 193, - (byte) 11, - (byte) 96, - (byte) 93, - (byte) 72, - (byte) 81, - (byte) 207, - (byte) 121, - (byte) 19, - (byte) 151, - (byte) 136, - (byte) 233, - (byte) 51, - (byte) 133, - (byte) 195, - (byte) 77, - (byte) 44, - (byte) 147, - (byte) 206, - (byte) 120, - (byte) 252, - (byte) 77, - (byte) 212, - (byte) 68, - (byte) 60, - (byte) 206, - (byte) 106, - (byte) 207, - (byte) 243, - (byte) 158, - (byte) 94, - (byte) 6, - (byte) 3, - (byte) 205, - (byte) 92, - (byte) 84, - (byte) 2, - (byte) 220, - (byte) 50, - (byte) 61, - (byte) 38, - (byte) 141, - (byte) 117, - (byte) 108, - (byte) 101, - }; - SBPMessage sbp = new SBPMessage(0xf7b5, 0x5f5, payload); - MsgSsrGridDefinitionDepA msg = new MsgSsrGridDefinitionDepA(sbp); + byte[] payload = new byte[] {(byte)11,(byte)84,(byte)171,(byte)229,(byte)132,(byte)143,(byte)46,(byte)204,(byte)52,(byte)92,(byte)104,(byte)25,(byte)204,(byte)182,(byte)22,(byte)98,(byte)203,(byte)123,(byte)211,(byte)38,(byte)13,(byte)253,(byte)129,(byte)173,(byte)171,(byte)235,(byte)253,(byte)26,(byte)203,(byte)3,(byte)120,(byte)126,(byte)42,(byte)44,(byte)39,(byte)87,(byte)69,(byte)154,(byte)13,(byte)28,(byte)179,(byte)32,(byte)47,(byte)36,(byte)195,(byte)39,(byte)198,(byte)134,(byte)235,(byte)134,(byte)57,(byte)120,(byte)243,(byte)151,(byte)35,(byte)17,(byte)201,(byte)211,(byte)125,(byte)117,(byte)164,(byte)142,(byte)101,(byte)239,(byte)144,(byte)158,(byte)239,(byte)90,(byte)56,(byte)71,(byte)120,(byte)67,(byte)221,(byte)114,(byte)10,(byte)190,(byte)4,(byte)230,(byte)164,(byte)171,(byte)78,(byte)185,(byte)90,(byte)46,(byte)177,(byte)82,(byte)228,(byte)123,(byte)222,(byte)227,(byte)145,(byte)195,(byte)219,(byte)27,(byte)56,(byte)227,(byte)246,(byte)215,(byte)144,(byte)158,(byte)31,(byte)214,(byte)241,(byte)254,(byte)200,(byte)86,(byte)142,(byte)89,(byte)12,(byte)121,(byte)29,(byte)124,(byte)9,(byte)19,(byte)153,(byte)44,(byte)35,(byte)126,(byte)14,(byte)217,(byte)65,(byte)116,(byte)26,(byte)139,(byte)122,(byte)114,(byte)90,(byte)124,(byte)81,(byte)0,(byte)186,(byte)246,(byte)46,(byte)98,(byte)179,(byte)243,(byte)198,(byte)217,(byte)36,(byte)30,(byte)202,(byte)12,(byte)135,(byte)61,(byte)42,(byte)150,(byte)221,(byte)102,(byte)83,(byte)179,(byte)43,(byte)252,(byte)81,(byte)62,(byte)126,(byte)204,(byte)195,(byte)238,(byte)18,(byte)128,(byte)193,(byte)53,(byte)94,(byte)99,(byte)63,(byte)182,(byte)2,(byte)186,(byte)220,(byte)77,(byte)186,(byte)224,(byte)220,(byte)13,(byte)212,(byte)182,(byte)88,(byte)15,(byte)151,(byte)5,(byte)93,(byte)251,(byte)164,(byte)18,(byte)228,(byte)168,(byte)226,(byte)195,(byte)44,(byte)170,(byte)145,(byte)36,(byte)58,(byte)96,(byte)107,(byte)144,(byte)11,(byte)228,(byte)12,(byte)163,(byte)238,(byte)247,(byte)159,(byte)189,(byte)1,(byte)115,(byte)65,(byte)202,(byte)121,(byte)47,(byte)193,(byte)11,(byte)96,(byte)93,(byte)72,(byte)81,(byte)207,(byte)121,(byte)19,(byte)151,(byte)136,(byte)233,(byte)51,(byte)133,(byte)195,(byte)77,(byte)44,(byte)147,(byte)206,(byte)120,(byte)252,(byte)77,(byte)212,(byte)68,(byte)60,(byte)206,(byte)106,(byte)207,(byte)243,(byte)158,(byte)94,(byte)6,(byte)3,(byte)205,(byte)92,(byte)84,(byte)2,(byte)220,(byte)50,(byte)61,(byte)38,(byte)141,(byte)117,(byte)108,(byte)101, }; + SBPMessage sbp = new SBPMessage( 0xf7b5, 0x5f5, payload ); + MsgSsrGridDefinitionDepA msg = new MsgSsrGridDefinitionDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.area_width; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.area_width + "' != '" + 43860 + "'", - value.equals(BigInteger.valueOf(43860L))); + org.junit.Assert.assertTrue("'" + msg.header.area_width + "' != '" + 43860 + "'", value.equals(BigInteger.valueOf( 43860L ) ) ); } else { value = value.longValue(); expected = 43860L; @@ -305,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.lat_nw_corner_enc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.lat_nw_corner_enc + "' != '" + 34021 + "'", - value.equals(BigInteger.valueOf(34021L))); + org.junit.Assert.assertTrue("'" + msg.header.lat_nw_corner_enc + "' != '" + 34021 + "'", value.equals(BigInteger.valueOf( 34021L ) ) ); } else { value = value.longValue(); expected = 34021L; @@ -315,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.lon_nw_corner_enc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.lon_nw_corner_enc + "' != '" + 11919 + "'", - value.equals(BigInteger.valueOf(11919L))); + org.junit.Assert.assertTrue("'" + msg.header.lon_nw_corner_enc + "' != '" + 11919 + "'", value.equals(BigInteger.valueOf( 11919L ) ) ); } else { value = value.longValue(); expected = 11919L; @@ -325,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -335,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.region_size_inverse; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.region_size_inverse + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.header.region_size_inverse + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -345,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -355,9 +90,7 @@ public void test1() throws Throwable { } value = msg.rle_list[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[0] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[0] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -365,9 +98,7 @@ public void test1() throws Throwable { } value = msg.rle_list[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[1] + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[1] + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -375,9 +106,7 @@ public void test1() throws Throwable { } value = msg.rle_list[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[2] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[2] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -385,9 +114,7 @@ public void test1() throws Throwable { } value = msg.rle_list[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[3] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[3] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -395,9 +122,7 @@ public void test1() throws Throwable { } value = msg.rle_list[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[4] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[4] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -405,9 +130,7 @@ public void test1() throws Throwable { } value = msg.rle_list[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[5] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[5] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -415,9 +138,7 @@ public void test1() throws Throwable { } value = msg.rle_list[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[6] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[6] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -425,9 +146,7 @@ public void test1() throws Throwable { } value = msg.rle_list[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[7] + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[7] + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -435,9 +154,7 @@ public void test1() throws Throwable { } value = msg.rle_list[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[8] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[8] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -445,9 +162,7 @@ public void test1() throws Throwable { } value = msg.rle_list[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[9] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[9] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -455,9 +170,7 @@ public void test1() throws Throwable { } value = msg.rle_list[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[10] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[10] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -465,9 +178,7 @@ public void test1() throws Throwable { } value = msg.rle_list[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[11] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[11] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -475,9 +186,7 @@ public void test1() throws Throwable { } value = msg.rle_list[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[12] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[12] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -485,9 +194,7 @@ public void test1() throws Throwable { } value = msg.rle_list[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[13] + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[13] + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -495,9 +202,7 @@ public void test1() throws Throwable { } value = msg.rle_list[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[14] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[14] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -505,9 +210,7 @@ public void test1() throws Throwable { } value = msg.rle_list[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[15] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[15] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -515,9 +218,7 @@ public void test1() throws Throwable { } value = msg.rle_list[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[16] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[16] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -525,9 +226,7 @@ public void test1() throws Throwable { } value = msg.rle_list[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[17] + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[17] + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -535,9 +234,7 @@ public void test1() throws Throwable { } value = msg.rle_list[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[18] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[18] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -545,9 +242,7 @@ public void test1() throws Throwable { } value = msg.rle_list[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[19] + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[19] + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -555,9 +250,7 @@ public void test1() throws Throwable { } value = msg.rle_list[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[20] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[20] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -565,9 +258,7 @@ public void test1() throws Throwable { } value = msg.rle_list[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[21] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[21] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -575,9 +266,7 @@ public void test1() throws Throwable { } value = msg.rle_list[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[22] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[22] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -585,9 +274,7 @@ public void test1() throws Throwable { } value = msg.rle_list[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[23] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[23] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -595,9 +282,7 @@ public void test1() throws Throwable { } value = msg.rle_list[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[24] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[24] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -605,9 +290,7 @@ public void test1() throws Throwable { } value = msg.rle_list[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[25] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[25] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -615,9 +298,7 @@ public void test1() throws Throwable { } value = msg.rle_list[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[26] + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[26] + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -625,9 +306,7 @@ public void test1() throws Throwable { } value = msg.rle_list[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[27] + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[27] + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -635,9 +314,7 @@ public void test1() throws Throwable { } value = msg.rle_list[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[28] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[28] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -645,9 +322,7 @@ public void test1() throws Throwable { } value = msg.rle_list[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[29] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[29] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -655,9 +330,7 @@ public void test1() throws Throwable { } value = msg.rle_list[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[30] + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[30] + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -665,9 +338,7 @@ public void test1() throws Throwable { } value = msg.rle_list[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[31] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[31] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -675,9 +346,7 @@ public void test1() throws Throwable { } value = msg.rle_list[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[32] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[32] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -685,9 +354,7 @@ public void test1() throws Throwable { } value = msg.rle_list[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[33] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[33] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -695,9 +362,7 @@ public void test1() throws Throwable { } value = msg.rle_list[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[34] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[34] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -705,9 +370,7 @@ public void test1() throws Throwable { } value = msg.rle_list[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[35] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[35] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -715,9 +378,7 @@ public void test1() throws Throwable { } value = msg.rle_list[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[36] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[36] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -725,9 +386,7 @@ public void test1() throws Throwable { } value = msg.rle_list[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[37] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[37] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -735,9 +394,7 @@ public void test1() throws Throwable { } value = msg.rle_list[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[38] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[38] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -745,9 +402,7 @@ public void test1() throws Throwable { } value = msg.rle_list[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[39] + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[39] + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -755,9 +410,7 @@ public void test1() throws Throwable { } value = msg.rle_list[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[40] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[40] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -765,9 +418,7 @@ public void test1() throws Throwable { } value = msg.rle_list[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[41] + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[41] + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -775,9 +426,7 @@ public void test1() throws Throwable { } value = msg.rle_list[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[42] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[42] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -785,9 +434,7 @@ public void test1() throws Throwable { } value = msg.rle_list[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[43] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[43] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -795,9 +442,7 @@ public void test1() throws Throwable { } value = msg.rle_list[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[44] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[44] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -805,9 +450,7 @@ public void test1() throws Throwable { } value = msg.rle_list[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[45] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[45] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -815,9 +458,7 @@ public void test1() throws Throwable { } value = msg.rle_list[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[46] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[46] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -825,9 +466,7 @@ public void test1() throws Throwable { } value = msg.rle_list[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[47] + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[47] + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -835,9 +474,7 @@ public void test1() throws Throwable { } value = msg.rle_list[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[48] + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[48] + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -845,9 +482,7 @@ public void test1() throws Throwable { } value = msg.rle_list[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[49] + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[49] + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -855,9 +490,7 @@ public void test1() throws Throwable { } value = msg.rle_list[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[50] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[50] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -865,9 +498,7 @@ public void test1() throws Throwable { } value = msg.rle_list[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[51] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[51] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -875,9 +506,7 @@ public void test1() throws Throwable { } value = msg.rle_list[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[52] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[52] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -885,9 +514,7 @@ public void test1() throws Throwable { } value = msg.rle_list[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[53] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[53] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -895,9 +522,7 @@ public void test1() throws Throwable { } value = msg.rle_list[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[54] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[54] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -905,9 +530,7 @@ public void test1() throws Throwable { } value = msg.rle_list[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[55] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[55] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -915,9 +538,7 @@ public void test1() throws Throwable { } value = msg.rle_list[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[56] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[56] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -925,9 +546,7 @@ public void test1() throws Throwable { } value = msg.rle_list[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[57] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[57] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -935,9 +554,7 @@ public void test1() throws Throwable { } value = msg.rle_list[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[58] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[58] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -945,9 +562,7 @@ public void test1() throws Throwable { } value = msg.rle_list[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[59] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[59] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -955,9 +570,7 @@ public void test1() throws Throwable { } value = msg.rle_list[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[60] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[60] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -965,9 +578,7 @@ public void test1() throws Throwable { } value = msg.rle_list[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[61] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[61] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -975,9 +586,7 @@ public void test1() throws Throwable { } value = msg.rle_list[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[62] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[62] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -985,9 +594,7 @@ public void test1() throws Throwable { } value = msg.rle_list[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[63] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[63] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -995,9 +602,7 @@ public void test1() throws Throwable { } value = msg.rle_list[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[64] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[64] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1005,9 +610,7 @@ public void test1() throws Throwable { } value = msg.rle_list[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[65] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[65] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1015,9 +618,7 @@ public void test1() throws Throwable { } value = msg.rle_list[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[66] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[66] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1025,9 +626,7 @@ public void test1() throws Throwable { } value = msg.rle_list[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[67] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[67] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1035,9 +634,7 @@ public void test1() throws Throwable { } value = msg.rle_list[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[68] + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[68] + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1045,9 +642,7 @@ public void test1() throws Throwable { } value = msg.rle_list[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[69] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[69] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1055,9 +650,7 @@ public void test1() throws Throwable { } value = msg.rle_list[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[70] + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[70] + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1065,9 +658,7 @@ public void test1() throws Throwable { } value = msg.rle_list[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[71] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[71] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1075,9 +666,7 @@ public void test1() throws Throwable { } value = msg.rle_list[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[72] + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[72] + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1085,9 +674,7 @@ public void test1() throws Throwable { } value = msg.rle_list[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[73] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[73] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1095,9 +682,7 @@ public void test1() throws Throwable { } value = msg.rle_list[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[74] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[74] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1105,9 +690,7 @@ public void test1() throws Throwable { } value = msg.rle_list[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[75] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[75] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1115,9 +698,7 @@ public void test1() throws Throwable { } value = msg.rle_list[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[76] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[76] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1125,9 +706,7 @@ public void test1() throws Throwable { } value = msg.rle_list[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[77] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[77] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1135,9 +714,7 @@ public void test1() throws Throwable { } value = msg.rle_list[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[78] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[78] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1145,9 +722,7 @@ public void test1() throws Throwable { } value = msg.rle_list[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[79] + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[79] + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1155,9 +730,7 @@ public void test1() throws Throwable { } value = msg.rle_list[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[80] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[80] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1165,9 +738,7 @@ public void test1() throws Throwable { } value = msg.rle_list[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[81] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[81] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1175,9 +746,7 @@ public void test1() throws Throwable { } value = msg.rle_list[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[82] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[82] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1185,9 +754,7 @@ public void test1() throws Throwable { } value = msg.rle_list[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[83] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[83] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1195,9 +762,7 @@ public void test1() throws Throwable { } value = msg.rle_list[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[84] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[84] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1205,9 +770,7 @@ public void test1() throws Throwable { } value = msg.rle_list[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[85] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[85] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1215,9 +778,7 @@ public void test1() throws Throwable { } value = msg.rle_list[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[86] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[86] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1225,9 +786,7 @@ public void test1() throws Throwable { } value = msg.rle_list[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[87] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[87] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1235,9 +794,7 @@ public void test1() throws Throwable { } value = msg.rle_list[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[88] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[88] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1245,9 +802,7 @@ public void test1() throws Throwable { } value = msg.rle_list[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[89] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[89] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -1255,9 +810,7 @@ public void test1() throws Throwable { } value = msg.rle_list[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[90] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[90] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1265,9 +818,7 @@ public void test1() throws Throwable { } value = msg.rle_list[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[91] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[91] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1275,9 +826,7 @@ public void test1() throws Throwable { } value = msg.rle_list[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[92] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[92] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1285,9 +834,7 @@ public void test1() throws Throwable { } value = msg.rle_list[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[93] + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[93] + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1295,9 +842,7 @@ public void test1() throws Throwable { } value = msg.rle_list[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[94] + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[94] + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1305,9 +850,7 @@ public void test1() throws Throwable { } value = msg.rle_list[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[95] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[95] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1315,9 +858,7 @@ public void test1() throws Throwable { } value = msg.rle_list[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[96] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[96] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1325,9 +866,7 @@ public void test1() throws Throwable { } value = msg.rle_list[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[97] + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[97] + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1335,9 +874,7 @@ public void test1() throws Throwable { } value = msg.rle_list[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[98] + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[98] + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1345,9 +882,7 @@ public void test1() throws Throwable { } value = msg.rle_list[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[99] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[99] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1355,9 +890,7 @@ public void test1() throws Throwable { } value = msg.rle_list[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[100] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[100] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1365,9 +898,7 @@ public void test1() throws Throwable { } value = msg.rle_list[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[101] + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[101] + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1375,9 +906,7 @@ public void test1() throws Throwable { } value = msg.rle_list[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[102] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[102] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1385,9 +914,7 @@ public void test1() throws Throwable { } value = msg.rle_list[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[103] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[103] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1395,9 +922,7 @@ public void test1() throws Throwable { } value = msg.rle_list[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[104] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[104] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1405,9 +930,7 @@ public void test1() throws Throwable { } value = msg.rle_list[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[105] + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[105] + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1415,9 +938,7 @@ public void test1() throws Throwable { } value = msg.rle_list[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[106] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[106] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1425,9 +946,7 @@ public void test1() throws Throwable { } value = msg.rle_list[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[107] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[107] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1435,9 +954,7 @@ public void test1() throws Throwable { } value = msg.rle_list[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[108] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[108] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1445,9 +962,7 @@ public void test1() throws Throwable { } value = msg.rle_list[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[109] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[109] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1455,9 +970,7 @@ public void test1() throws Throwable { } value = msg.rle_list[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[110] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[110] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1465,9 +978,7 @@ public void test1() throws Throwable { } value = msg.rle_list[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[111] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[111] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1475,9 +986,7 @@ public void test1() throws Throwable { } value = msg.rle_list[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[112] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[112] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1485,9 +994,7 @@ public void test1() throws Throwable { } value = msg.rle_list[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[113] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[113] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1495,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.rle_list[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[114] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[114] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1505,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.rle_list[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[115] + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[115] + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1515,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.rle_list[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[116] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[116] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1525,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.rle_list[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[117] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[117] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1535,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.rle_list[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[118] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[118] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1545,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.rle_list[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[119] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[119] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1555,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.rle_list[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[120] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[120] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1565,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.rle_list[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[121] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[121] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1575,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.rle_list[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[122] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[122] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1585,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.rle_list[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[123] + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[123] + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1595,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.rle_list[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[124] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[124] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -1605,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.rle_list[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[125] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[125] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1615,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.rle_list[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[126] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[126] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -1625,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.rle_list[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[127] + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[127] + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -1635,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.rle_list[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[128] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[128] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1645,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.rle_list[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[129] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[129] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1655,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.rle_list[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[130] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[130] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1665,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.rle_list[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[131] + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[131] + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1675,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.rle_list[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[132] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[132] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1685,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.rle_list[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[133] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[133] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -1695,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.rle_list[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[134] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[134] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1705,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.rle_list[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[135] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[135] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1715,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.rle_list[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[136] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[136] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1725,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.rle_list[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[137] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[137] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1735,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.rle_list[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[138] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[138] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1745,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.rle_list[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[139] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[139] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1755,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.rle_list[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[140] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[140] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1765,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.rle_list[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[141] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[141] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1775,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.rle_list[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[142] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[142] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1785,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.rle_list[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[143] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[143] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1795,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.rle_list[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[144] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[144] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1805,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.rle_list[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[145] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[145] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1815,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.rle_list[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[146] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[146] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -1825,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.rle_list[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[147] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[147] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1835,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.rle_list[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[148] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[148] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1845,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.rle_list[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[149] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[149] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1855,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.rle_list[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[150] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[150] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1865,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.rle_list[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[151] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[151] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1875,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.rle_list[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[152] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[152] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -1885,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.rle_list[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[153] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[153] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1895,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.rle_list[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[154] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[154] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1905,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.rle_list[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[155] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[155] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1915,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.rle_list[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[156] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[156] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1925,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.rle_list[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[157] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[157] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1935,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.rle_list[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[158] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[158] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1945,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.rle_list[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[159] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[159] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1955,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.rle_list[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[160] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[160] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1965,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.rle_list[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[161] + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[161] + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1975,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.rle_list[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[162] + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[162] + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1985,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.rle_list[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[163] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[163] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1995,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.rle_list[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[164] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[164] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -2005,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.rle_list[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[165] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[165] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2015,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.rle_list[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[166] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[166] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -2025,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.rle_list[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[167] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[167] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2035,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.rle_list[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[168] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[168] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -2045,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.rle_list[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[169] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[169] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2055,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.rle_list[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[170] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[170] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2065,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.rle_list[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[171] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[171] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -2075,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.rle_list[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[172] + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[172] + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -2085,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.rle_list[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[173] + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[173] + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -2095,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.rle_list[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[174] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[174] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2105,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.rle_list[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[175] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[175] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2115,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.rle_list[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[176] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[176] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2125,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.rle_list[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[177] + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[177] + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -2135,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.rle_list[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[178] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[178] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -2145,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.rle_list[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[179] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[179] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -2155,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.rle_list[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[180] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[180] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -2165,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.rle_list[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[181] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[181] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2175,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.rle_list[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[182] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[182] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2185,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.rle_list[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[183] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[183] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2195,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.rle_list[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[184] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[184] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2205,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.rle_list[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[185] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[185] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -2215,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.rle_list[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[186] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[186] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -2225,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.rle_list[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[187] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[187] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2235,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.rle_list[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[188] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[188] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2245,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.rle_list[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[189] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[189] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -2255,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.rle_list[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[190] + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[190] + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -2265,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.rle_list[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[191] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[191] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -2275,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.rle_list[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[192] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[192] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -2285,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.rle_list[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[193] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[193] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -2295,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.rle_list[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[194] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[194] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -2305,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.rle_list[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[195] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[195] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2315,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.rle_list[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[196] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[196] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -2325,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.rle_list[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[197] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[197] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -2335,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.rle_list[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[198] + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[198] + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2345,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.rle_list[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[199] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[199] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -2355,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.rle_list[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[200] + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[200] + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -2365,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.rle_list[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[201] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[201] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -2375,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.rle_list[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[202] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[202] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2385,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.rle_list[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[203] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[203] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -2395,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.rle_list[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[204] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[204] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -2405,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.rle_list[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[205] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[205] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2415,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.rle_list[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[206] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[206] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -2425,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.rle_list[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[207] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[207] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2435,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.rle_list[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[208] + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[208] + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -2445,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.rle_list[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[209] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[209] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -2455,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.rle_list[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[210] + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[210] + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -2465,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.rle_list[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[211] + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[211] + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -2475,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.rle_list[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[212] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[212] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -2485,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.rle_list[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[213] + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[213] + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -2495,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.rle_list[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[214] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[214] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -2505,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.rle_list[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[215] + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[215] + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -2515,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.rle_list[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[216] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[216] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2525,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.rle_list[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[217] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[217] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -2535,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.rle_list[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[218] + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[218] + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -2545,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.rle_list[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[219] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[219] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -2555,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.rle_list[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[220] + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[220] + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -2565,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.rle_list[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[221] + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[221] + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -2575,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.rle_list[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[222] + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[222] + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2585,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.rle_list[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[223] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[223] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2595,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.rle_list[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[224] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[224] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2605,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.rle_list[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[225] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[225] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -2615,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.rle_list[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[226] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[226] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -2625,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.rle_list[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[227] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[227] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2635,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.rle_list[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[228] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[228] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2645,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.rle_list[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[229] + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[229] + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -2655,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.rle_list[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[230] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[230] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -2665,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.rle_list[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[231] + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[231] + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -2675,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.rle_list[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[232] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[232] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2685,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.rle_list[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[233] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[233] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -2695,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.rle_list[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[234] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[234] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -2705,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.rle_list[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[235] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[235] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2715,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.rle_list[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[236] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[236] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -2725,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.rle_list[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[237] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[237] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -2735,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.rle_list[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[238] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[238] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -2745,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.rle_list[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[239] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[239] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -2755,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.rle_list[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[240] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[240] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -2765,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.rle_list[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[241] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[241] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2775,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.rle_list[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[242] + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[242] + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -2785,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.rle_list[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[243] + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[243] + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -2795,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.rle_list[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[244] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[244] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -2805,9 +2050,7 @@ public void test1() throws Throwable { } value = msg.rle_list[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rle_list[245] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.rle_list[245] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.java b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.java index f65ea43d53..ec8b0d2fa1 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionBounds.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionBounds.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionBounds; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest { @@ -29,28 +33,16 @@ public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 0, (byte) 10, (byte) 0, (byte) 15, (byte) 1, (byte) 0, (byte) 10, - (byte) 0, (byte) 39, (byte) 232, (byte) 3, (byte) 244, (byte) 1, (byte) 100, - (byte) 200, (byte) 150, (byte) 100, (byte) 150, (byte) 100, (byte) 2, (byte) 5, - (byte) 10, (byte) 16, (byte) 0, (byte) 17, (byte) 18, (byte) 19, (byte) 20, - (byte) 21, (byte) 6, (byte) 10, (byte) 22, (byte) 0, (byte) 23, (byte) 24, - (byte) 25, (byte) 26, (byte) 27, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05FE, payload); - MsgSsrGriddedCorrectionBounds msg = new MsgSsrGriddedCorrectionBounds(sbp); + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)0,(byte)10,(byte)0,(byte)15,(byte)1,(byte)0,(byte)10,(byte)0,(byte)39,(byte)232,(byte)3,(byte)244,(byte)1,(byte)100,(byte)200,(byte)150,(byte)100,(byte)150,(byte)100,(byte)2,(byte)5,(byte)10,(byte)16,(byte)0,(byte)17,(byte)18,(byte)19,(byte)20,(byte)21,(byte)6,(byte)10,(byte)22,(byte)0,(byte)23,(byte)24,(byte)25,(byte)26,(byte)27, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05FE, payload ); + MsgSsrGriddedCorrectionBounds msg = new MsgSsrGriddedCorrectionBounds( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.grid_point_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.grid_point_id + "' != '" + 1000 + "'", - value.equals(BigInteger.valueOf(1000L))); + org.junit.Assert.assertTrue("'" + msg.grid_point_id + "' != '" + 1000 + "'", value.equals(BigInteger.valueOf( 1000L ) ) ); } else { value = value.longValue(); expected = 1000L; @@ -58,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -68,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -78,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -88,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -98,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -108,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -118,8 +98,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -127,9 +106,7 @@ public void test1() throws Throwable { } value = msg.ssr_iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -137,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_bound_mu + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_bound_mu + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -147,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_bound_mu_dot + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_bound_mu_dot + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -157,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_bound_sig + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_bound_sig + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -167,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_bound_sig_dot + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_bound_sig_dot + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -177,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_residual.residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_residual.residual + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_residual.residual + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -187,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_residual.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_residual.stddev + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_residual.stddev + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -197,13 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_residual.sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.stec_sat_list[0].stec_residual.sv_id.constellation - + "' != '" - + 10 - + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_residual.sv_id.constellation + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -211,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_residual.sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_residual.sv_id.satId + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_residual.sv_id.satId + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -221,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_bound_mu + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_bound_mu + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -231,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_bound_mu_dot + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_bound_mu_dot + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -241,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_bound_sig + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_bound_sig + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -251,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_bound_sig_dot + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_bound_sig_dot + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -261,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_residual.residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_residual.residual + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_residual.residual + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -271,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_residual.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_residual.stddev + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_residual.stddev + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -281,13 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_residual.sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.stec_sat_list[1].stec_residual.sv_id.constellation - + "' != '" - + 10 - + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_residual.sv_id.constellation + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -295,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_residual.sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_residual.sv_id.satId + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_residual.sv_id.satId + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -305,8 +242,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -314,9 +250,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -324,9 +258,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.hydro; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.hydro + "' != '" + 500 + "'", - value.equals(BigInteger.valueOf(500L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.hydro + "' != '" + 500 + "'", value.equals(BigInteger.valueOf( 500L ) ) ); } else { value = value.longValue(); expected = 500L; @@ -334,9 +266,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.stddev + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.stddev + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -344,9 +274,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.wet; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.wet + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.wet + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -354,9 +282,7 @@ public void test1() throws Throwable { } value = msg.tropo_qi; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_qi + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.tropo_qi + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -364,9 +290,7 @@ public void test1() throws Throwable { } value = msg.tropo_v_hydro_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_hydro_bound_mu + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_hydro_bound_mu + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -374,9 +298,7 @@ public void test1() throws Throwable { } value = msg.tropo_v_hydro_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_hydro_bound_sig + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_hydro_bound_sig + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -384,9 +306,7 @@ public void test1() throws Throwable { } value = msg.tropo_v_wet_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_wet_bound_mu + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_wet_bound_mu + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -394,9 +314,7 @@ public void test1() throws Throwable { } value = msg.tropo_v_wet_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_wet_bound_sig + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_wet_bound_sig + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -409,25 +327,16 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.test2"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 0, (byte) 10, (byte) 0, (byte) 15, (byte) 1, (byte) 0, (byte) 10, - (byte) 0, (byte) 39, (byte) 232, (byte) 3, (byte) 244, (byte) 1, (byte) 100, - (byte) 200, (byte) 150, (byte) 100, (byte) 150, (byte) 100, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05FE, payload); - MsgSsrGriddedCorrectionBounds msg = new MsgSsrGriddedCorrectionBounds(sbp); + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionBoundsTest.test2"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)0,(byte)10,(byte)0,(byte)15,(byte)1,(byte)0,(byte)10,(byte)0,(byte)39,(byte)232,(byte)3,(byte)244,(byte)1,(byte)100,(byte)200,(byte)150,(byte)100,(byte)150,(byte)100,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05FE, payload ); + MsgSsrGriddedCorrectionBounds msg = new MsgSsrGriddedCorrectionBounds( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.grid_point_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.grid_point_id + "' != '" + 1000 + "'", - value.equals(BigInteger.valueOf(1000L))); + org.junit.Assert.assertTrue("'" + msg.grid_point_id + "' != '" + 1000 + "'", value.equals(BigInteger.valueOf( 1000L ) ) ); } else { value = value.longValue(); expected = 1000L; @@ -435,9 +344,7 @@ public void test2() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -445,9 +352,7 @@ public void test2() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -455,9 +360,7 @@ public void test2() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -465,9 +368,7 @@ public void test2() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -475,9 +376,7 @@ public void test2() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -485,9 +384,7 @@ public void test2() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -495,8 +392,7 @@ public void test2() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -504,9 +400,7 @@ public void test2() throws Throwable { } value = msg.ssr_iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -514,8 +408,7 @@ public void test2() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -523,9 +416,7 @@ public void test2() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -533,9 +424,7 @@ public void test2() throws Throwable { } value = msg.tropo_delay_correction.hydro; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.hydro + "' != '" + 500 + "'", - value.equals(BigInteger.valueOf(500L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.hydro + "' != '" + 500 + "'", value.equals(BigInteger.valueOf( 500L ) ) ); } else { value = value.longValue(); expected = 500L; @@ -543,9 +432,7 @@ public void test2() throws Throwable { } value = msg.tropo_delay_correction.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.stddev + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.stddev + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -553,9 +440,7 @@ public void test2() throws Throwable { } value = msg.tropo_delay_correction.wet; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.wet + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.wet + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -563,9 +448,7 @@ public void test2() throws Throwable { } value = msg.tropo_qi; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_qi + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.tropo_qi + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -573,9 +456,7 @@ public void test2() throws Throwable { } value = msg.tropo_v_hydro_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_hydro_bound_mu + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_hydro_bound_mu + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -583,9 +464,7 @@ public void test2() throws Throwable { } value = msg.tropo_v_hydro_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_hydro_bound_sig + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_hydro_bound_sig + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -593,9 +472,7 @@ public void test2() throws Throwable { } value = msg.tropo_v_wet_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_wet_bound_mu + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_wet_bound_mu + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -603,9 +480,7 @@ public void test2() throws Throwable { } value = msg.tropo_v_wet_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_v_wet_bound_sig + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.tropo_v_wet_bound_sig + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest.java index a912338c82..05af545901 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest { @@ -30,273 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 164, - (byte) 217, - (byte) 44, - (byte) 53, - (byte) 98, - (byte) 93, - (byte) 63, - (byte) 147, - (byte) 104, - (byte) 252, - (byte) 133, - (byte) 245, - (byte) 28, - (byte) 95, - (byte) 100, - (byte) 147, - (byte) 41, - (byte) 33, - (byte) 92, - (byte) 87, - (byte) 25, - (byte) 142, - (byte) 151, - (byte) 74, - (byte) 151, - (byte) 95, - (byte) 94, - (byte) 7, - (byte) 146, - (byte) 237, - (byte) 45, - (byte) 167, - (byte) 86, - (byte) 42, - (byte) 116, - (byte) 224, - (byte) 169, - (byte) 234, - (byte) 220, - (byte) 23, - (byte) 176, - (byte) 18, - (byte) 13, - (byte) 178, - (byte) 79, - (byte) 160, - (byte) 160, - (byte) 110, - (byte) 15, - (byte) 53, - (byte) 206, - (byte) 151, - (byte) 158, - (byte) 22, - (byte) 117, - (byte) 184, - (byte) 48, - (byte) 170, - (byte) 82, - (byte) 40, - (byte) 53, - (byte) 122, - (byte) 69, - (byte) 180, - (byte) 110, - (byte) 38, - (byte) 65, - (byte) 104, - (byte) 244, - (byte) 19, - (byte) 238, - (byte) 227, - (byte) 88, - (byte) 169, - (byte) 164, - (byte) 146, - (byte) 63, - (byte) 37, - (byte) 183, - (byte) 85, - (byte) 71, - (byte) 235, - (byte) 168, - (byte) 114, - (byte) 211, - (byte) 105, - (byte) 221, - (byte) 156, - (byte) 60, - (byte) 18, - (byte) 230, - (byte) 2, - (byte) 142, - (byte) 172, - (byte) 16, - (byte) 39, - (byte) 33, - (byte) 126, - (byte) 106, - (byte) 99, - (byte) 188, - (byte) 234, - (byte) 41, - (byte) 162, - (byte) 197, - (byte) 138, - (byte) 227, - (byte) 80, - (byte) 12, - (byte) 54, - (byte) 67, - (byte) 238, - (byte) 5, - (byte) 93, - (byte) 1, - (byte) 207, - (byte) 129, - (byte) 13, - (byte) 46, - (byte) 115, - (byte) 49, - (byte) 58, - (byte) 185, - (byte) 127, - (byte) 156, - (byte) 200, - (byte) 96, - (byte) 217, - (byte) 202, - (byte) 15, - (byte) 245, - (byte) 55, - (byte) 198, - (byte) 81, - (byte) 218, - (byte) 132, - (byte) 70, - (byte) 73, - (byte) 82, - (byte) 147, - (byte) 26, - (byte) 255, - (byte) 14, - (byte) 134, - (byte) 96, - (byte) 138, - (byte) 55, - (byte) 214, - (byte) 83, - (byte) 156, - (byte) 170, - (byte) 163, - (byte) 79, - (byte) 173, - (byte) 228, - (byte) 115, - (byte) 51, - (byte) 241, - (byte) 107, - (byte) 245, - (byte) 112, - (byte) 168, - (byte) 210, - (byte) 10, - (byte) 5, - (byte) 117, - (byte) 1, - (byte) 57, - (byte) 108, - (byte) 248, - (byte) 212, - (byte) 145, - (byte) 119, - (byte) 226, - (byte) 165, - (byte) 5, - (byte) 141, - (byte) 202, - (byte) 106, - (byte) 0, - (byte) 60, - (byte) 36, - (byte) 61, - (byte) 243, - (byte) 203, - (byte) 216, - (byte) 215, - (byte) 12, - (byte) 137, - (byte) 16, - (byte) 28, - (byte) 247, - (byte) 115, - (byte) 152, - (byte) 181, - (byte) 119, - (byte) 208, - (byte) 228, - (byte) 203, - (byte) 236, - (byte) 34, - (byte) 167, - (byte) 196, - (byte) 32, - (byte) 109, - (byte) 1, - (byte) 17, - (byte) 101, - (byte) 200, - (byte) 25, - (byte) 94, - (byte) 125, - (byte) 168, - (byte) 137, - (byte) 157, - (byte) 4, - (byte) 164, - (byte) 29, - (byte) 31, - (byte) 48, - (byte) 132, - (byte) 72, - (byte) 229, - (byte) 126, - (byte) 186, - (byte) 68, - (byte) 76, - (byte) 133, - (byte) 21, - (byte) 0, - (byte) 180, - (byte) 139, - (byte) 164, - (byte) 148, - (byte) 119, - (byte) 149, - (byte) 214, - (byte) 120, - (byte) 177, - (byte) 201, - (byte) 80, - (byte) 80, - (byte) 105, - (byte) 10, - (byte) 136, - (byte) 118, - (byte) 77, - (byte) 46, - (byte) 233, - (byte) 233, - (byte) 227, - (byte) 11, - (byte) 158, - (byte) 103, - }; - SBPMessage sbp = new SBPMessage(0x6a6c, 0x5fa, payload); - MsgSsrGriddedCorrectionDepA msg = new MsgSsrGriddedCorrectionDepA(sbp); + byte[] payload = new byte[] {(byte)164,(byte)217,(byte)44,(byte)53,(byte)98,(byte)93,(byte)63,(byte)147,(byte)104,(byte)252,(byte)133,(byte)245,(byte)28,(byte)95,(byte)100,(byte)147,(byte)41,(byte)33,(byte)92,(byte)87,(byte)25,(byte)142,(byte)151,(byte)74,(byte)151,(byte)95,(byte)94,(byte)7,(byte)146,(byte)237,(byte)45,(byte)167,(byte)86,(byte)42,(byte)116,(byte)224,(byte)169,(byte)234,(byte)220,(byte)23,(byte)176,(byte)18,(byte)13,(byte)178,(byte)79,(byte)160,(byte)160,(byte)110,(byte)15,(byte)53,(byte)206,(byte)151,(byte)158,(byte)22,(byte)117,(byte)184,(byte)48,(byte)170,(byte)82,(byte)40,(byte)53,(byte)122,(byte)69,(byte)180,(byte)110,(byte)38,(byte)65,(byte)104,(byte)244,(byte)19,(byte)238,(byte)227,(byte)88,(byte)169,(byte)164,(byte)146,(byte)63,(byte)37,(byte)183,(byte)85,(byte)71,(byte)235,(byte)168,(byte)114,(byte)211,(byte)105,(byte)221,(byte)156,(byte)60,(byte)18,(byte)230,(byte)2,(byte)142,(byte)172,(byte)16,(byte)39,(byte)33,(byte)126,(byte)106,(byte)99,(byte)188,(byte)234,(byte)41,(byte)162,(byte)197,(byte)138,(byte)227,(byte)80,(byte)12,(byte)54,(byte)67,(byte)238,(byte)5,(byte)93,(byte)1,(byte)207,(byte)129,(byte)13,(byte)46,(byte)115,(byte)49,(byte)58,(byte)185,(byte)127,(byte)156,(byte)200,(byte)96,(byte)217,(byte)202,(byte)15,(byte)245,(byte)55,(byte)198,(byte)81,(byte)218,(byte)132,(byte)70,(byte)73,(byte)82,(byte)147,(byte)26,(byte)255,(byte)14,(byte)134,(byte)96,(byte)138,(byte)55,(byte)214,(byte)83,(byte)156,(byte)170,(byte)163,(byte)79,(byte)173,(byte)228,(byte)115,(byte)51,(byte)241,(byte)107,(byte)245,(byte)112,(byte)168,(byte)210,(byte)10,(byte)5,(byte)117,(byte)1,(byte)57,(byte)108,(byte)248,(byte)212,(byte)145,(byte)119,(byte)226,(byte)165,(byte)5,(byte)141,(byte)202,(byte)106,(byte)0,(byte)60,(byte)36,(byte)61,(byte)243,(byte)203,(byte)216,(byte)215,(byte)12,(byte)137,(byte)16,(byte)28,(byte)247,(byte)115,(byte)152,(byte)181,(byte)119,(byte)208,(byte)228,(byte)203,(byte)236,(byte)34,(byte)167,(byte)196,(byte)32,(byte)109,(byte)1,(byte)17,(byte)101,(byte)200,(byte)25,(byte)94,(byte)125,(byte)168,(byte)137,(byte)157,(byte)4,(byte)164,(byte)29,(byte)31,(byte)48,(byte)132,(byte)72,(byte)229,(byte)126,(byte)186,(byte)68,(byte)76,(byte)133,(byte)21,(byte)0,(byte)180,(byte)139,(byte)164,(byte)148,(byte)119,(byte)149,(byte)214,(byte)120,(byte)177,(byte)201,(byte)80,(byte)80,(byte)105,(byte)10,(byte)136,(byte)118,(byte)77,(byte)46,(byte)233,(byte)233,(byte)227,(byte)11,(byte)158,(byte)103, }; + SBPMessage sbp = new SBPMessage( 0x6a6c, 0x5fa, payload ); + MsgSsrGriddedCorrectionDepA msg = new MsgSsrGriddedCorrectionDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.iod_atmo + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.header.iod_atmo + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -304,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 37695 + "'", - value.equals(BigInteger.valueOf(37695L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 37695 + "'", value.equals(BigInteger.valueOf( 37695L ) ) ); } else { value = value.longValue(); expected = 37695L; @@ -314,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 64616 + "'", - value.equals(BigInteger.valueOf(64616L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 64616 + "'", value.equals(BigInteger.valueOf( 64616L ) ) ); } else { value = value.longValue(); expected = 64616L; @@ -324,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 892131748 + "'", - value.equals(BigInteger.valueOf(892131748L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 892131748 + "'", value.equals(BigInteger.valueOf( 892131748L ) ) ); } else { value = value.longValue(); expected = 892131748L; @@ -334,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 23906 + "'", - value.equals(BigInteger.valueOf(23906L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 23906 + "'", value.equals(BigInteger.valueOf( 23906L ) ) ); } else { value = value.longValue(); expected = 23906L; @@ -344,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.tropo_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tropo_quality_indicator + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.header.tropo_quality_indicator + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -354,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -364,9 +98,7 @@ public void test1() throws Throwable { } value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 25695 + "'", - value.equals(BigInteger.valueOf(25695L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 25695 + "'", value.equals(BigInteger.valueOf( 25695L ) ) ); } else { value = value.longValue(); expected = 25695L; @@ -374,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].residual + "' != '" + -26738 + "'", - value.equals(BigInteger.valueOf(-26738L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].residual + "' != '" + -26738 + "'", value.equals(BigInteger.valueOf( -26738L ) ) ); } else { value = value.longValue(); expected = -26738L; @@ -384,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].stddev + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].stddev + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -394,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -404,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -414,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].residual + "' != '" + 1886 + "'", - value.equals(BigInteger.valueOf(1886L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].residual + "' != '" + 1886 + "'", value.equals(BigInteger.valueOf( 1886L ) ) ); } else { value = value.longValue(); expected = 1886L; @@ -424,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].stddev + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].stddev + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -434,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -444,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -454,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].residual + "' != '" + 22183 + "'", - value.equals(BigInteger.valueOf(22183L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].residual + "' != '" + 22183 + "'", value.equals(BigInteger.valueOf( 22183L ) ) ); } else { value = value.longValue(); expected = 22183L; @@ -464,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].stddev + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].stddev + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -474,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -484,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -494,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].residual + "' != '" + -5463 + "'", - value.equals(BigInteger.valueOf(-5463L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].residual + "' != '" + -5463 + "'", value.equals(BigInteger.valueOf( -5463L ) ) ); } else { value = value.longValue(); expected = -5463L; @@ -504,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].stddev + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].stddev + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -514,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -524,9 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -534,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].residual + "' != '" + 3346 + "'", - value.equals(BigInteger.valueOf(3346L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].residual + "' != '" + 3346 + "'", value.equals(BigInteger.valueOf( 3346L ) ) ); } else { value = value.longValue(); expected = 3346L; @@ -544,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].stddev + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].stddev + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -554,9 +250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -564,9 +258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -574,9 +266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].residual + "' != '" + 28320 + "'", - value.equals(BigInteger.valueOf(28320L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].residual + "' != '" + 28320 + "'", value.equals(BigInteger.valueOf( 28320L ) ) ); } else { value = value.longValue(); expected = 28320L; @@ -584,9 +274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].stddev + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].stddev + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -594,9 +282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -604,9 +290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -614,9 +298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].residual + "' != '" + -24937 + "'", - value.equals(BigInteger.valueOf(-24937L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].residual + "' != '" + -24937 + "'", value.equals(BigInteger.valueOf( -24937L ) ) ); } else { value = value.longValue(); expected = -24937L; @@ -624,9 +306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].stddev + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].stddev + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -634,9 +314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -644,9 +322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -654,9 +330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].residual + "' != '" + -21968 + "'", - value.equals(BigInteger.valueOf(-21968L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].residual + "' != '" + -21968 + "'", value.equals(BigInteger.valueOf( -21968L ) ) ); } else { value = value.longValue(); expected = -21968L; @@ -664,9 +338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].stddev + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].stddev + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -674,9 +346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -684,9 +354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -694,9 +362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].residual + "' != '" + 17786 + "'", - value.equals(BigInteger.valueOf(17786L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].residual + "' != '" + 17786 + "'", value.equals(BigInteger.valueOf( 17786L ) ) ); } else { value = value.longValue(); expected = 17786L; @@ -704,9 +370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].stddev + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].stddev + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -714,9 +378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -724,9 +386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -734,9 +394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].residual + "' != '" + 26689 + "'", - value.equals(BigInteger.valueOf(26689L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].residual + "' != '" + 26689 + "'", value.equals(BigInteger.valueOf( 26689L ) ) ); } else { value = value.longValue(); expected = 26689L; @@ -744,9 +402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].stddev + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].stddev + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -754,9 +410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -764,9 +418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -774,9 +426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].residual + "' != '" + 22755 + "'", - value.equals(BigInteger.valueOf(22755L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].residual + "' != '" + 22755 + "'", value.equals(BigInteger.valueOf( 22755L ) ) ); } else { value = value.longValue(); expected = 22755L; @@ -784,9 +434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].stddev + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].stddev + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -794,9 +442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -804,9 +450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -814,9 +458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].residual + "' != '" + 9535 + "'", - value.equals(BigInteger.valueOf(9535L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].residual + "' != '" + 9535 + "'", value.equals(BigInteger.valueOf( 9535L ) ) ); } else { value = value.longValue(); expected = 9535L; @@ -824,9 +466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].stddev + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].stddev + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -834,9 +474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -844,9 +482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -854,9 +490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].residual + "' != '" + -22293 + "'", - value.equals(BigInteger.valueOf(-22293L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].residual + "' != '" + -22293 + "'", value.equals(BigInteger.valueOf( -22293L ) ) ); } else { value = value.longValue(); expected = -22293L; @@ -864,9 +498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].stddev + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].stddev + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -874,9 +506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -884,9 +514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -894,9 +522,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].residual + "' != '" + -25379 + "'", - value.equals(BigInteger.valueOf(-25379L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].residual + "' != '" + -25379 + "'", value.equals(BigInteger.valueOf( -25379L ) ) ); } else { value = value.longValue(); expected = -25379L; @@ -904,9 +530,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].stddev + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].stddev + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -914,9 +538,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -924,9 +546,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -934,9 +554,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].residual + "' != '" + -29182 + "'", - value.equals(BigInteger.valueOf(-29182L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].residual + "' != '" + -29182 + "'", value.equals(BigInteger.valueOf( -29182L ) ) ); } else { value = value.longValue(); expected = -29182L; @@ -944,9 +562,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].stddev + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].stddev + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -954,9 +570,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -964,9 +578,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -974,9 +586,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].residual + "' != '" + 32289 + "'", - value.equals(BigInteger.valueOf(32289L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].residual + "' != '" + 32289 + "'", value.equals(BigInteger.valueOf( 32289L ) ) ); } else { value = value.longValue(); expected = 32289L; @@ -984,9 +594,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].stddev + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].stddev + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -994,9 +602,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1004,9 +610,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1014,9 +618,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].residual + "' != '" + 10730 + "'", - value.equals(BigInteger.valueOf(10730L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].residual + "' != '" + 10730 + "'", value.equals(BigInteger.valueOf( 10730L ) ) ); } else { value = value.longValue(); expected = 10730L; @@ -1024,9 +626,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].stddev + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].stddev + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -1034,9 +634,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1044,9 +642,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1054,9 +650,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].residual + "' != '" + 20707 + "'", - value.equals(BigInteger.valueOf(20707L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].residual + "' != '" + 20707 + "'", value.equals(BigInteger.valueOf( 20707L ) ) ); } else { value = value.longValue(); expected = 20707L; @@ -1064,9 +658,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].stddev + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].stddev + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1074,9 +666,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1084,9 +674,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -1094,9 +682,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].residual + "' != '" + 1518 + "'", - value.equals(BigInteger.valueOf(1518L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].residual + "' != '" + 1518 + "'", value.equals(BigInteger.valueOf( 1518L ) ) ); } else { value = value.longValue(); expected = 1518L; @@ -1104,9 +690,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].stddev + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].stddev + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1114,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1124,9 +706,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1134,9 +714,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].residual + "' != '" + 3457 + "'", - value.equals(BigInteger.valueOf(3457L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].residual + "' != '" + 3457 + "'", value.equals(BigInteger.valueOf( 3457L ) ) ); } else { value = value.longValue(); expected = 3457L; @@ -1144,9 +722,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].stddev + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].stddev + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1154,9 +730,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1164,9 +738,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1174,9 +746,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].residual + "' != '" + -18118 + "'", - value.equals(BigInteger.valueOf(-18118L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].residual + "' != '" + -18118 + "'", value.equals(BigInteger.valueOf( -18118L ) ) ); } else { value = value.longValue(); expected = -18118L; @@ -1184,9 +754,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].stddev + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].stddev + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1194,9 +762,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1204,9 +770,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1214,9 +778,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].residual + "' != '" + -9888 + "'", - value.equals(BigInteger.valueOf(-9888L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].residual + "' != '" + -9888 + "'", value.equals(BigInteger.valueOf( -9888L ) ) ); } else { value = value.longValue(); expected = -9888L; @@ -1224,9 +786,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].stddev + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].stddev + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1234,9 +794,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1244,9 +802,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1254,9 +810,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].residual + "' != '" + -14793 + "'", - value.equals(BigInteger.valueOf(-14793L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].residual + "' != '" + -14793 + "'", value.equals(BigInteger.valueOf( -14793L ) ) ); } else { value = value.longValue(); expected = -14793L; @@ -1264,9 +818,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].stddev + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].stddev + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1274,9 +826,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1284,9 +834,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1294,9 +842,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].residual + "' != '" + 18758 + "'", - value.equals(BigInteger.valueOf(18758L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].residual + "' != '" + 18758 + "'", value.equals(BigInteger.valueOf( 18758L ) ) ); } else { value = value.longValue(); expected = 18758L; @@ -1304,9 +850,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].stddev + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].stddev + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1314,9 +858,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1324,9 +866,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1334,9 +874,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].residual + "' != '" + 3839 + "'", - value.equals(BigInteger.valueOf(3839L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].residual + "' != '" + 3839 + "'", value.equals(BigInteger.valueOf( 3839L ) ) ); } else { value = value.longValue(); expected = 3839L; @@ -1344,9 +882,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].stddev + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].stddev + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1354,9 +890,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1364,9 +898,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1374,9 +906,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].residual + "' != '" + -10697 + "'", - value.equals(BigInteger.valueOf(-10697L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].residual + "' != '" + -10697 + "'", value.equals(BigInteger.valueOf( -10697L ) ) ); } else { value = value.longValue(); expected = -10697L; @@ -1384,9 +914,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].stddev + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].stddev + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1394,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1404,9 +930,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1414,9 +938,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].residual + "' != '" + 20387 + "'", - value.equals(BigInteger.valueOf(20387L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].residual + "' != '" + 20387 + "'", value.equals(BigInteger.valueOf( 20387L ) ) ); } else { value = value.longValue(); expected = 20387L; @@ -1424,9 +946,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].stddev + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].stddev + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1434,9 +954,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1444,9 +962,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1454,9 +970,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].residual + "' != '" + -3789 + "'", - value.equals(BigInteger.valueOf(-3789L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].residual + "' != '" + -3789 + "'", value.equals(BigInteger.valueOf( -3789L ) ) ); } else { value = value.longValue(); expected = -3789L; @@ -1464,9 +978,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].stddev + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].stddev + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1474,9 +986,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1484,9 +994,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1494,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].residual + "' != '" + -11608 + "'", - value.equals(BigInteger.valueOf(-11608L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].residual + "' != '" + -11608 + "'", value.equals(BigInteger.valueOf( -11608L ) ) ); } else { value = value.longValue(); expected = -11608L; @@ -1504,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].stddev + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].stddev + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1514,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1524,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1534,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].residual + "' != '" + 14593 + "'", - value.equals(BigInteger.valueOf(14593L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].residual + "' != '" + 14593 + "'", value.equals(BigInteger.valueOf( 14593L ) ) ); } else { value = value.longValue(); expected = 14593L; @@ -1544,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].stddev + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].stddev + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1554,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -1564,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1574,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].residual + "' != '" + 30609 + "'", - value.equals(BigInteger.valueOf(30609L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].residual + "' != '" + 30609 + "'", value.equals(BigInteger.valueOf( 30609L ) ) ); } else { value = value.longValue(); expected = 30609L; @@ -1584,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].stddev + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].stddev + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1594,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1604,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1614,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].residual + "' != '" + -13683 + "'", - value.equals(BigInteger.valueOf(-13683L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].residual + "' != '" + -13683 + "'", value.equals(BigInteger.valueOf( -13683L ) ) ); } else { value = value.longValue(); expected = -13683L; @@ -1624,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].stddev + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].stddev + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1634,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1644,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1654,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].residual + "' != '" + 15652 + "'", - value.equals(BigInteger.valueOf(15652L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].residual + "' != '" + 15652 + "'", value.equals(BigInteger.valueOf( 15652L ) ) ); } else { value = value.longValue(); expected = 15652L; @@ -1664,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].stddev + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].stddev + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -1674,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1684,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1694,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].residual + "' != '" + 3287 + "'", - value.equals(BigInteger.valueOf(3287L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].residual + "' != '" + 3287 + "'", value.equals(BigInteger.valueOf( 3287L ) ) ); } else { value = value.longValue(); expected = 3287L; @@ -1704,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].stddev + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].stddev + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -1714,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1724,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1734,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].residual + "' != '" + 29687 + "'", - value.equals(BigInteger.valueOf(29687L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].residual + "' != '" + 29687 + "'", value.equals(BigInteger.valueOf( 29687L ) ) ); } else { value = value.longValue(); expected = 29687L; @@ -1744,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].stddev + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].stddev + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -1754,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -1764,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -1774,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].residual + "' != '" + -6960 + "'", - value.equals(BigInteger.valueOf(-6960L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].residual + "' != '" + -6960 + "'", value.equals(BigInteger.valueOf( -6960L ) ) ); } else { value = value.longValue(); expected = -6960L; @@ -1784,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].stddev + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].stddev + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1794,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -1804,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1814,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].residual + "' != '" + -15193 + "'", - value.equals(BigInteger.valueOf(-15193L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].residual + "' != '" + -15193 + "'", value.equals(BigInteger.valueOf( -15193L ) ) ); } else { value = value.longValue(); expected = -15193L; @@ -1824,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].stddev + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].stddev + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1834,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -1844,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -1854,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].residual + "' != '" + 25873 + "'", - value.equals(BigInteger.valueOf(25873L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].residual + "' != '" + 25873 + "'", value.equals(BigInteger.valueOf( 25873L ) ) ); } else { value = value.longValue(); expected = 25873L; @@ -1864,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].stddev + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].stddev + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1874,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1884,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1894,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].residual + "' != '" + -22403 + "'", - value.equals(BigInteger.valueOf(-22403L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].residual + "' != '" + -22403 + "'", value.equals(BigInteger.valueOf( -22403L ) ) ); } else { value = value.longValue(); expected = -22403L; @@ -1904,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].stddev + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].stddev + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -1914,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1924,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1934,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].residual + "' != '" + 7588 + "'", - value.equals(BigInteger.valueOf(7588L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].residual + "' != '" + 7588 + "'", value.equals(BigInteger.valueOf( 7588L ) ) ); } else { value = value.longValue(); expected = 7588L; @@ -1944,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].stddev + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].stddev + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1954,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1964,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1974,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].residual + "' != '" + -6840 + "'", - value.equals(BigInteger.valueOf(-6840L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].residual + "' != '" + -6840 + "'", value.equals(BigInteger.valueOf( -6840L ) ) ); } else { value = value.longValue(); expected = -6840L; @@ -1984,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].stddev + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].stddev + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1994,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2004,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -2014,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].residual + "' != '" + -31412 + "'", - value.equals(BigInteger.valueOf(-31412L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].residual + "' != '" + -31412 + "'", value.equals(BigInteger.valueOf( -31412L ) ) ); } else { value = value.longValue(); expected = -31412L; @@ -2024,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].stddev + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].stddev + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -2034,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2044,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2054,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].residual + "' != '" + -23413 + "'", - value.equals(BigInteger.valueOf(-23413L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].residual + "' != '" + -23413 + "'", value.equals(BigInteger.valueOf( -23413L ) ) ); } else { value = value.longValue(); expected = -23413L; @@ -2064,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].stddev + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].stddev + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2074,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2084,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2094,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].residual + "' != '" + 30934 + "'", - value.equals(BigInteger.valueOf(30934L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].residual + "' != '" + 30934 + "'", value.equals(BigInteger.valueOf( 30934L ) ) ); } else { value = value.longValue(); expected = 30934L; @@ -2104,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].stddev + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].stddev + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -2114,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -2124,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2134,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].residual + "' != '" + 26960 + "'", - value.equals(BigInteger.valueOf(26960L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].residual + "' != '" + 26960 + "'", value.equals(BigInteger.valueOf( 26960L ) ) ); } else { value = value.longValue(); expected = 26960L; @@ -2144,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].stddev + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].stddev + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2154,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -2164,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -2174,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].residual + "' != '" + 11853 + "'", - value.equals(BigInteger.valueOf(11853L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].residual + "' != '" + 11853 + "'", value.equals(BigInteger.valueOf( 11853L ) ) ); } else { value = value.longValue(); expected = 11853L; @@ -2184,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].stddev + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].stddev + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -2194,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -2204,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -2214,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].residual + "' != '" + -25077 + "'", - value.equals(BigInteger.valueOf(-25077L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].residual + "' != '" + -25077 + "'", value.equals(BigInteger.valueOf( -25077L ) ) ); } else { value = value.longValue(); expected = -25077L; @@ -2224,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].stddev + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].stddev + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -2234,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].sv_id.constellation + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].sv_id.constellation + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -2244,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].sv_id.satId + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].sv_id.satId + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -2254,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.hydro; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.hydro + "' != '" + 10643 + "'", - value.equals(BigInteger.valueOf(10643L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.hydro + "' != '" + 10643 + "'", value.equals(BigInteger.valueOf( 10643L ) ) ); } else { value = value.longValue(); expected = 10643L; @@ -2264,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.stddev + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.stddev + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2274,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.wet; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.wet + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.wet + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.java index eebfbf516b..9a7d0d4583 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionNoStdDepA.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrectionNoStdDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrectionNoStdDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest { @@ -29,275 +33,16 @@ public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 179, - (byte) 240, - (byte) 33, - (byte) 169, - (byte) 236, - (byte) 34, - (byte) 117, - (byte) 245, - (byte) 67, - (byte) 248, - (byte) 233, - (byte) 236, - (byte) 230, - (byte) 230, - (byte) 103, - (byte) 122, - (byte) 63, - (byte) 101, - (byte) 231, - (byte) 157, - (byte) 115, - (byte) 162, - (byte) 197, - (byte) 146, - (byte) 35, - (byte) 107, - (byte) 222, - (byte) 109, - (byte) 52, - (byte) 41, - (byte) 86, - (byte) 12, - (byte) 237, - (byte) 184, - (byte) 65, - (byte) 204, - (byte) 137, - (byte) 148, - (byte) 171, - (byte) 183, - (byte) 11, - (byte) 0, - (byte) 180, - (byte) 203, - (byte) 172, - (byte) 53, - (byte) 196, - (byte) 85, - (byte) 186, - (byte) 115, - (byte) 203, - (byte) 92, - (byte) 166, - (byte) 30, - (byte) 42, - (byte) 13, - (byte) 200, - (byte) 71, - (byte) 98, - (byte) 137, - (byte) 219, - (byte) 160, - (byte) 95, - (byte) 216, - (byte) 95, - (byte) 250, - (byte) 99, - (byte) 196, - (byte) 92, - (byte) 214, - (byte) 159, - (byte) 253, - (byte) 195, - (byte) 222, - (byte) 233, - (byte) 146, - (byte) 233, - (byte) 63, - (byte) 76, - (byte) 24, - (byte) 106, - (byte) 40, - (byte) 253, - (byte) 65, - (byte) 9, - (byte) 183, - (byte) 40, - (byte) 215, - (byte) 188, - (byte) 59, - (byte) 117, - (byte) 69, - (byte) 97, - (byte) 115, - (byte) 60, - (byte) 56, - (byte) 0, - (byte) 141, - (byte) 207, - (byte) 171, - (byte) 54, - (byte) 161, - (byte) 23, - (byte) 61, - (byte) 0, - (byte) 87, - (byte) 230, - (byte) 123, - (byte) 87, - (byte) 36, - (byte) 184, - (byte) 255, - (byte) 14, - (byte) 163, - (byte) 187, - (byte) 224, - (byte) 43, - (byte) 151, - (byte) 151, - (byte) 104, - (byte) 39, - (byte) 57, - (byte) 5, - (byte) 54, - (byte) 48, - (byte) 224, - (byte) 181, - (byte) 129, - (byte) 60, - (byte) 92, - (byte) 171, - (byte) 114, - (byte) 109, - (byte) 109, - (byte) 12, - (byte) 23, - (byte) 118, - (byte) 8, - (byte) 64, - (byte) 159, - (byte) 54, - (byte) 216, - (byte) 33, - (byte) 20, - (byte) 24, - (byte) 68, - (byte) 160, - (byte) 36, - (byte) 38, - (byte) 222, - (byte) 145, - (byte) 190, - (byte) 92, - (byte) 99, - (byte) 108, - (byte) 159, - (byte) 232, - (byte) 240, - (byte) 227, - (byte) 221, - (byte) 253, - (byte) 15, - (byte) 62, - (byte) 23, - (byte) 121, - (byte) 185, - (byte) 168, - (byte) 116, - (byte) 4, - (byte) 147, - (byte) 123, - (byte) 72, - (byte) 223, - (byte) 119, - (byte) 226, - (byte) 242, - (byte) 161, - (byte) 204, - (byte) 180, - (byte) 202, - (byte) 137, - (byte) 166, - (byte) 58, - (byte) 24, - (byte) 124, - (byte) 19, - (byte) 181, - (byte) 188, - (byte) 16, - (byte) 107, - (byte) 66, - (byte) 231, - (byte) 63, - (byte) 1, - (byte) 64, - (byte) 252, - (byte) 115, - (byte) 62, - (byte) 233, - (byte) 97, - (byte) 250, - (byte) 86, - (byte) 156, - (byte) 221, - (byte) 49, - (byte) 178, - (byte) 32, - (byte) 73, - (byte) 198, - (byte) 67, - (byte) 249, - (byte) 253, - (byte) 74, - (byte) 56, - (byte) 38, - (byte) 165, - (byte) 119, - (byte) 92, - (byte) 99, - (byte) 44, - (byte) 95, - (byte) 131, - (byte) 89, - (byte) 192, - (byte) 225, - (byte) 55, - (byte) 95, - (byte) 171, - (byte) 88, - (byte) 205, - (byte) 21, - (byte) 116, - (byte) 231, - (byte) 83, - (byte) 71, - (byte) 71, - (byte) 100, - (byte) 110, - (byte) 217, - (byte) 254, - (byte) 152, - (byte) 212, - (byte) 18, - (byte) 8, - (byte) 40, - (byte) 157, - (byte) 244, - (byte) 54, - (byte) 72, - (byte) 240, - (byte) 231, - (byte) 189, - (byte) 111, - (byte) 195, - }; - SBPMessage sbp = new SBPMessage(0x1c66, 0x5f0, payload); - MsgSsrGriddedCorrectionNoStdDepA msg = new MsgSsrGriddedCorrectionNoStdDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionNoStdDepATest.test1"); + byte[] payload = new byte[] {(byte)179,(byte)240,(byte)33,(byte)169,(byte)236,(byte)34,(byte)117,(byte)245,(byte)67,(byte)248,(byte)233,(byte)236,(byte)230,(byte)230,(byte)103,(byte)122,(byte)63,(byte)101,(byte)231,(byte)157,(byte)115,(byte)162,(byte)197,(byte)146,(byte)35,(byte)107,(byte)222,(byte)109,(byte)52,(byte)41,(byte)86,(byte)12,(byte)237,(byte)184,(byte)65,(byte)204,(byte)137,(byte)148,(byte)171,(byte)183,(byte)11,(byte)0,(byte)180,(byte)203,(byte)172,(byte)53,(byte)196,(byte)85,(byte)186,(byte)115,(byte)203,(byte)92,(byte)166,(byte)30,(byte)42,(byte)13,(byte)200,(byte)71,(byte)98,(byte)137,(byte)219,(byte)160,(byte)95,(byte)216,(byte)95,(byte)250,(byte)99,(byte)196,(byte)92,(byte)214,(byte)159,(byte)253,(byte)195,(byte)222,(byte)233,(byte)146,(byte)233,(byte)63,(byte)76,(byte)24,(byte)106,(byte)40,(byte)253,(byte)65,(byte)9,(byte)183,(byte)40,(byte)215,(byte)188,(byte)59,(byte)117,(byte)69,(byte)97,(byte)115,(byte)60,(byte)56,(byte)0,(byte)141,(byte)207,(byte)171,(byte)54,(byte)161,(byte)23,(byte)61,(byte)0,(byte)87,(byte)230,(byte)123,(byte)87,(byte)36,(byte)184,(byte)255,(byte)14,(byte)163,(byte)187,(byte)224,(byte)43,(byte)151,(byte)151,(byte)104,(byte)39,(byte)57,(byte)5,(byte)54,(byte)48,(byte)224,(byte)181,(byte)129,(byte)60,(byte)92,(byte)171,(byte)114,(byte)109,(byte)109,(byte)12,(byte)23,(byte)118,(byte)8,(byte)64,(byte)159,(byte)54,(byte)216,(byte)33,(byte)20,(byte)24,(byte)68,(byte)160,(byte)36,(byte)38,(byte)222,(byte)145,(byte)190,(byte)92,(byte)99,(byte)108,(byte)159,(byte)232,(byte)240,(byte)227,(byte)221,(byte)253,(byte)15,(byte)62,(byte)23,(byte)121,(byte)185,(byte)168,(byte)116,(byte)4,(byte)147,(byte)123,(byte)72,(byte)223,(byte)119,(byte)226,(byte)242,(byte)161,(byte)204,(byte)180,(byte)202,(byte)137,(byte)166,(byte)58,(byte)24,(byte)124,(byte)19,(byte)181,(byte)188,(byte)16,(byte)107,(byte)66,(byte)231,(byte)63,(byte)1,(byte)64,(byte)252,(byte)115,(byte)62,(byte)233,(byte)97,(byte)250,(byte)86,(byte)156,(byte)221,(byte)49,(byte)178,(byte)32,(byte)73,(byte)198,(byte)67,(byte)249,(byte)253,(byte)74,(byte)56,(byte)38,(byte)165,(byte)119,(byte)92,(byte)99,(byte)44,(byte)95,(byte)131,(byte)89,(byte)192,(byte)225,(byte)55,(byte)95,(byte)171,(byte)88,(byte)205,(byte)21,(byte)116,(byte)231,(byte)83,(byte)71,(byte)71,(byte)100,(byte)110,(byte)217,(byte)254,(byte)152,(byte)212,(byte)18,(byte)8,(byte)40,(byte)157,(byte)244,(byte)54,(byte)72,(byte)240,(byte)231,(byte)189,(byte)111,(byte)195, }; + SBPMessage sbp = new SBPMessage( 0x1c66, 0x5f0, payload ); + MsgSsrGriddedCorrectionNoStdDepA msg = new MsgSsrGriddedCorrectionNoStdDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.iod_atmo + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.header.iod_atmo + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -305,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 62837 + "'", - value.equals(BigInteger.valueOf(62837L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 62837 + "'", value.equals(BigInteger.valueOf( 62837L ) ) ); } else { value = value.longValue(); expected = 62837L; @@ -315,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 63555 + "'", - value.equals(BigInteger.valueOf(63555L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 63555 + "'", value.equals(BigInteger.valueOf( 63555L ) ) ); } else { value = value.longValue(); expected = 63555L; @@ -325,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 2837573811L + "'", - value.equals(new BigInteger("2837573811"))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 2837573811L + "'", value.equals( new BigInteger( "2837573811" ) ) ); } else { value = value.longValue(); expected = 2837573811L; @@ -335,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 8940 + "'", - value.equals(BigInteger.valueOf(8940L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 8940 + "'", value.equals(BigInteger.valueOf( 8940L ) ) ); } else { value = value.longValue(); expected = 8940L; @@ -345,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.tropo_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tropo_quality_indicator + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.header.tropo_quality_indicator + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -355,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -365,9 +98,7 @@ public void test1() throws Throwable { } value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 26598 + "'", - value.equals(BigInteger.valueOf(26598L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 26598 + "'", value.equals(BigInteger.valueOf( 26598L ) ) ); } else { value = value.longValue(); expected = 26598L; @@ -375,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].residual + "' != '" + -23949 + "'", - value.equals(BigInteger.valueOf(-23949L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].residual + "' != '" + -23949 + "'", value.equals(BigInteger.valueOf( -23949L ) ) ); } else { value = value.longValue(); expected = -23949L; @@ -385,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -395,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -405,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].residual + "' != '" + 27427 + "'", - value.equals(BigInteger.valueOf(27427L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].residual + "' != '" + 27427 + "'", value.equals(BigInteger.valueOf( 27427L ) ) ); } else { value = value.longValue(); expected = 27427L; @@ -415,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -425,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -435,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].residual + "' != '" + 10548 + "'", - value.equals(BigInteger.valueOf(10548L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].residual + "' != '" + 10548 + "'", value.equals(BigInteger.valueOf( 10548L ) ) ); } else { value = value.longValue(); expected = 10548L; @@ -445,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -455,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -465,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].residual + "' != '" + -18195 + "'", - value.equals(BigInteger.valueOf(-18195L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].residual + "' != '" + -18195 + "'", value.equals(BigInteger.valueOf( -18195L ) ) ); } else { value = value.longValue(); expected = -18195L; @@ -475,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -485,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -495,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].residual + "' != '" + -27511 + "'", - value.equals(BigInteger.valueOf(-27511L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].residual + "' != '" + -27511 + "'", value.equals(BigInteger.valueOf( -27511L ) ) ); } else { value = value.longValue(); expected = -27511L; @@ -505,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -515,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -525,9 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].residual + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].residual + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -535,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -545,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -555,9 +250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].residual + "' != '" + 13740 + "'", - value.equals(BigInteger.valueOf(13740L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].residual + "' != '" + 13740 + "'", value.equals(BigInteger.valueOf( 13740L ) ) ); } else { value = value.longValue(); expected = 13740L; @@ -565,9 +258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -575,9 +266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -585,9 +274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].residual + "' != '" + 29626 + "'", - value.equals(BigInteger.valueOf(29626L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].residual + "' != '" + 29626 + "'", value.equals(BigInteger.valueOf( 29626L ) ) ); } else { value = value.longValue(); expected = 29626L; @@ -595,9 +282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -605,9 +290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -615,9 +298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].residual + "' != '" + 7846 + "'", - value.equals(BigInteger.valueOf(7846L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].residual + "' != '" + 7846 + "'", value.equals(BigInteger.valueOf( 7846L ) ) ); } else { value = value.longValue(); expected = 7846L; @@ -625,9 +306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -635,9 +314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -645,9 +322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].residual + "' != '" + 18376 + "'", - value.equals(BigInteger.valueOf(18376L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].residual + "' != '" + 18376 + "'", value.equals(BigInteger.valueOf( 18376L ) ) ); } else { value = value.longValue(); expected = 18376L; @@ -655,9 +330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -665,9 +338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -675,9 +346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].residual + "' != '" + -24357 + "'", - value.equals(BigInteger.valueOf(-24357L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].residual + "' != '" + -24357 + "'", value.equals(BigInteger.valueOf( -24357L ) ) ); } else { value = value.longValue(); expected = -24357L; @@ -685,9 +354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -695,9 +362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -705,9 +370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].residual + "' != '" + -1441 + "'", - value.equals(BigInteger.valueOf(-1441L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].residual + "' != '" + -1441 + "'", value.equals(BigInteger.valueOf( -1441L ) ) ); } else { value = value.longValue(); expected = -1441L; @@ -715,9 +378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -725,9 +386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -735,9 +394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].residual + "' != '" + -10660 + "'", - value.equals(BigInteger.valueOf(-10660L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].residual + "' != '" + -10660 + "'", value.equals(BigInteger.valueOf( -10660L ) ) ); } else { value = value.longValue(); expected = -10660L; @@ -745,9 +402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -755,9 +410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -765,9 +418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].residual + "' != '" + -8509 + "'", - value.equals(BigInteger.valueOf(-8509L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].residual + "' != '" + -8509 + "'", value.equals(BigInteger.valueOf( -8509L ) ) ); } else { value = value.longValue(); expected = -8509L; @@ -775,9 +426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -785,9 +434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -795,9 +442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].residual + "' != '" + 16361 + "'", - value.equals(BigInteger.valueOf(16361L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].residual + "' != '" + 16361 + "'", value.equals(BigInteger.valueOf( 16361L ) ) ); } else { value = value.longValue(); expected = 16361L; @@ -805,9 +450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -815,9 +458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -825,9 +466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].residual + "' != '" + 10346 + "'", - value.equals(BigInteger.valueOf(10346L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].residual + "' != '" + 10346 + "'", value.equals(BigInteger.valueOf( 10346L ) ) ); } else { value = value.longValue(); expected = 10346L; @@ -835,9 +474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -845,9 +482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -855,9 +490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].residual + "' != '" + -18679 + "'", - value.equals(BigInteger.valueOf(-18679L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].residual + "' != '" + -18679 + "'", value.equals(BigInteger.valueOf( -18679L ) ) ); } else { value = value.longValue(); expected = -18679L; @@ -865,9 +498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -875,9 +506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -885,9 +514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].residual + "' != '" + 15292 + "'", - value.equals(BigInteger.valueOf(15292L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].residual + "' != '" + 15292 + "'", value.equals(BigInteger.valueOf( 15292L ) ) ); } else { value = value.longValue(); expected = 15292L; @@ -895,9 +522,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -905,9 +530,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -915,9 +538,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].residual + "' != '" + 29537 + "'", - value.equals(BigInteger.valueOf(29537L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].residual + "' != '" + 29537 + "'", value.equals(BigInteger.valueOf( 29537L ) ) ); } else { value = value.longValue(); expected = 29537L; @@ -925,9 +546,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -935,9 +554,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -945,9 +562,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].residual + "' != '" + -29440 + "'", - value.equals(BigInteger.valueOf(-29440L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].residual + "' != '" + -29440 + "'", value.equals(BigInteger.valueOf( -29440L ) ) ); } else { value = value.longValue(); expected = -29440L; @@ -955,9 +570,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -965,9 +578,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -975,9 +586,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].residual + "' != '" + -24266 + "'", - value.equals(BigInteger.valueOf(-24266L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].residual + "' != '" + -24266 + "'", value.equals(BigInteger.valueOf( -24266L ) ) ); } else { value = value.longValue(); expected = -24266L; @@ -985,9 +594,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -995,9 +602,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1005,9 +610,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].residual + "' != '" + 22272 + "'", - value.equals(BigInteger.valueOf(22272L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].residual + "' != '" + 22272 + "'", value.equals(BigInteger.valueOf( 22272L ) ) ); } else { value = value.longValue(); expected = 22272L; @@ -1015,9 +618,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1025,9 +626,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1035,9 +634,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].residual + "' != '" + 9303 + "'", - value.equals(BigInteger.valueOf(9303L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].residual + "' != '" + 9303 + "'", value.equals(BigInteger.valueOf( 9303L ) ) ); } else { value = value.longValue(); expected = 9303L; @@ -1045,9 +642,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1055,9 +650,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1065,9 +658,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].residual + "' != '" + -23794 + "'", - value.equals(BigInteger.valueOf(-23794L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].residual + "' != '" + -23794 + "'", value.equals(BigInteger.valueOf( -23794L ) ) ); } else { value = value.longValue(); expected = -23794L; @@ -1075,9 +666,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1085,9 +674,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1095,9 +682,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].residual + "' != '" + -26837 + "'", - value.equals(BigInteger.valueOf(-26837L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].residual + "' != '" + -26837 + "'", value.equals(BigInteger.valueOf( -26837L ) ) ); } else { value = value.longValue(); expected = -26837L; @@ -1105,9 +690,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1115,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1125,9 +706,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].residual + "' != '" + 14631 + "'", - value.equals(BigInteger.valueOf(14631L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].residual + "' != '" + 14631 + "'", value.equals(BigInteger.valueOf( 14631L ) ) ); } else { value = value.longValue(); expected = 14631L; @@ -1135,9 +714,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1145,9 +722,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1155,9 +730,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].residual + "' != '" + -8144 + "'", - value.equals(BigInteger.valueOf(-8144L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].residual + "' != '" + -8144 + "'", value.equals(BigInteger.valueOf( -8144L ) ) ); } else { value = value.longValue(); expected = -8144L; @@ -1165,9 +738,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1175,9 +746,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1185,9 +754,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].residual + "' != '" + 23612 + "'", - value.equals(BigInteger.valueOf(23612L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].residual + "' != '" + 23612 + "'", value.equals(BigInteger.valueOf( 23612L ) ) ); } else { value = value.longValue(); expected = 23612L; @@ -1195,9 +762,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1205,9 +770,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1215,9 +778,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].residual + "' != '" + 28013 + "'", - value.equals(BigInteger.valueOf(28013L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].residual + "' != '" + 28013 + "'", value.equals(BigInteger.valueOf( 28013L ) ) ); } else { value = value.longValue(); expected = 28013L; @@ -1225,9 +786,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1235,9 +794,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1245,9 +802,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].residual + "' != '" + 2166 + "'", - value.equals(BigInteger.valueOf(2166L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].residual + "' != '" + 2166 + "'", value.equals(BigInteger.valueOf( 2166L ) ) ); } else { value = value.longValue(); expected = 2166L; @@ -1255,9 +810,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1265,9 +818,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1275,9 +826,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].residual + "' != '" + -10186 + "'", - value.equals(BigInteger.valueOf(-10186L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].residual + "' != '" + -10186 + "'", value.equals(BigInteger.valueOf( -10186L ) ) ); } else { value = value.longValue(); expected = -10186L; @@ -1285,9 +834,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1295,9 +842,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1305,9 +850,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].residual + "' != '" + 17432 + "'", - value.equals(BigInteger.valueOf(17432L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].residual + "' != '" + 17432 + "'", value.equals(BigInteger.valueOf( 17432L ) ) ); } else { value = value.longValue(); expected = 17432L; @@ -1315,9 +858,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1325,9 +866,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1335,9 +874,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].residual + "' != '" + -8666 + "'", - value.equals(BigInteger.valueOf(-8666L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].residual + "' != '" + -8666 + "'", value.equals(BigInteger.valueOf( -8666L ) ) ); } else { value = value.longValue(); expected = -8666L; @@ -1345,9 +882,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1355,9 +890,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1365,9 +898,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].residual + "' != '" + 25436 + "'", - value.equals(BigInteger.valueOf(25436L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].residual + "' != '" + 25436 + "'", value.equals(BigInteger.valueOf( 25436L ) ) ); } else { value = value.longValue(); expected = 25436L; @@ -1375,9 +906,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -1385,9 +914,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1395,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].residual + "' != '" + -3864 + "'", - value.equals(BigInteger.valueOf(-3864L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].residual + "' != '" + -3864 + "'", value.equals(BigInteger.valueOf( -3864L ) ) ); } else { value = value.longValue(); expected = -3864L; @@ -1405,9 +930,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1415,9 +938,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1425,9 +946,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].residual + "' != '" + 4093 + "'", - value.equals(BigInteger.valueOf(4093L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].residual + "' != '" + 4093 + "'", value.equals(BigInteger.valueOf( 4093L ) ) ); } else { value = value.longValue(); expected = 4093L; @@ -1435,9 +954,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1445,9 +962,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1455,9 +970,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].residual + "' != '" + -18055 + "'", - value.equals(BigInteger.valueOf(-18055L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].residual + "' != '" + -18055 + "'", value.equals(BigInteger.valueOf( -18055L ) ) ); } else { value = value.longValue(); expected = -18055L; @@ -1465,9 +978,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1475,9 +986,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1485,9 +994,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].residual + "' != '" + -27900 + "'", - value.equals(BigInteger.valueOf(-27900L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].residual + "' != '" + -27900 + "'", value.equals(BigInteger.valueOf( -27900L ) ) ); } else { value = value.longValue(); expected = -27900L; @@ -1495,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1505,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1515,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].residual + "' != '" + 30687 + "'", - value.equals(BigInteger.valueOf(30687L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].residual + "' != '" + 30687 + "'", value.equals(BigInteger.valueOf( 30687L ) ) ); } else { value = value.longValue(); expected = 30687L; @@ -1525,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1535,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1545,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].residual + "' != '" + -13151 + "'", - value.equals(BigInteger.valueOf(-13151L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].residual + "' != '" + -13151 + "'", value.equals(BigInteger.valueOf( -13151L ) ) ); } else { value = value.longValue(); expected = -13151L; @@ -1555,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -1565,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1575,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].residual + "' != '" + -22903 + "'", - value.equals(BigInteger.valueOf(-22903L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].residual + "' != '" + -22903 + "'", value.equals(BigInteger.valueOf( -22903L ) ) ); } else { value = value.longValue(); expected = -22903L; @@ -1585,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1595,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1605,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].residual + "' != '" + 4988 + "'", - value.equals(BigInteger.valueOf(4988L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].residual + "' != '" + 4988 + "'", value.equals(BigInteger.valueOf( 4988L ) ) ); } else { value = value.longValue(); expected = 4988L; @@ -1615,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1625,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1635,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].residual + "' != '" + 27408 + "'", - value.equals(BigInteger.valueOf(27408L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].residual + "' != '" + 27408 + "'", value.equals(BigInteger.valueOf( 27408L ) ) ); } else { value = value.longValue(); expected = 27408L; @@ -1645,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1655,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1665,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].residual + "' != '" + 319 + "'", - value.equals(BigInteger.valueOf(319L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].residual + "' != '" + 319 + "'", value.equals(BigInteger.valueOf( 319L ) ) ); } else { value = value.longValue(); expected = 319L; @@ -1675,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1685,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1695,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].residual + "' != '" + 15987 + "'", - value.equals(BigInteger.valueOf(15987L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].residual + "' != '" + 15987 + "'", value.equals(BigInteger.valueOf( 15987L ) ) ); } else { value = value.longValue(); expected = 15987L; @@ -1705,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1715,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1725,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].residual + "' != '" + 22266 + "'", - value.equals(BigInteger.valueOf(22266L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].residual + "' != '" + 22266 + "'", value.equals(BigInteger.valueOf( 22266L ) ) ); } else { value = value.longValue(); expected = 22266L; @@ -1735,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1745,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1755,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].residual + "' != '" + -19919 + "'", - value.equals(BigInteger.valueOf(-19919L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].residual + "' != '" + -19919 + "'", value.equals(BigInteger.valueOf( -19919L ) ) ); } else { value = value.longValue(); expected = -19919L; @@ -1765,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].sv_id.constellation + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].sv_id.constellation + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -1775,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[46].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[46].sv_id.satId + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[46].sv_id.satId + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1785,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[47].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[47].residual + "' != '" + 17350 + "'", - value.equals(BigInteger.valueOf(17350L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[47].residual + "' != '" + 17350 + "'", value.equals(BigInteger.valueOf( 17350L ) ) ); } else { value = value.longValue(); expected = 17350L; @@ -1795,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[47].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[47].sv_id.constellation + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[47].sv_id.constellation + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1805,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[47].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[47].sv_id.satId + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[47].sv_id.satId + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1815,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[48].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[48].residual + "' != '" + 14410 + "'", - value.equals(BigInteger.valueOf(14410L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[48].residual + "' != '" + 14410 + "'", value.equals(BigInteger.valueOf( 14410L ) ) ); } else { value = value.longValue(); expected = 14410L; @@ -1825,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[48].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[48].sv_id.constellation + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[48].sv_id.constellation + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -1835,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[48].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[48].sv_id.satId + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[48].sv_id.satId + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1845,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[49].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[49].residual + "' != '" + 23671 + "'", - value.equals(BigInteger.valueOf(23671L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[49].residual + "' != '" + 23671 + "'", value.equals(BigInteger.valueOf( 23671L ) ) ); } else { value = value.longValue(); expected = 23671L; @@ -1855,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[49].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[49].sv_id.constellation + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[49].sv_id.constellation + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1865,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[49].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[49].sv_id.satId + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[49].sv_id.satId + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1875,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[50].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[50].residual + "' != '" + -31905 + "'", - value.equals(BigInteger.valueOf(-31905L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[50].residual + "' != '" + -31905 + "'", value.equals(BigInteger.valueOf( -31905L ) ) ); } else { value = value.longValue(); expected = -31905L; @@ -1885,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[50].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[50].sv_id.constellation + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[50].sv_id.constellation + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1895,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[50].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[50].sv_id.satId + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[50].sv_id.satId + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1905,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[51].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[51].residual + "' != '" + 14305 + "'", - value.equals(BigInteger.valueOf(14305L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[51].residual + "' != '" + 14305 + "'", value.equals(BigInteger.valueOf( 14305L ) ) ); } else { value = value.longValue(); expected = 14305L; @@ -1915,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[51].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[51].sv_id.constellation + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[51].sv_id.constellation + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1925,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[51].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[51].sv_id.satId + "' != '" + 89 + "'", - value.equals(BigInteger.valueOf(89L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[51].sv_id.satId + "' != '" + 89 + "'", value.equals(BigInteger.valueOf( 89L ) ) ); } else { value = value.longValue(); expected = 89L; @@ -1935,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[52].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[52].residual + "' != '" + -12968 + "'", - value.equals(BigInteger.valueOf(-12968L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[52].residual + "' != '" + -12968 + "'", value.equals(BigInteger.valueOf( -12968L ) ) ); } else { value = value.longValue(); expected = -12968L; @@ -1945,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[52].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[52].sv_id.constellation + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[52].sv_id.constellation + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1955,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[52].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[52].sv_id.satId + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[52].sv_id.satId + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -1965,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[53].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[53].residual + "' != '" + 21479 + "'", - value.equals(BigInteger.valueOf(21479L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[53].residual + "' != '" + 21479 + "'", value.equals(BigInteger.valueOf( 21479L ) ) ); } else { value = value.longValue(); expected = 21479L; @@ -1975,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[53].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[53].sv_id.constellation + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[53].sv_id.constellation + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1985,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[53].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[53].sv_id.satId + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[53].sv_id.satId + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1995,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[54].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[54].residual + "' != '" + 28260 + "'", - value.equals(BigInteger.valueOf(28260L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[54].residual + "' != '" + 28260 + "'", value.equals(BigInteger.valueOf( 28260L ) ) ); } else { value = value.longValue(); expected = 28260L; @@ -2005,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[54].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[54].sv_id.constellation + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[54].sv_id.constellation + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2015,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[54].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[54].sv_id.satId + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[54].sv_id.satId + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2025,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[55].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[55].residual + "' != '" + -11112 + "'", - value.equals(BigInteger.valueOf(-11112L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[55].residual + "' != '" + -11112 + "'", value.equals(BigInteger.valueOf( -11112L ) ) ); } else { value = value.longValue(); expected = -11112L; @@ -2035,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[55].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[55].sv_id.constellation + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[55].sv_id.constellation + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -2045,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[55].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[55].sv_id.satId + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[55].sv_id.satId + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2055,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[56].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[56].residual + "' != '" + -25304 + "'", - value.equals(BigInteger.valueOf(-25304L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[56].residual + "' != '" + -25304 + "'", value.equals(BigInteger.valueOf( -25304L ) ) ); } else { value = value.longValue(); expected = -25304L; @@ -2065,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[56].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[56].sv_id.constellation + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[56].sv_id.constellation + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -2075,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[56].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[56].sv_id.satId + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[56].sv_id.satId + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2085,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[57].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[57].residual + "' != '" + -4024 + "'", - value.equals(BigInteger.valueOf(-4024L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[57].residual + "' != '" + -4024 + "'", value.equals(BigInteger.valueOf( -4024L ) ) ); } else { value = value.longValue(); expected = -4024L; @@ -2095,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[57].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[57].sv_id.constellation + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[57].sv_id.constellation + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -2105,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[57].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[57].sv_id.satId + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[57].sv_id.satId + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -2115,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[58].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[58].residual + "' != '" + -15505 + "'", - value.equals(BigInteger.valueOf(-15505L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[58].residual + "' != '" + -15505 + "'", value.equals(BigInteger.valueOf( -15505L ) ) ); } else { value = value.longValue(); expected = -15505L; @@ -2125,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[58].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[58].sv_id.constellation + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[58].sv_id.constellation + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -2135,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[58].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[58].sv_id.satId + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[58].sv_id.satId + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -2145,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.hydro; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.hydro + "' != '" + 16250 + "'", - value.equals(BigInteger.valueOf(16250L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.hydro + "' != '" + 16250 + "'", value.equals(BigInteger.valueOf( 16250L ) ) ); } else { value = value.longValue(); expected = 16250L; @@ -2155,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.wet; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.wet + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.wet + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest.java b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest.java index 8ea7f9ec7b..905bce40a5 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrection.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrGriddedCorrection.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrGriddedCorrection; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest { @@ -30,272 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrGriddedCorrectionTest.test1"); - byte[] payload = - new byte[] { - (byte) 21, - (byte) 14, - (byte) 151, - (byte) 50, - (byte) 120, - (byte) 133, - (byte) 29, - (byte) 151, - (byte) 174, - (byte) 229, - (byte) 151, - (byte) 189, - (byte) 204, - (byte) 196, - (byte) 105, - (byte) 170, - (byte) 120, - (byte) 149, - (byte) 169, - (byte) 37, - (byte) 244, - (byte) 78, - (byte) 72, - (byte) 140, - (byte) 101, - (byte) 2, - (byte) 173, - (byte) 88, - (byte) 70, - (byte) 180, - (byte) 54, - (byte) 152, - (byte) 115, - (byte) 78, - (byte) 201, - (byte) 161, - (byte) 23, - (byte) 135, - (byte) 152, - (byte) 98, - (byte) 61, - (byte) 75, - (byte) 178, - (byte) 120, - (byte) 229, - (byte) 146, - (byte) 55, - (byte) 58, - (byte) 169, - (byte) 234, - (byte) 230, - (byte) 69, - (byte) 172, - (byte) 191, - (byte) 127, - (byte) 146, - (byte) 89, - (byte) 150, - (byte) 91, - (byte) 111, - (byte) 225, - (byte) 41, - (byte) 17, - (byte) 119, - (byte) 52, - (byte) 166, - (byte) 166, - (byte) 120, - (byte) 57, - (byte) 221, - (byte) 12, - (byte) 3, - (byte) 156, - (byte) 70, - (byte) 156, - (byte) 35, - (byte) 127, - (byte) 8, - (byte) 127, - (byte) 58, - (byte) 128, - (byte) 55, - (byte) 115, - (byte) 80, - (byte) 157, - (byte) 122, - (byte) 153, - (byte) 124, - (byte) 27, - (byte) 128, - (byte) 98, - (byte) 103, - (byte) 204, - (byte) 75, - (byte) 238, - (byte) 128, - (byte) 226, - (byte) 148, - (byte) 248, - (byte) 61, - (byte) 216, - (byte) 208, - (byte) 149, - (byte) 167, - (byte) 224, - (byte) 40, - (byte) 144, - (byte) 186, - (byte) 157, - (byte) 227, - (byte) 72, - (byte) 240, - (byte) 100, - (byte) 35, - (byte) 12, - (byte) 212, - (byte) 7, - (byte) 59, - (byte) 176, - (byte) 81, - (byte) 86, - (byte) 27, - (byte) 24, - (byte) 155, - (byte) 67, - (byte) 43, - (byte) 132, - (byte) 45, - (byte) 203, - (byte) 44, - (byte) 6, - (byte) 112, - (byte) 183, - (byte) 231, - (byte) 176, - (byte) 79, - (byte) 194, - (byte) 253, - (byte) 247, - (byte) 103, - (byte) 91, - (byte) 226, - (byte) 116, - (byte) 148, - (byte) 23, - (byte) 62, - (byte) 227, - (byte) 240, - (byte) 29, - (byte) 219, - (byte) 205, - (byte) 18, - (byte) 242, - (byte) 207, - (byte) 72, - (byte) 71, - (byte) 79, - (byte) 37, - (byte) 42, - (byte) 176, - (byte) 201, - (byte) 202, - (byte) 91, - (byte) 105, - (byte) 115, - (byte) 146, - (byte) 59, - (byte) 110, - (byte) 44, - (byte) 109, - (byte) 128, - (byte) 183, - (byte) 185, - (byte) 67, - (byte) 31, - (byte) 165, - (byte) 92, - (byte) 79, - (byte) 189, - (byte) 180, - (byte) 94, - (byte) 7, - (byte) 162, - (byte) 121, - (byte) 156, - (byte) 210, - (byte) 47, - (byte) 7, - (byte) 7, - (byte) 205, - (byte) 174, - (byte) 41, - (byte) 241, - (byte) 129, - (byte) 210, - (byte) 43, - (byte) 101, - (byte) 186, - (byte) 208, - (byte) 195, - (byte) 226, - (byte) 247, - (byte) 187, - (byte) 219, - (byte) 160, - (byte) 120, - (byte) 192, - (byte) 102, - (byte) 166, - (byte) 42, - (byte) 246, - (byte) 173, - (byte) 94, - (byte) 102, - (byte) 156, - (byte) 222, - (byte) 30, - (byte) 35, - (byte) 247, - (byte) 64, - (byte) 189, - (byte) 137, - (byte) 204, - (byte) 220, - (byte) 32, - (byte) 71, - (byte) 222, - (byte) 222, - (byte) 201, - (byte) 246, - (byte) 3, - (byte) 25, - (byte) 45, - (byte) 251, - (byte) 239, - (byte) 115, - (byte) 88, - (byte) 218, - (byte) 10, - (byte) 209, - (byte) 120, - (byte) 65, - (byte) 175, - (byte) 131, - (byte) 194, - (byte) 41, - (byte) 174, - (byte) 137, - (byte) 17, - (byte) 68, - (byte) 28, - (byte) 253, - (byte) 42, - }; - SBPMessage sbp = new SBPMessage(0xf9c4, 0x5fc, payload); - MsgSsrGriddedCorrection msg = new MsgSsrGriddedCorrection(sbp); + byte[] payload = new byte[] {(byte)21,(byte)14,(byte)151,(byte)50,(byte)120,(byte)133,(byte)29,(byte)151,(byte)174,(byte)229,(byte)151,(byte)189,(byte)204,(byte)196,(byte)105,(byte)170,(byte)120,(byte)149,(byte)169,(byte)37,(byte)244,(byte)78,(byte)72,(byte)140,(byte)101,(byte)2,(byte)173,(byte)88,(byte)70,(byte)180,(byte)54,(byte)152,(byte)115,(byte)78,(byte)201,(byte)161,(byte)23,(byte)135,(byte)152,(byte)98,(byte)61,(byte)75,(byte)178,(byte)120,(byte)229,(byte)146,(byte)55,(byte)58,(byte)169,(byte)234,(byte)230,(byte)69,(byte)172,(byte)191,(byte)127,(byte)146,(byte)89,(byte)150,(byte)91,(byte)111,(byte)225,(byte)41,(byte)17,(byte)119,(byte)52,(byte)166,(byte)166,(byte)120,(byte)57,(byte)221,(byte)12,(byte)3,(byte)156,(byte)70,(byte)156,(byte)35,(byte)127,(byte)8,(byte)127,(byte)58,(byte)128,(byte)55,(byte)115,(byte)80,(byte)157,(byte)122,(byte)153,(byte)124,(byte)27,(byte)128,(byte)98,(byte)103,(byte)204,(byte)75,(byte)238,(byte)128,(byte)226,(byte)148,(byte)248,(byte)61,(byte)216,(byte)208,(byte)149,(byte)167,(byte)224,(byte)40,(byte)144,(byte)186,(byte)157,(byte)227,(byte)72,(byte)240,(byte)100,(byte)35,(byte)12,(byte)212,(byte)7,(byte)59,(byte)176,(byte)81,(byte)86,(byte)27,(byte)24,(byte)155,(byte)67,(byte)43,(byte)132,(byte)45,(byte)203,(byte)44,(byte)6,(byte)112,(byte)183,(byte)231,(byte)176,(byte)79,(byte)194,(byte)253,(byte)247,(byte)103,(byte)91,(byte)226,(byte)116,(byte)148,(byte)23,(byte)62,(byte)227,(byte)240,(byte)29,(byte)219,(byte)205,(byte)18,(byte)242,(byte)207,(byte)72,(byte)71,(byte)79,(byte)37,(byte)42,(byte)176,(byte)201,(byte)202,(byte)91,(byte)105,(byte)115,(byte)146,(byte)59,(byte)110,(byte)44,(byte)109,(byte)128,(byte)183,(byte)185,(byte)67,(byte)31,(byte)165,(byte)92,(byte)79,(byte)189,(byte)180,(byte)94,(byte)7,(byte)162,(byte)121,(byte)156,(byte)210,(byte)47,(byte)7,(byte)7,(byte)205,(byte)174,(byte)41,(byte)241,(byte)129,(byte)210,(byte)43,(byte)101,(byte)186,(byte)208,(byte)195,(byte)226,(byte)247,(byte)187,(byte)219,(byte)160,(byte)120,(byte)192,(byte)102,(byte)166,(byte)42,(byte)246,(byte)173,(byte)94,(byte)102,(byte)156,(byte)222,(byte)30,(byte)35,(byte)247,(byte)64,(byte)189,(byte)137,(byte)204,(byte)220,(byte)32,(byte)71,(byte)222,(byte)222,(byte)201,(byte)246,(byte)3,(byte)25,(byte)45,(byte)251,(byte)239,(byte)115,(byte)88,(byte)218,(byte)10,(byte)209,(byte)120,(byte)65,(byte)175,(byte)131,(byte)194,(byte)41,(byte)174,(byte)137,(byte)17,(byte)68,(byte)28,(byte)253,(byte)42, }; + SBPMessage sbp = new SBPMessage( 0xf9c4, 0x5fc, payload ); + MsgSsrGriddedCorrection msg = new MsgSsrGriddedCorrection( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.iod_atmo + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.header.iod_atmo + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 48535 + "'", - value.equals(BigInteger.valueOf(48535L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 48535 + "'", value.equals(BigInteger.valueOf( 48535L ) ) ); } else { value = value.longValue(); expected = 48535L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 50380 + "'", - value.equals(BigInteger.valueOf(50380L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 50380 + "'", value.equals(BigInteger.valueOf( 50380L ) ) ); } else { value = value.longValue(); expected = 50380L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 12951 + "'", - value.equals(BigInteger.valueOf(12951L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 12951 + "'", value.equals(BigInteger.valueOf( 12951L ) ) ); } else { value = value.longValue(); expected = 12951L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 3605 + "'", - value.equals(BigInteger.valueOf(3605L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 3605 + "'", value.equals(BigInteger.valueOf( 3605L ) ) ); } else { value = value.longValue(); expected = 3605L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 2535294328L + "'", - value.equals(new BigInteger("2535294328"))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 2535294328L + "'", value.equals( new BigInteger( "2535294328" ) ) ); } else { value = value.longValue(); expected = 2535294328L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 58798 + "'", - value.equals(BigInteger.valueOf(58798L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 58798 + "'", value.equals(BigInteger.valueOf( 58798L ) ) ); } else { value = value.longValue(); expected = 58798L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.tropo_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tropo_quality_indicator + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.header.tropo_quality_indicator + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.index; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.index + "' != '" + 43413 + "'", - value.equals(BigInteger.valueOf(43413L))); + org.junit.Assert.assertTrue("'" + msg.index + "' != '" + 43413 + "'", value.equals(BigInteger.valueOf( 43413L ) ) ); } else { value = value.longValue(); expected = 43413L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].residual + "' != '" + -21246 + "'", - value.equals(BigInteger.valueOf(-21246L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].residual + "' != '" + -21246 + "'", value.equals(BigInteger.valueOf( -21246L ) ) ); } else { value = value.longValue(); expected = -21246L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].stddev + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].stddev + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.constellation + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[0].sv_id.satId + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].residual + "' != '" + -26570 + "'", - value.equals(BigInteger.valueOf(-26570L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].residual + "' != '" + -26570 + "'", value.equals(BigInteger.valueOf( -26570L ) ) ); } else { value = value.longValue(); expected = -26570L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].stddev + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].stddev + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.constellation + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[1].sv_id.satId + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].residual + "' != '" + 6049 + "'", - value.equals(BigInteger.valueOf(6049L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].residual + "' != '" + 6049 + "'", value.equals(BigInteger.valueOf( 6049L ) ) ); } else { value = value.longValue(); expected = 6049L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].stddev + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].stddev + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.constellation + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[2].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[2].sv_id.satId + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].residual + "' != '" + 19261 + "'", - value.equals(BigInteger.valueOf(19261L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].residual + "' != '" + 19261 + "'", value.equals(BigInteger.valueOf( 19261L ) ) ); } else { value = value.longValue(); expected = 19261L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].stddev + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].stddev + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.constellation + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[3].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[3].sv_id.satId + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].residual + "' != '" + 14226 + "'", - value.equals(BigInteger.valueOf(14226L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].residual + "' != '" + 14226 + "'", value.equals(BigInteger.valueOf( 14226L ) ) ); } else { value = value.longValue(); expected = 14226L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].stddev + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].stddev + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 229 + "'", - value.equals(BigInteger.valueOf(229L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.constellation + "' != '" + 229 + "'", value.equals(BigInteger.valueOf( 229L ) ) ); } else { value = value.longValue(); expected = 229L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[4].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[4].sv_id.satId + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].residual + "' != '" + 17894 + "'", - value.equals(BigInteger.valueOf(17894L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].residual + "' != '" + 17894 + "'", value.equals(BigInteger.valueOf( 17894L ) ) ); } else { value = value.longValue(); expected = 17894L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].stddev + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].stddev + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.constellation + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[5].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[5].sv_id.satId + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].residual + "' != '" + 22930 + "'", - value.equals(BigInteger.valueOf(22930L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].residual + "' != '" + 22930 + "'", value.equals(BigInteger.valueOf( 22930L ) ) ); } else { value = value.longValue(); expected = 22930L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].stddev + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].stddev + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.constellation + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[6].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 191 + "'", - value.equals(BigInteger.valueOf(191L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[6].sv_id.satId + "' != '" + 191 + "'", value.equals(BigInteger.valueOf( 191L ) ) ); } else { value = value.longValue(); expected = 191L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].residual + "' != '" + 10721 + "'", - value.equals(BigInteger.valueOf(10721L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].residual + "' != '" + 10721 + "'", value.equals(BigInteger.valueOf( 10721L ) ) ); } else { value = value.longValue(); expected = 10721L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].stddev + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].stddev + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.constellation + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[7].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[7].sv_id.satId + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].residual + "' != '" + -22874 + "'", - value.equals(BigInteger.valueOf(-22874L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].residual + "' != '" + -22874 + "'", value.equals(BigInteger.valueOf( -22874L ) ) ); } else { value = value.longValue(); expected = -22874L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].stddev + "' != '" + 120 + "'", - value.equals(BigInteger.valueOf(120L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].stddev + "' != '" + 120 + "'", value.equals(BigInteger.valueOf( 120L ) ) ); } else { value = value.longValue(); expected = 120L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.constellation + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[8].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[8].sv_id.satId + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].residual + "' != '" + 780 + "'", - value.equals(BigInteger.valueOf(780L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].residual + "' != '" + 780 + "'", value.equals(BigInteger.valueOf( 780L ) ) ); } else { value = value.longValue(); expected = 780L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].stddev + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].stddev + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.constellation + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[9].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[9].sv_id.satId + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].residual + "' != '" + 32547 + "'", - value.equals(BigInteger.valueOf(32547L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].residual + "' != '" + 32547 + "'", value.equals(BigInteger.valueOf( 32547L ) ) ); } else { value = value.longValue(); expected = 32547L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].stddev + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].stddev + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.constellation + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[10].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[10].sv_id.satId + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].residual + "' != '" + 14208 + "'", - value.equals(BigInteger.valueOf(14208L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].residual + "' != '" + 14208 + "'", value.equals(BigInteger.valueOf( 14208L ) ) ); } else { value = value.longValue(); expected = 14208L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].stddev + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].stddev + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.constellation + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[11].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[11].sv_id.satId + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].residual + "' != '" + -26246 + "'", - value.equals(BigInteger.valueOf(-26246L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].residual + "' != '" + -26246 + "'", value.equals(BigInteger.valueOf( -26246L ) ) ); } else { value = value.longValue(); expected = -26246L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].stddev + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].stddev + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.constellation + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[12].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[12].sv_id.satId + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].residual + "' != '" + 26466 + "'", - value.equals(BigInteger.valueOf(26466L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].residual + "' != '" + 26466 + "'", value.equals(BigInteger.valueOf( 26466L ) ) ); } else { value = value.longValue(); expected = 26466L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].stddev + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].stddev + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.constellation + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[13].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[13].sv_id.satId + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].residual + "' != '" + -7552 + "'", - value.equals(BigInteger.valueOf(-7552L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].residual + "' != '" + -7552 + "'", value.equals(BigInteger.valueOf( -7552L ) ) ); } else { value = value.longValue(); expected = -7552L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].stddev + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].stddev + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.constellation + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[14].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[14].sv_id.satId + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].residual + "' != '" + -12072 + "'", - value.equals(BigInteger.valueOf(-12072L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].residual + "' != '" + -12072 + "'", value.equals(BigInteger.valueOf( -12072L ) ) ); } else { value = value.longValue(); expected = -12072L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].stddev + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].stddev + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.constellation + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[15].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[15].sv_id.satId + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].residual + "' != '" + -28632 + "'", - value.equals(BigInteger.valueOf(-28632L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].residual + "' != '" + -28632 + "'", value.equals(BigInteger.valueOf( -28632L ) ) ); } else { value = value.longValue(); expected = -28632L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].stddev + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].stddev + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.constellation + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[16].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[16].sv_id.satId + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].residual + "' != '" + -4024 + "'", - value.equals(BigInteger.valueOf(-4024L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].residual + "' != '" + -4024 + "'", value.equals(BigInteger.valueOf( -4024L ) ) ); } else { value = value.longValue(); expected = -4024L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].stddev + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].stddev + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.constellation + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[17].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[17].sv_id.satId + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].residual + "' != '" + 2004 + "'", - value.equals(BigInteger.valueOf(2004L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].residual + "' != '" + 2004 + "'", value.equals(BigInteger.valueOf( 2004L ) ) ); } else { value = value.longValue(); expected = 2004L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].stddev + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].stddev + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.constellation + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[18].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[18].sv_id.satId + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].residual + "' != '" + 6998 + "'", - value.equals(BigInteger.valueOf(6998L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].residual + "' != '" + 6998 + "'", value.equals(BigInteger.valueOf( 6998L ) ) ); } else { value = value.longValue(); expected = 6998L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].stddev + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].stddev + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.constellation + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[19].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[19].sv_id.satId + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].residual + "' != '" + -31701 + "'", - value.equals(BigInteger.valueOf(-31701L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].residual + "' != '" + -31701 + "'", value.equals(BigInteger.valueOf( -31701L ) ) ); } else { value = value.longValue(); expected = -31701L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].stddev + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].stddev + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.constellation + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[20].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[20].sv_id.satId + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].residual + "' != '" + 28678 + "'", - value.equals(BigInteger.valueOf(28678L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].residual + "' != '" + 28678 + "'", value.equals(BigInteger.valueOf( 28678L ) ) ); } else { value = value.longValue(); expected = 28678L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].stddev + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].stddev + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.constellation + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[21].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[21].sv_id.satId + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].residual + "' != '" + -15793 + "'", - value.equals(BigInteger.valueOf(-15793L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].residual + "' != '" + -15793 + "'", value.equals(BigInteger.valueOf( -15793L ) ) ); } else { value = value.longValue(); expected = -15793L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].stddev + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].stddev + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.constellation + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[22].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[22].sv_id.satId + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].residual + "' != '" + -7589 + "'", - value.equals(BigInteger.valueOf(-7589L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].residual + "' != '" + -7589 + "'", value.equals(BigInteger.valueOf( -7589L ) ) ); } else { value = value.longValue(); expected = -7589L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].stddev + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].stddev + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.constellation + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[23].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[23].sv_id.satId + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].residual + "' != '" + -7362 + "'", - value.equals(BigInteger.valueOf(-7362L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].residual + "' != '" + -7362 + "'", value.equals(BigInteger.valueOf( -7362L ) ) ); } else { value = value.longValue(); expected = -7362L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].stddev + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].stddev + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.constellation + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[24].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[24].sv_id.satId + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].residual + "' != '" + 4813 + "'", - value.equals(BigInteger.valueOf(4813L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].residual + "' != '" + 4813 + "'", value.equals(BigInteger.valueOf( 4813L ) ) ); } else { value = value.longValue(); expected = 4813L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].stddev + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].stddev + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.constellation + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[25].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[25].sv_id.satId + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].residual + "' != '" + 20295 + "'", - value.equals(BigInteger.valueOf(20295L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].residual + "' != '" + 20295 + "'", value.equals(BigInteger.valueOf( 20295L ) ) ); } else { value = value.longValue(); expected = 20295L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].stddev + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].stddev + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.constellation + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[26].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[26].sv_id.satId + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].residual + "' != '" + -13623 + "'", - value.equals(BigInteger.valueOf(-13623L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].residual + "' != '" + -13623 + "'", value.equals(BigInteger.valueOf( -13623L ) ) ); } else { value = value.longValue(); expected = -13623L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].stddev + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].stddev + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.constellation + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[27].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[27].sv_id.satId + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].residual + "' != '" + 15250 + "'", - value.equals(BigInteger.valueOf(15250L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].residual + "' != '" + 15250 + "'", value.equals(BigInteger.valueOf( 15250L ) ) ); } else { value = value.longValue(); expected = 15250L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].stddev + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].stddev + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.constellation + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[28].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[28].sv_id.satId + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].residual + "' != '" + -18560 + "'", - value.equals(BigInteger.valueOf(-18560L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].residual + "' != '" + -18560 + "'", value.equals(BigInteger.valueOf( -18560L ) ) ); } else { value = value.longValue(); expected = -18560L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].stddev + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].stddev + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.constellation + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[29].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[29].sv_id.satId + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].residual + "' != '" + 23717 + "'", - value.equals(BigInteger.valueOf(23717L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].residual + "' != '" + 23717 + "'", value.equals(BigInteger.valueOf( 23717L ) ) ); } else { value = value.longValue(); expected = 23717L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].stddev + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].stddev + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.constellation + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[30].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[30].sv_id.satId + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].residual + "' != '" + 1886 + "'", - value.equals(BigInteger.valueOf(1886L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].residual + "' != '" + 1886 + "'", value.equals(BigInteger.valueOf( 1886L ) ) ); } else { value = value.longValue(); expected = 1886L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].stddev + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].stddev + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.constellation + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[31].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[31].sv_id.satId + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].residual + "' != '" + 12242 + "'", - value.equals(BigInteger.valueOf(12242L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].residual + "' != '" + 12242 + "'", value.equals(BigInteger.valueOf( 12242L ) ) ); } else { value = value.longValue(); expected = 12242L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].stddev + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].stddev + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.constellation + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[32].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[32].sv_id.satId + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].residual + "' != '" + 10670 + "'", - value.equals(BigInteger.valueOf(10670L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].residual + "' != '" + 10670 + "'", value.equals(BigInteger.valueOf( 10670L ) ) ); } else { value = value.longValue(); expected = 10670L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].stddev + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].stddev + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.constellation + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[33].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[33].sv_id.satId + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].residual + "' != '" + 25899 + "'", - value.equals(BigInteger.valueOf(25899L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].residual + "' != '" + 25899 + "'", value.equals(BigInteger.valueOf( 25899L ) ) ); } else { value = value.longValue(); expected = 25899L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].stddev + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].stddev + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.constellation + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[34].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[34].sv_id.satId + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].residual + "' != '" + -2078 + "'", - value.equals(BigInteger.valueOf(-2078L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].residual + "' != '" + -2078 + "'", value.equals(BigInteger.valueOf( -2078L ) ) ); } else { value = value.longValue(); expected = -2078L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].stddev + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].stddev + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.constellation + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[35].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[35].sv_id.satId + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].residual + "' != '" + -16264 + "'", - value.equals(BigInteger.valueOf(-16264L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].residual + "' != '" + -16264 + "'", value.equals(BigInteger.valueOf( -16264L ) ) ); } else { value = value.longValue(); expected = -16264L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].stddev + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].stddev + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.constellation + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[36].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[36].sv_id.satId + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -1873,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].residual + "' != '" + -21002 + "'", - value.equals(BigInteger.valueOf(-21002L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].residual + "' != '" + -21002 + "'", value.equals(BigInteger.valueOf( -21002L ) ) ); } else { value = value.longValue(); expected = -21002L; @@ -1883,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].stddev + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].stddev + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1893,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.constellation + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1903,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[37].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[37].sv_id.satId + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1913,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].residual + "' != '" + 7902 + "'", - value.equals(BigInteger.valueOf(7902L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].residual + "' != '" + 7902 + "'", value.equals(BigInteger.valueOf( 7902L ) ) ); } else { value = value.longValue(); expected = 7902L; @@ -1923,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].stddev + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].stddev + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1933,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.constellation + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1943,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[38].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[38].sv_id.satId + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1953,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].residual + "' != '" + -30275 + "'", - value.equals(BigInteger.valueOf(-30275L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].residual + "' != '" + -30275 + "'", value.equals(BigInteger.valueOf( -30275L ) ) ); } else { value = value.longValue(); expected = -30275L; @@ -1963,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].stddev + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].stddev + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -1973,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.constellation + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1983,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[39].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[39].sv_id.satId + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1993,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].residual + "' != '" + -8633 + "'", - value.equals(BigInteger.valueOf(-8633L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].residual + "' != '" + -8633 + "'", value.equals(BigInteger.valueOf( -8633L ) ) ); } else { value = value.longValue(); expected = -8633L; @@ -2003,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].stddev + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].stddev + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -2013,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.constellation + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -2023,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[40].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[40].sv_id.satId + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -2033,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].residual + "' != '" + 6403 + "'", - value.equals(BigInteger.valueOf(6403L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].residual + "' != '" + 6403 + "'", value.equals(BigInteger.valueOf( 6403L ) ) ); } else { value = value.longValue(); expected = 6403L; @@ -2043,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].stddev + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].stddev + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2053,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.constellation + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -2063,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[41].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[41].sv_id.satId + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -2073,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].residual + "' != '" + 22643 + "'", - value.equals(BigInteger.valueOf(22643L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].residual + "' != '" + 22643 + "'", value.equals(BigInteger.valueOf( 22643L ) ) ); } else { value = value.longValue(); expected = 22643L; @@ -2083,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].stddev + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].stddev + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -2093,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.constellation + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2103,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[42].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[42].sv_id.satId + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -2113,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].residual + "' != '" + 16760 + "'", - value.equals(BigInteger.valueOf(16760L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].residual + "' != '" + 16760 + "'", value.equals(BigInteger.valueOf( 16760L ) ) ); } else { value = value.longValue(); expected = 16760L; @@ -2123,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].stddev + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].stddev + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -2133,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.constellation + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -2143,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[43].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[43].sv_id.satId + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -2153,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].residual + "' != '" + -20951 + "'", - value.equals(BigInteger.valueOf(-20951L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].residual + "' != '" + -20951 + "'", value.equals(BigInteger.valueOf( -20951L ) ) ); } else { value = value.longValue(); expected = -20951L; @@ -2163,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].stddev + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].stddev + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -2173,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.constellation + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2183,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[44].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[44].sv_id.satId + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -2193,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].residual + "' != '" + -740 + "'", - value.equals(BigInteger.valueOf(-740L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].residual + "' != '" + -740 + "'", value.equals(BigInteger.valueOf( -740L ) ) ); } else { value = value.longValue(); expected = -740L; @@ -2203,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].stddev + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].stddev + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -2213,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.constellation + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2223,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.stec_residuals[45].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.stec_residuals[45].sv_id.satId + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2233,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.hydro; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.hydro + "' != '" + -3035 + "'", - value.equals(BigInteger.valueOf(-3035L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.hydro + "' != '" + -3035 + "'", value.equals(BigInteger.valueOf( -3035L ) ) ); } else { value = value.longValue(); expected = -3035L; @@ -2243,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.stddev; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.stddev + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.stddev + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2253,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.tropo_delay_correction.wet; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tropo_delay_correction.wet + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.tropo_delay_correction.wet + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.java b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.java index f38138c182..b086858697 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockBoundsDegradation.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockBoundsDegradation.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrOrbitClockBoundsDegradation; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest { @@ -29,48 +33,16 @@ public class auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 48, - (byte) 15, - (byte) 1, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 200, - (byte) 199, - (byte) 198, - (byte) 197, - (byte) 196, - (byte) 195, - (byte) 194, - (byte) 193, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05DF, payload); - MsgSsrOrbitClockBoundsDegradation msg = new MsgSsrOrbitClockBoundsDegradation(sbp); + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockBoundsDegradationTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)48,(byte)15,(byte)1,(byte)10,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)200,(byte)199,(byte)198,(byte)197,(byte)196,(byte)195,(byte)194,(byte)193, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05DF, payload ); + MsgSsrOrbitClockBoundsDegradation msg = new MsgSsrOrbitClockBoundsDegradation( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.const_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -78,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -88,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -98,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -108,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -118,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -128,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -138,13 +98,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.clock_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.clock_bound_mu_dot - + "' != '" - + 194 - + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.clock_bound_mu_dot + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -152,13 +106,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.clock_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.clock_bound_sig_dot - + "' != '" - + 193 - + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.clock_bound_sig_dot + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -166,13 +114,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_along_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_along_bound_mu_dot - + "' != '" - + 199 - + "'", - value.equals(BigInteger.valueOf(199L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_along_bound_mu_dot + "' != '" + 199 + "'", value.equals(BigInteger.valueOf( 199L ) ) ); } else { value = value.longValue(); expected = 199L; @@ -180,13 +122,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_along_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_along_bound_sig_dot - + "' != '" - + 196 - + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_along_bound_sig_dot + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -194,13 +130,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_cross_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_cross_bound_mu_dot - + "' != '" - + 198 - + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_cross_bound_mu_dot + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -208,13 +138,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_cross_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_cross_bound_sig_dot - + "' != '" - + 195 - + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_cross_bound_sig_dot + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -222,13 +146,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_radial_bound_mu_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_radial_bound_mu_dot - + "' != '" - + 200 - + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_radial_bound_mu_dot + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -236,13 +154,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds_degradation.orb_radial_bound_sig_dot; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" - + msg.orbit_clock_bounds_degradation.orb_radial_bound_sig_dot - + "' != '" - + 197 - + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds_degradation.orb_radial_bound_sig_dot + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -250,9 +162,7 @@ public void test1() throws Throwable { } value = msg.sat_bitmask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sat_bitmask + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.sat_bitmask + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -260,8 +170,7 @@ public void test1() throws Throwable { } value = msg.ssr_iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest.java b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest.java index f0d2ea96d3..0a07779b02 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockBounds.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockBounds.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrOrbitClockBounds; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest { @@ -30,23 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockBoundsTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 2, (byte) 3, (byte) 48, (byte) 15, (byte) 1, (byte) 2, (byte) 24, - (byte) 39, (byte) 38, (byte) 37, (byte) 1, (byte) 2, (byte) 3, (byte) 39, - (byte) 1, (byte) 3, (byte) 39, (byte) 38, (byte) 37, (byte) 1, (byte) 2, - (byte) 3, (byte) 39, (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05DE, payload); - MsgSsrOrbitClockBounds msg = new MsgSsrOrbitClockBounds(sbp); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)2,(byte)3,(byte)48,(byte)15,(byte)1,(byte)2,(byte)24,(byte)39,(byte)38,(byte)37,(byte)1,(byte)2,(byte)3,(byte)39,(byte)1,(byte)3,(byte)39,(byte)38,(byte)37,(byte)1,(byte)2,(byte)3,(byte)39,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05DE, payload ); + MsgSsrOrbitClockBounds msg = new MsgSsrOrbitClockBounds( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.const_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.const_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -54,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -64,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -74,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -84,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -94,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -104,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -114,8 +98,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -123,9 +106,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].clock_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].clock_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].clock_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -133,9 +114,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].clock_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].clock_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].clock_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -143,9 +122,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_along_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_along_bound_mu + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_along_bound_mu + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -153,9 +130,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_along_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_along_bound_sig + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_along_bound_sig + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -163,9 +138,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_cross_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_cross_bound_mu + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_cross_bound_mu + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -173,9 +146,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_cross_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_cross_bound_sig + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_cross_bound_sig + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -183,9 +154,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_radial_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_radial_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_radial_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -193,9 +162,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].orb_radial_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].orb_radial_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].orb_radial_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -203,9 +170,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[0].sat_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[0].sat_id + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[0].sat_id + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -213,9 +178,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].clock_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].clock_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].clock_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -223,9 +186,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].clock_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].clock_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].clock_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -233,9 +194,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_along_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_along_bound_mu + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_along_bound_mu + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -243,9 +202,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_along_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_along_bound_sig + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_along_bound_sig + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -253,9 +210,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_cross_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_cross_bound_mu + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_cross_bound_mu + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -263,9 +218,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_cross_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_cross_bound_sig + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_cross_bound_sig + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -273,9 +226,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_radial_bound_mu; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_radial_bound_mu + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_radial_bound_mu + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -283,9 +234,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].orb_radial_bound_sig; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].orb_radial_bound_sig + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].orb_radial_bound_sig + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -293,9 +242,7 @@ public void test1() throws Throwable { } value = msg.orbit_clock_bounds[1].sat_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.orbit_clock_bounds[1].sat_id + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.orbit_clock_bounds[1].sat_id + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -303,8 +250,7 @@ public void test1() throws Throwable { } value = msg.ssr_iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.java index 3ea85ea721..39859edcc3 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockDepA.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClockDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrOrbitClockDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrOrbitClockDepATest { @@ -27,67 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrOrbitClockDepATest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 225, - (byte) 114, - (byte) 31, - (byte) 189, - (byte) 43, - (byte) 30, - (byte) 1, - (byte) 30, - (byte) 194, - (byte) 211, - (byte) 193, - (byte) 175, - (byte) 161, - (byte) 143, - (byte) 254, - (byte) 56, - (byte) 63, - (byte) 232, - (byte) 7, - (byte) 216, - (byte) 69, - (byte) 1, - (byte) 110, - (byte) 165, - (byte) 124, - (byte) 196, - (byte) 189, - (byte) 27, - (byte) 116, - (byte) 88, - (byte) 4, - (byte) 61, - (byte) 3, - (byte) 151, - (byte) 18, - (byte) 171, - (byte) 147, - (byte) 46, - (byte) 198, - (byte) 85, - (byte) 243, - (byte) 245, - (byte) 225, - (byte) 235, - (byte) 123, - (byte) 181, - (byte) 210, - }; - SBPMessage sbp = new SBPMessage(0xa621, 0x5dc, payload); - MsgSsrOrbitClockDepA msg = new MsgSsrOrbitClockDepA(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockDepATest.test1"); + byte[] payload = new byte[] {(byte)225,(byte)114,(byte)31,(byte)189,(byte)43,(byte)30,(byte)1,(byte)30,(byte)194,(byte)211,(byte)193,(byte)175,(byte)161,(byte)143,(byte)254,(byte)56,(byte)63,(byte)232,(byte)7,(byte)216,(byte)69,(byte)1,(byte)110,(byte)165,(byte)124,(byte)196,(byte)189,(byte)27,(byte)116,(byte)88,(byte)4,(byte)61,(byte)3,(byte)151,(byte)18,(byte)171,(byte)147,(byte)46,(byte)198,(byte)85,(byte)243,(byte)245,(byte)225,(byte)235,(byte)123,(byte)181,(byte)210, }; + SBPMessage sbp = new SBPMessage( 0xa621, 0x5dc, payload ); + MsgSsrOrbitClockDepA msg = new MsgSsrOrbitClockDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.along; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.along + "' != '" + 132661048 + "'", - value.equals(BigInteger.valueOf(132661048L))); + org.junit.Assert.assertTrue("'" + msg.along + "' != '" + 132661048 + "'", value.equals(BigInteger.valueOf( 132661048L ) ) ); } else { value = value.longValue(); expected = 132661048L; @@ -95,9 +50,7 @@ public void test1() throws Throwable { } value = msg.c0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c0 + "' != '" + -970026069 + "'", - value.equals(BigInteger.valueOf(-970026069L))); + org.junit.Assert.assertTrue("'" + msg.c0 + "' != '" + -970026069 + "'", value.equals(BigInteger.valueOf( -970026069L ) ) ); } else { value = value.longValue(); expected = -970026069L; @@ -105,9 +58,7 @@ public void test1() throws Throwable { } value = msg.c1; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c1 + "' != '" + -503975083 + "'", - value.equals(BigInteger.valueOf(-503975083L))); + org.junit.Assert.assertTrue("'" + msg.c1 + "' != '" + -503975083 + "'", value.equals(BigInteger.valueOf( -503975083L ) ) ); } else { value = value.longValue(); expected = -503975083L; @@ -115,9 +66,7 @@ public void test1() throws Throwable { } value = msg.c2; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c2 + "' != '" + -759858197 + "'", - value.equals(BigInteger.valueOf(-759858197L))); + org.junit.Assert.assertTrue("'" + msg.c2 + "' != '" + -759858197 + "'", value.equals(BigInteger.valueOf( -759858197L ) ) ); } else { value = value.longValue(); expected = -759858197L; @@ -125,9 +74,7 @@ public void test1() throws Throwable { } value = msg.cross; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cross + "' != '" + 1845577176 + "'", - value.equals(BigInteger.valueOf(1845577176L))); + org.junit.Assert.assertTrue("'" + msg.cross + "' != '" + 1845577176 + "'", value.equals(BigInteger.valueOf( 1845577176L ) ) ); } else { value = value.longValue(); expected = 1845577176L; @@ -135,9 +82,7 @@ public void test1() throws Throwable { } value = msg.dot_along; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_along + "' != '" + 72905755 + "'", - value.equals(BigInteger.valueOf(72905755L))); + org.junit.Assert.assertTrue("'" + msg.dot_along + "' != '" + 72905755 + "'", value.equals(BigInteger.valueOf( 72905755L ) ) ); } else { value = value.longValue(); expected = 72905755L; @@ -145,9 +90,7 @@ public void test1() throws Throwable { } value = msg.dot_cross; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_cross + "' != '" + 311886653 + "'", - value.equals(BigInteger.valueOf(311886653L))); + org.junit.Assert.assertTrue("'" + msg.dot_cross + "' != '" + 311886653 + "'", value.equals(BigInteger.valueOf( 311886653L ) ) ); } else { value = value.longValue(); expected = 311886653L; @@ -155,9 +98,7 @@ public void test1() throws Throwable { } value = msg.dot_radial; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_radial + "' != '" + -1111196507 + "'", - value.equals(BigInteger.valueOf(-1111196507L))); + org.junit.Assert.assertTrue("'" + msg.dot_radial + "' != '" + -1111196507 + "'", value.equals(BigInteger.valueOf( -1111196507L ) ) ); } else { value = value.longValue(); expected = -1111196507L; @@ -165,8 +106,7 @@ public void test1() throws Throwable { } value = msg.iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod + "' != '" + 193 + "'", value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.iod + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -174,9 +114,7 @@ public void test1() throws Throwable { } value = msg.iod_ssr; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_ssr + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.iod_ssr + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -184,9 +122,7 @@ public void test1() throws Throwable { } value = msg.radial; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.radial + "' != '" + -24141393 + "'", - value.equals(BigInteger.valueOf(-24141393L))); + org.junit.Assert.assertTrue("'" + msg.radial + "' != '" + -24141393 + "'", value.equals(BigInteger.valueOf( -24141393L ) ) ); } else { value = value.longValue(); expected = -24141393L; @@ -194,9 +130,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -204,8 +138,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -213,9 +146,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 3172954849L + "'", - value.equals(new BigInteger("3172954849"))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 3172954849L + "'", value.equals( new BigInteger( "3172954849" ) ) ); } else { value = value.longValue(); expected = 3172954849L; @@ -223,9 +154,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 7723 + "'", - value.equals(BigInteger.valueOf(7723L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 7723 + "'", value.equals(BigInteger.valueOf( 7723L ) ) ); } else { value = value.longValue(); expected = 7723L; @@ -233,9 +162,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockTest.java b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockTest.java index 817af6f901..c85c2fb2e6 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrOrbitClockTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClock.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrOrbitClock.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrOrbitClock; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrOrbitClockTest { @@ -27,70 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrOrbitClockTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockTest.test1"); - byte[] payload = - new byte[] { - (byte) 83, - (byte) 208, - (byte) 102, - (byte) 207, - (byte) 164, - (byte) 29, - (byte) 203, - (byte) 212, - (byte) 236, - (byte) 255, - (byte) 152, - (byte) 233, - (byte) 207, - (byte) 55, - (byte) 94, - (byte) 54, - (byte) 58, - (byte) 128, - (byte) 68, - (byte) 27, - (byte) 117, - (byte) 176, - (byte) 110, - (byte) 251, - (byte) 61, - (byte) 244, - (byte) 122, - (byte) 50, - (byte) 95, - (byte) 52, - (byte) 144, - (byte) 232, - (byte) 24, - (byte) 10, - (byte) 37, - (byte) 127, - (byte) 163, - (byte) 66, - (byte) 177, - (byte) 105, - (byte) 156, - (byte) 245, - (byte) 10, - (byte) 249, - (byte) 107, - (byte) 218, - (byte) 17, - (byte) 186, - (byte) 56, - (byte) 72, - }; - SBPMessage sbp = new SBPMessage(0xe535, 0x5dd, payload); - MsgSsrOrbitClock msg = new MsgSsrOrbitClock(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrOrbitClockTest.test1"); + byte[] payload = new byte[] {(byte)83,(byte)208,(byte)102,(byte)207,(byte)164,(byte)29,(byte)203,(byte)212,(byte)236,(byte)255,(byte)152,(byte)233,(byte)207,(byte)55,(byte)94,(byte)54,(byte)58,(byte)128,(byte)68,(byte)27,(byte)117,(byte)176,(byte)110,(byte)251,(byte)61,(byte)244,(byte)122,(byte)50,(byte)95,(byte)52,(byte)144,(byte)232,(byte)24,(byte)10,(byte)37,(byte)127,(byte)163,(byte)66,(byte)177,(byte)105,(byte)156,(byte)245,(byte)10,(byte)249,(byte)107,(byte)218,(byte)17,(byte)186,(byte)56,(byte)72, }; + SBPMessage sbp = new SBPMessage( 0xe535, 0x5dd, payload ); + MsgSsrOrbitClock msg = new MsgSsrOrbitClock( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.along; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.along + "' != '" + -1334502588 + "'", - value.equals(BigInteger.valueOf(-1334502588L))); + org.junit.Assert.assertTrue("'" + msg.along + "' != '" + -1334502588 + "'", value.equals(BigInteger.valueOf( -1334502588L ) ) ); } else { value = value.longValue(); expected = -1334502588L; @@ -98,9 +50,7 @@ public void test1() throws Throwable { } value = msg.c0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c0 + "' != '" + -174298703 + "'", - value.equals(BigInteger.valueOf(-174298703L))); + org.junit.Assert.assertTrue("'" + msg.c0 + "' != '" + -174298703 + "'", value.equals(BigInteger.valueOf( -174298703L ) ) ); } else { value = value.longValue(); expected = -174298703L; @@ -108,9 +58,7 @@ public void test1() throws Throwable { } value = msg.c1; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c1 + "' != '" + -630458102 + "'", - value.equals(BigInteger.valueOf(-630458102L))); + org.junit.Assert.assertTrue("'" + msg.c1 + "' != '" + -630458102 + "'", value.equals(BigInteger.valueOf( -630458102L ) ) ); } else { value = value.longValue(); expected = -630458102L; @@ -118,9 +66,7 @@ public void test1() throws Throwable { } value = msg.c2; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.c2 + "' != '" + 1211677201 + "'", - value.equals(BigInteger.valueOf(1211677201L))); + org.junit.Assert.assertTrue("'" + msg.c2 + "' != '" + 1211677201 + "'", value.equals(BigInteger.valueOf( 1211677201L ) ) ); } else { value = value.longValue(); expected = 1211677201L; @@ -128,9 +74,7 @@ public void test1() throws Throwable { } value = msg.cross; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cross + "' != '" + -197264530 + "'", - value.equals(BigInteger.valueOf(-197264530L))); + org.junit.Assert.assertTrue("'" + msg.cross + "' != '" + -197264530 + "'", value.equals(BigInteger.valueOf( -197264530L ) ) ); } else { value = value.longValue(); expected = -197264530L; @@ -138,9 +82,7 @@ public void test1() throws Throwable { } value = msg.dot_along; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_along + "' != '" + 169404560 + "'", - value.equals(BigInteger.valueOf(169404560L))); + org.junit.Assert.assertTrue("'" + msg.dot_along + "' != '" + 169404560 + "'", value.equals(BigInteger.valueOf( 169404560L ) ) ); } else { value = value.longValue(); expected = 169404560L; @@ -148,9 +90,7 @@ public void test1() throws Throwable { } value = msg.dot_cross; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_cross + "' != '" + 1118011173 + "'", - value.equals(BigInteger.valueOf(1118011173L))); + org.junit.Assert.assertTrue("'" + msg.dot_cross + "' != '" + 1118011173 + "'", value.equals(BigInteger.valueOf( 1118011173L ) ) ); } else { value = value.longValue(); expected = 1118011173L; @@ -158,9 +98,7 @@ public void test1() throws Throwable { } value = msg.dot_radial; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dot_radial + "' != '" + 878654074 + "'", - value.equals(BigInteger.valueOf(878654074L))); + org.junit.Assert.assertTrue("'" + msg.dot_radial + "' != '" + 878654074 + "'", value.equals(BigInteger.valueOf( 878654074L ) ) ); } else { value = value.longValue(); expected = 878654074L; @@ -168,9 +106,7 @@ public void test1() throws Throwable { } value = msg.iod; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod + "' != '" + 936372632 + "'", - value.equals(BigInteger.valueOf(936372632L))); + org.junit.Assert.assertTrue("'" + msg.iod + "' != '" + 936372632 + "'", value.equals(BigInteger.valueOf( 936372632L ) ) ); } else { value = value.longValue(); expected = 936372632L; @@ -178,9 +114,7 @@ public void test1() throws Throwable { } value = msg.iod_ssr; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_ssr + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.iod_ssr + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -188,9 +122,7 @@ public void test1() throws Throwable { } value = msg.radial; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.radial + "' != '" + -2143668642 + "'", - value.equals(BigInteger.valueOf(-2143668642L))); + org.junit.Assert.assertTrue("'" + msg.radial + "' != '" + -2143668642 + "'", value.equals(BigInteger.valueOf( -2143668642L ) ) ); } else { value = value.longValue(); expected = -2143668642L; @@ -198,9 +130,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -208,9 +138,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -218,9 +146,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 3479621715L + "'", - value.equals(new BigInteger("3479621715"))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 3479621715L + "'", value.equals( new BigInteger( "3479621715" ) ) ); } else { value = value.longValue(); expected = 3479621715L; @@ -228,9 +154,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 7588 + "'", - value.equals(BigInteger.valueOf(7588L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 7588 + "'", value.equals(BigInteger.valueOf( 7588L ) ) ); } else { value = value.longValue(); expected = 7588L; @@ -238,9 +162,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.java b/java/test/auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.java index 245b3740a6..52ea80df87 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrPhaseBiases.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrPhaseBiases.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrPhaseBiases; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrPhaseBiasesTest { @@ -27,275 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrPhaseBiasesTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.test1"); - byte[] payload = - new byte[] { - (byte) 209, - (byte) 154, - (byte) 144, - (byte) 12, - (byte) 213, - (byte) 164, - (byte) 169, - (byte) 82, - (byte) 177, - (byte) 230, - (byte) 98, - (byte) 209, - (byte) 249, - (byte) 22, - (byte) 17, - (byte) 29, - (byte) 250, - (byte) 245, - (byte) 193, - (byte) 219, - (byte) 30, - (byte) 212, - (byte) 177, - (byte) 207, - (byte) 187, - (byte) 33, - (byte) 146, - (byte) 58, - (byte) 204, - (byte) 164, - (byte) 65, - (byte) 114, - (byte) 49, - (byte) 248, - (byte) 52, - (byte) 8, - (byte) 161, - (byte) 44, - (byte) 252, - (byte) 166, - (byte) 168, - (byte) 232, - (byte) 124, - (byte) 134, - (byte) 86, - (byte) 173, - (byte) 241, - (byte) 174, - (byte) 44, - (byte) 142, - (byte) 155, - (byte) 129, - (byte) 143, - (byte) 184, - (byte) 161, - (byte) 211, - (byte) 15, - (byte) 36, - (byte) 189, - (byte) 208, - (byte) 194, - (byte) 221, - (byte) 152, - (byte) 16, - (byte) 203, - (byte) 87, - (byte) 34, - (byte) 188, - (byte) 141, - (byte) 104, - (byte) 189, - (byte) 102, - (byte) 156, - (byte) 252, - (byte) 22, - (byte) 251, - (byte) 136, - (byte) 49, - (byte) 188, - (byte) 157, - (byte) 222, - (byte) 245, - (byte) 49, - (byte) 132, - (byte) 16, - (byte) 34, - (byte) 142, - (byte) 228, - (byte) 85, - (byte) 139, - (byte) 221, - (byte) 197, - (byte) 235, - (byte) 98, - (byte) 74, - (byte) 107, - (byte) 70, - (byte) 36, - (byte) 38, - (byte) 239, - (byte) 251, - (byte) 112, - (byte) 188, - (byte) 124, - (byte) 246, - (byte) 141, - (byte) 164, - (byte) 150, - (byte) 104, - (byte) 7, - (byte) 213, - (byte) 44, - (byte) 21, - (byte) 244, - (byte) 192, - (byte) 4, - (byte) 143, - (byte) 24, - (byte) 42, - (byte) 21, - (byte) 84, - (byte) 136, - (byte) 7, - (byte) 42, - (byte) 118, - (byte) 45, - (byte) 23, - (byte) 174, - (byte) 175, - (byte) 129, - (byte) 54, - (byte) 169, - (byte) 14, - (byte) 213, - (byte) 2, - (byte) 197, - (byte) 98, - (byte) 60, - (byte) 13, - (byte) 207, - (byte) 105, - (byte) 100, - (byte) 129, - (byte) 72, - (byte) 136, - (byte) 240, - (byte) 140, - (byte) 129, - (byte) 9, - (byte) 114, - (byte) 172, - (byte) 151, - (byte) 150, - (byte) 17, - (byte) 210, - (byte) 127, - (byte) 115, - (byte) 151, - (byte) 3, - (byte) 242, - (byte) 254, - (byte) 215, - (byte) 14, - (byte) 5, - (byte) 34, - (byte) 126, - (byte) 2, - (byte) 215, - (byte) 65, - (byte) 38, - (byte) 176, - (byte) 23, - (byte) 210, - (byte) 201, - (byte) 97, - (byte) 36, - (byte) 207, - (byte) 92, - (byte) 224, - (byte) 26, - (byte) 116, - (byte) 155, - (byte) 211, - (byte) 165, - (byte) 47, - (byte) 102, - (byte) 38, - (byte) 67, - (byte) 199, - (byte) 55, - (byte) 117, - (byte) 36, - (byte) 169, - (byte) 33, - (byte) 1, - (byte) 230, - (byte) 201, - (byte) 183, - (byte) 21, - (byte) 42, - (byte) 62, - (byte) 147, - (byte) 173, - (byte) 173, - (byte) 155, - (byte) 98, - (byte) 146, - (byte) 231, - (byte) 167, - (byte) 138, - (byte) 82, - (byte) 167, - (byte) 127, - (byte) 229, - (byte) 1, - (byte) 2, - (byte) 127, - (byte) 237, - (byte) 207, - (byte) 116, - (byte) 90, - (byte) 115, - (byte) 159, - (byte) 3, - (byte) 42, - (byte) 66, - (byte) 145, - (byte) 250, - (byte) 201, - (byte) 7, - (byte) 251, - (byte) 2, - (byte) 75, - (byte) 230, - (byte) 26, - (byte) 213, - (byte) 181, - (byte) 56, - (byte) 64, - (byte) 97, - (byte) 88, - (byte) 255, - (byte) 6, - (byte) 147, - (byte) 16, - (byte) 89, - (byte) 203, - (byte) 27, - (byte) 68, - (byte) 243, - (byte) 230, - (byte) 55, - (byte) 242, - (byte) 167, - (byte) 169, - }; - SBPMessage sbp = new SBPMessage(0xcedb, 0x5e6, payload); - MsgSsrPhaseBiases msg = new MsgSsrPhaseBiases(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrPhaseBiasesTest.test1"); + byte[] payload = new byte[] {(byte)209,(byte)154,(byte)144,(byte)12,(byte)213,(byte)164,(byte)169,(byte)82,(byte)177,(byte)230,(byte)98,(byte)209,(byte)249,(byte)22,(byte)17,(byte)29,(byte)250,(byte)245,(byte)193,(byte)219,(byte)30,(byte)212,(byte)177,(byte)207,(byte)187,(byte)33,(byte)146,(byte)58,(byte)204,(byte)164,(byte)65,(byte)114,(byte)49,(byte)248,(byte)52,(byte)8,(byte)161,(byte)44,(byte)252,(byte)166,(byte)168,(byte)232,(byte)124,(byte)134,(byte)86,(byte)173,(byte)241,(byte)174,(byte)44,(byte)142,(byte)155,(byte)129,(byte)143,(byte)184,(byte)161,(byte)211,(byte)15,(byte)36,(byte)189,(byte)208,(byte)194,(byte)221,(byte)152,(byte)16,(byte)203,(byte)87,(byte)34,(byte)188,(byte)141,(byte)104,(byte)189,(byte)102,(byte)156,(byte)252,(byte)22,(byte)251,(byte)136,(byte)49,(byte)188,(byte)157,(byte)222,(byte)245,(byte)49,(byte)132,(byte)16,(byte)34,(byte)142,(byte)228,(byte)85,(byte)139,(byte)221,(byte)197,(byte)235,(byte)98,(byte)74,(byte)107,(byte)70,(byte)36,(byte)38,(byte)239,(byte)251,(byte)112,(byte)188,(byte)124,(byte)246,(byte)141,(byte)164,(byte)150,(byte)104,(byte)7,(byte)213,(byte)44,(byte)21,(byte)244,(byte)192,(byte)4,(byte)143,(byte)24,(byte)42,(byte)21,(byte)84,(byte)136,(byte)7,(byte)42,(byte)118,(byte)45,(byte)23,(byte)174,(byte)175,(byte)129,(byte)54,(byte)169,(byte)14,(byte)213,(byte)2,(byte)197,(byte)98,(byte)60,(byte)13,(byte)207,(byte)105,(byte)100,(byte)129,(byte)72,(byte)136,(byte)240,(byte)140,(byte)129,(byte)9,(byte)114,(byte)172,(byte)151,(byte)150,(byte)17,(byte)210,(byte)127,(byte)115,(byte)151,(byte)3,(byte)242,(byte)254,(byte)215,(byte)14,(byte)5,(byte)34,(byte)126,(byte)2,(byte)215,(byte)65,(byte)38,(byte)176,(byte)23,(byte)210,(byte)201,(byte)97,(byte)36,(byte)207,(byte)92,(byte)224,(byte)26,(byte)116,(byte)155,(byte)211,(byte)165,(byte)47,(byte)102,(byte)38,(byte)67,(byte)199,(byte)55,(byte)117,(byte)36,(byte)169,(byte)33,(byte)1,(byte)230,(byte)201,(byte)183,(byte)21,(byte)42,(byte)62,(byte)147,(byte)173,(byte)173,(byte)155,(byte)98,(byte)146,(byte)231,(byte)167,(byte)138,(byte)82,(byte)167,(byte)127,(byte)229,(byte)1,(byte)2,(byte)127,(byte)237,(byte)207,(byte)116,(byte)90,(byte)115,(byte)159,(byte)3,(byte)42,(byte)66,(byte)145,(byte)250,(byte)201,(byte)7,(byte)251,(byte)2,(byte)75,(byte)230,(byte)26,(byte)213,(byte)181,(byte)56,(byte)64,(byte)97,(byte)88,(byte)255,(byte)6,(byte)147,(byte)16,(byte)89,(byte)203,(byte)27,(byte)68,(byte)243,(byte)230,(byte)55,(byte)242,(byte)167,(byte)169, }; + SBPMessage sbp = new SBPMessage( 0xcedb, 0x5e6, payload ); + MsgSsrPhaseBiases msg = new MsgSsrPhaseBiases( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.biases[0].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].bias + "' != '" + -1311498533 + "'", - value.equals(BigInteger.valueOf(-1311498533L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].bias + "' != '" + -1311498533 + "'", value.equals(BigInteger.valueOf( -1311498533L ) ) ); } else { value = value.longValue(); expected = -1311498533L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.biases[0].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].code + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].code + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.biases[0].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].discontinuity_counter + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].discontinuity_counter + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.biases[0].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].integer_indicator + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].integer_indicator + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.biases[0].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[0].widelane_integer_indicator + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.biases[0].widelane_integer_indicator + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.biases[1].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].bias + "' != '" + 1101319226 + "'", - value.equals(BigInteger.valueOf(1101319226L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].bias + "' != '" + 1101319226 + "'", value.equals(BigInteger.valueOf( 1101319226L ) ) ); } else { value = value.longValue(); expected = 1101319226L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.biases[1].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].code + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].code + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.biases[1].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].discontinuity_counter + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].discontinuity_counter + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.biases[1].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].integer_indicator + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].integer_indicator + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.biases[1].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[1].widelane_integer_indicator + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.biases[1].widelane_integer_indicator + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.biases[2].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].bias + "' != '" + -64184056 + "'", - value.equals(BigInteger.valueOf(-64184056L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].bias + "' != '" + -64184056 + "'", value.equals(BigInteger.valueOf( -64184056L ) ) ); } else { value = value.longValue(); expected = -64184056L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.biases[2].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].code + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].code + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.biases[2].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].discontinuity_counter + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].discontinuity_counter + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.biases[2].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].integer_indicator + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].integer_indicator + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.biases[2].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[2].widelane_integer_indicator + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.biases[2].widelane_integer_indicator + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.biases[3].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].bias + "' != '" + -240298362 + "'", - value.equals(BigInteger.valueOf(-240298362L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].bias + "' != '" + -240298362 + "'", value.equals(BigInteger.valueOf( -240298362L ) ) ); } else { value = value.longValue(); expected = -240298362L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.biases[3].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].code + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].code + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.biases[3].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].discontinuity_counter + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].discontinuity_counter + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.biases[3].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].integer_indicator + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].integer_indicator + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.biases[3].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[3].widelane_integer_indicator + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.biases[3].widelane_integer_indicator + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.biases[4].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].bias + "' != '" + -1581740159 + "'", - value.equals(BigInteger.valueOf(-1581740159L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].bias + "' != '" + -1581740159 + "'", value.equals(BigInteger.valueOf( -1581740159L ) ) ); } else { value = value.longValue(); expected = -1581740159L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.biases[4].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].code + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].code + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.biases[4].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].discontinuity_counter + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].discontinuity_counter + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.biases[4].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].integer_indicator + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].integer_indicator + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.biases[4].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[4].widelane_integer_indicator + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.biases[4].widelane_integer_indicator + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.biases[5].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].bias + "' != '" + -1730297136 + "'", - value.equals(BigInteger.valueOf(-1730297136L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].bias + "' != '" + -1730297136 + "'", value.equals(BigInteger.valueOf( -1730297136L ) ) ); } else { value = value.longValue(); expected = -1730297136L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.biases[5].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].code + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].code + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.biases[5].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].discontinuity_counter + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].discontinuity_counter + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.biases[5].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].integer_indicator + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].integer_indicator + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.biases[5].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[5].widelane_integer_indicator + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.biases[5].widelane_integer_indicator + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.biases[6].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].bias + "' != '" + -1117221444 + "'", - value.equals(BigInteger.valueOf(-1117221444L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].bias + "' != '" + -1117221444 + "'", value.equals(BigInteger.valueOf( -1117221444L ) ) ); } else { value = value.longValue(); expected = -1117221444L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.biases[6].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].code + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].code + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.biases[6].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].discontinuity_counter + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].discontinuity_counter + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.biases[6].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].integer_indicator + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].integer_indicator + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.biases[6].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[6].widelane_integer_indicator + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.biases[6].widelane_integer_indicator + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.biases[7].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].bias + "' != '" + -1137604357 + "'", - value.equals(BigInteger.valueOf(-1137604357L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].bias + "' != '" + -1137604357 + "'", value.equals(BigInteger.valueOf( -1137604357L ) ) ); } else { value = value.longValue(); expected = -1137604357L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.biases[7].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].code + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].code + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.biases[7].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].discontinuity_counter + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].discontinuity_counter + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.biases[7].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].integer_indicator + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].integer_indicator + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.biases[7].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[7].widelane_integer_indicator + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.biases[7].widelane_integer_indicator + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.biases[8].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].bias + "' != '" + -1910370172 + "'", - value.equals(BigInteger.valueOf(-1910370172L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].bias + "' != '" + -1910370172 + "'", value.equals(BigInteger.valueOf( -1910370172L ) ) ); } else { value = value.longValue(); expected = -1910370172L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.biases[8].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].code + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].code + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.biases[8].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].discontinuity_counter + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].discontinuity_counter + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.biases[8].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].integer_indicator + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].integer_indicator + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.biases[8].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[8].widelane_integer_indicator + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.biases[8].widelane_integer_indicator + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.biases[9].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].bias + "' != '" + 1247996869 + "'", - value.equals(BigInteger.valueOf(1247996869L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].bias + "' != '" + 1247996869 + "'", value.equals(BigInteger.valueOf( 1247996869L ) ) ); } else { value = value.longValue(); expected = 1247996869L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.biases[9].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].code + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].code + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.biases[9].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].discontinuity_counter + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].discontinuity_counter + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.biases[9].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].integer_indicator + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].integer_indicator + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.biases[9].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[9].widelane_integer_indicator + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.biases[9].widelane_integer_indicator + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.biases[10].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].bias + "' != '" + -1133446161 + "'", - value.equals(BigInteger.valueOf(-1133446161L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].bias + "' != '" + -1133446161 + "'", value.equals(BigInteger.valueOf( -1133446161L ) ) ); } else { value = value.longValue(); expected = -1133446161L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.biases[10].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].code + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].code + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.biases[10].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].discontinuity_counter + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].discontinuity_counter + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.biases[10].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].integer_indicator + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].integer_indicator + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.biases[10].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[10].widelane_integer_indicator + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.biases[10].widelane_integer_indicator + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.biases[11].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].bias + "' != '" + -720934762 + "'", - value.equals(BigInteger.valueOf(-720934762L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].bias + "' != '" + -720934762 + "'", value.equals(BigInteger.valueOf( -720934762L ) ) ); } else { value = value.longValue(); expected = -720934762L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.biases[11].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].code + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].code + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.biases[11].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].discontinuity_counter + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].discontinuity_counter + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.biases[11].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].integer_indicator + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].integer_indicator + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.biases[11].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[11].widelane_integer_indicator + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.biases[11].widelane_integer_indicator + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.biases[12].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].bias + "' != '" + 706252548 + "'", - value.equals(BigInteger.valueOf(706252548L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].bias + "' != '" + 706252548 + "'", value.equals(BigInteger.valueOf( 706252548L ) ) ); } else { value = value.longValue(); expected = 706252548L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.biases[12].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].code + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].code + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.biases[12].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].discontinuity_counter + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].discontinuity_counter + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.biases[12].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].integer_indicator + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].integer_indicator + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.biases[12].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[12].widelane_integer_indicator + "' != '" + 244 + "'", - value.equals(BigInteger.valueOf(244L))); + org.junit.Assert.assertTrue("'" + msg.biases[12].widelane_integer_indicator + "' != '" + 244 + "'", value.equals(BigInteger.valueOf( 244L ) ) ); } else { value = value.longValue(); expected = 244L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.biases[13].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].bias + "' != '" + 388855338 + "'", - value.equals(BigInteger.valueOf(388855338L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].bias + "' != '" + 388855338 + "'", value.equals(BigInteger.valueOf( 388855338L ) ) ); } else { value = value.longValue(); expected = 388855338L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.biases[13].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].code + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].code + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.biases[13].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].discontinuity_counter + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].discontinuity_counter + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.biases[13].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].integer_indicator + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].integer_indicator + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.biases[13].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[13].widelane_integer_indicator + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.biases[13].widelane_integer_indicator + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.biases[14].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].bias + "' != '" + 47517353 + "'", - value.equals(BigInteger.valueOf(47517353L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].bias + "' != '" + 47517353 + "'", value.equals(BigInteger.valueOf( 47517353L ) ) ); } else { value = value.longValue(); expected = 47517353L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.biases[14].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].code + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].code + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.biases[14].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].discontinuity_counter + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].discontinuity_counter + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.biases[14].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].integer_indicator + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].integer_indicator + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.biases[14].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[14].widelane_integer_indicator + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.biases[14].widelane_integer_indicator + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.biases[15].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].bias + "' != '" + -2124125745 + "'", - value.equals(BigInteger.valueOf(-2124125745L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].bias + "' != '" + -2124125745 + "'", value.equals(BigInteger.valueOf( -2124125745L ) ) ); } else { value = value.longValue(); expected = -2124125745L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.biases[15].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].code + "' != '" + 197 + "'", - value.equals(BigInteger.valueOf(197L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].code + "' != '" + 197 + "'", value.equals(BigInteger.valueOf( 197L ) ) ); } else { value = value.longValue(); expected = 197L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.biases[15].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].discontinuity_counter + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].discontinuity_counter + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.biases[15].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].integer_indicator + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].integer_indicator + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.biases[15].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[15].widelane_integer_indicator + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.biases[15].widelane_integer_indicator + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.biases[16].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].bias + "' != '" + -1401812607 + "'", - value.equals(BigInteger.valueOf(-1401812607L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].bias + "' != '" + -1401812607 + "'", value.equals(BigInteger.valueOf( -1401812607L ) ) ); } else { value = value.longValue(); expected = -1401812607L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.biases[16].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].code + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].code + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.biases[16].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].discontinuity_counter + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].discontinuity_counter + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.biases[16].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].integer_indicator + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].integer_indicator + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.biases[16].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[16].widelane_integer_indicator + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.biases[16].widelane_integer_indicator + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.biases[17].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].bias + "' != '" + 60257151 + "'", - value.equals(BigInteger.valueOf(60257151L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].bias + "' != '" + 60257151 + "'", value.equals(BigInteger.valueOf( 60257151L ) ) ); } else { value = value.longValue(); expected = 60257151L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.biases[17].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].code + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].code + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.biases[17].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].discontinuity_counter + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].discontinuity_counter + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.biases[17].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].integer_indicator + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].integer_indicator + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.biases[17].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[17].widelane_integer_indicator + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.biases[17].widelane_integer_indicator + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.biases[18].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].bias + "' != '" + 41820677 + "'", - value.equals(BigInteger.valueOf(41820677L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].bias + "' != '" + 41820677 + "'", value.equals(BigInteger.valueOf( 41820677L ) ) ); } else { value = value.longValue(); expected = 41820677L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.biases[18].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].code + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].code + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.biases[18].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].discontinuity_counter + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].discontinuity_counter + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.biases[18].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].integer_indicator + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].integer_indicator + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.biases[18].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[18].widelane_integer_indicator + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.biases[18].widelane_integer_indicator + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.biases[19].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].bias + "' != '" + 1640616471 + "'", - value.equals(BigInteger.valueOf(1640616471L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].bias + "' != '" + 1640616471 + "'", value.equals(BigInteger.valueOf( 1640616471L ) ) ); } else { value = value.longValue(); expected = 1640616471L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.biases[19].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].code + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].code + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.biases[19].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].discontinuity_counter + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].discontinuity_counter + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.biases[19].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].integer_indicator + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].integer_indicator + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.biases[19].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[19].widelane_integer_indicator + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.biases[19].widelane_integer_indicator + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.biases[20].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].bias + "' != '" + -744786918 + "'", - value.equals(BigInteger.valueOf(-744786918L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].bias + "' != '" + -744786918 + "'", value.equals(BigInteger.valueOf( -744786918L ) ) ); } else { value = value.longValue(); expected = -744786918L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.biases[20].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].code + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].code + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.biases[20].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].discontinuity_counter + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].discontinuity_counter + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.biases[20].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].integer_indicator + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].integer_indicator + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.biases[20].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[20].widelane_integer_indicator + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.biases[20].widelane_integer_indicator + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.biases[21].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].bias + "' != '" + 1966589763 + "'", - value.equals(BigInteger.valueOf(1966589763L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].bias + "' != '" + 1966589763 + "'", value.equals(BigInteger.valueOf( 1966589763L ) ) ); } else { value = value.longValue(); expected = 1966589763L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.biases[21].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].code + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].code + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.biases[21].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].discontinuity_counter + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].discontinuity_counter + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.biases[21].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].integer_indicator + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].integer_indicator + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.biases[21].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[21].widelane_integer_indicator + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.biases[21].widelane_integer_indicator + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.biases[22].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].bias + "' != '" + 364366310 + "'", - value.equals(BigInteger.valueOf(364366310L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].bias + "' != '" + 364366310 + "'", value.equals(BigInteger.valueOf( 364366310L ) ) ); } else { value = value.longValue(); expected = 364366310L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.biases[22].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].code + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].code + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.biases[22].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].discontinuity_counter + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].discontinuity_counter + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.biases[22].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].integer_indicator + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].integer_indicator + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.biases[22].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[22].widelane_integer_indicator + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.biases[22].widelane_integer_indicator + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.biases[23].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].bias + "' != '" + -1839031379 + "'", - value.equals(BigInteger.valueOf(-1839031379L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].bias + "' != '" + -1839031379 + "'", value.equals(BigInteger.valueOf( -1839031379L ) ) ); } else { value = value.longValue(); expected = -1839031379L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.biases[23].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].code + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].code + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.biases[23].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].discontinuity_counter + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].discontinuity_counter + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.biases[23].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].integer_indicator + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].integer_indicator + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.biases[23].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[23].widelane_integer_indicator + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.biases[23].widelane_integer_indicator + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.biases[24].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].bias + "' != '" + 31817639 + "'", - value.equals(BigInteger.valueOf(31817639L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].bias + "' != '" + 31817639 + "'", value.equals(BigInteger.valueOf( 31817639L ) ) ); } else { value = value.longValue(); expected = 31817639L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.biases[24].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].code + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].code + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.biases[24].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].discontinuity_counter + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].discontinuity_counter + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.biases[24].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].integer_indicator + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].integer_indicator + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.biases[24].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[24].widelane_integer_indicator + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.biases[24].widelane_integer_indicator + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.biases[25].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].bias + "' != '" + -1619830156 + "'", - value.equals(BigInteger.valueOf(-1619830156L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].bias + "' != '" + -1619830156 + "'", value.equals(BigInteger.valueOf( -1619830156L ) ) ); } else { value = value.longValue(); expected = -1619830156L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.biases[25].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].code + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].code + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.biases[25].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].discontinuity_counter + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].discontinuity_counter + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.biases[25].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].integer_indicator + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].integer_indicator + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.biases[25].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[25].widelane_integer_indicator + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.biases[25].widelane_integer_indicator + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.biases[26].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].bias + "' != '" + -83375622 + "'", - value.equals(BigInteger.valueOf(-83375622L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].bias + "' != '" + -83375622 + "'", value.equals(BigInteger.valueOf( -83375622L ) ) ); } else { value = value.longValue(); expected = -83375622L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.biases[26].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.biases[26].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].discontinuity_counter + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].discontinuity_counter + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.biases[26].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].integer_indicator + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].integer_indicator + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.biases[26].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[26].widelane_integer_indicator + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.biases[26].widelane_integer_indicator + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.biases[27].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].bias + "' != '" + 1077458389 + "'", - value.equals(BigInteger.valueOf(1077458389L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].bias + "' != '" + 1077458389 + "'", value.equals(BigInteger.valueOf( 1077458389L ) ) ); } else { value = value.longValue(); expected = 1077458389L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.biases[27].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].code + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].code + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.biases[27].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].discontinuity_counter + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].discontinuity_counter + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.biases[27].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].integer_indicator + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].integer_indicator + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.biases[27].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[27].widelane_integer_indicator + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.biases[27].widelane_integer_indicator + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.biases[28].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].bias + "' != '" + -883355501 + "'", - value.equals(BigInteger.valueOf(-883355501L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].bias + "' != '" + -883355501 + "'", value.equals(BigInteger.valueOf( -883355501L ) ) ); } else { value = value.longValue(); expected = -883355501L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.biases[28].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].code + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].code + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.biases[28].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].discontinuity_counter + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].discontinuity_counter + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.biases[28].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].integer_indicator + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].integer_indicator + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.biases[28].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[28].widelane_integer_indicator + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.biases[28].widelane_integer_indicator + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.biases[29].bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].bias + "' != '" + -1448611273 + "'", - value.equals(BigInteger.valueOf(-1448611273L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].bias + "' != '" + -1448611273 + "'", value.equals(BigInteger.valueOf( -1448611273L ) ) ); } else { value = value.longValue(); expected = -1448611273L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.biases[29].code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].code + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].code + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.biases[29].discontinuity_counter; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].discontinuity_counter + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].discontinuity_counter + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.biases[29].integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].integer_indicator + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].integer_indicator + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.biases[29].widelane_integer_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.biases[29].widelane_integer_indicator + "' != '" + 243 + "'", - value.equals(BigInteger.valueOf(243L))); + org.junit.Assert.assertTrue("'" + msg.biases[29].widelane_integer_indicator + "' != '" + 243 + "'", value.equals(BigInteger.valueOf( 243L ) ) ); } else { value = value.longValue(); expected = 243L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.dispersive_bias; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.dispersive_bias + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.dispersive_bias + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.iod_ssr; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_ssr + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.iod_ssr + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.mw_consistency; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.mw_consistency + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.mw_consistency + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 210803409 + "'", - value.equals(BigInteger.valueOf(210803409L))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 210803409 + "'", value.equals(BigInteger.valueOf( 210803409L ) ) ); } else { value = value.longValue(); expected = 210803409L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 42197 + "'", - value.equals(BigInteger.valueOf(42197L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 42197 + "'", value.equals(BigInteger.valueOf( 42197L ) ) ); } else { value = value.longValue(); expected = 42197L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1873,8 +1306,7 @@ public void test1() throws Throwable { } value = msg.yaw; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.yaw + "' != '" + 5881 + "'", value.equals(BigInteger.valueOf(5881L))); + org.junit.Assert.assertTrue("'" + msg.yaw + "' != '" + 5881 + "'", value.equals(BigInteger.valueOf( 5881L ) ) ); } else { value = value.longValue(); expected = 5881L; @@ -1882,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.yaw_rate; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.yaw_rate + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.yaw_rate + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest.java index c5253edc1c..7d60b96d77 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrSatelliteApcDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrSatelliteApcDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrSatelliteApcDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest { @@ -30,243 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrSatelliteApcDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 203, - (byte) 169, - (byte) 240, - (byte) 78, - (byte) 4, - (byte) 213, - (byte) 171, - (byte) 254, - (byte) 214, - (byte) 212, - (byte) 4, - (byte) 8, - (byte) 33, - (byte) 31, - (byte) 80, - (byte) 21, - (byte) 4, - (byte) 105, - (byte) 225, - (byte) 39, - (byte) 139, - (byte) 124, - (byte) 149, - (byte) 48, - (byte) 15, - (byte) 214, - (byte) 197, - (byte) 141, - (byte) 32, - (byte) 33, - (byte) 135, - (byte) 150, - (byte) 148, - (byte) 123, - (byte) 49, - (byte) 135, - (byte) 97, - (byte) 39, - (byte) 90, - (byte) 20, - (byte) 169, - (byte) 239, - (byte) 47, - (byte) 153, - (byte) 175, - (byte) 35, - (byte) 145, - (byte) 145, - (byte) 123, - (byte) 194, - (byte) 2, - (byte) 102, - (byte) 74, - (byte) 149, - (byte) 95, - (byte) 171, - (byte) 238, - (byte) 249, - (byte) 7, - (byte) 237, - (byte) 170, - (byte) 125, - (byte) 106, - (byte) 158, - (byte) 83, - (byte) 188, - (byte) 181, - (byte) 194, - (byte) 27, - (byte) 84, - (byte) 226, - (byte) 142, - (byte) 123, - (byte) 77, - (byte) 217, - (byte) 248, - (byte) 67, - (byte) 215, - (byte) 129, - (byte) 114, - (byte) 138, - (byte) 25, - (byte) 240, - (byte) 10, - (byte) 56, - (byte) 76, - (byte) 61, - (byte) 161, - (byte) 216, - (byte) 22, - (byte) 181, - (byte) 174, - (byte) 33, - (byte) 13, - (byte) 252, - (byte) 236, - (byte) 230, - (byte) 196, - (byte) 128, - (byte) 215, - (byte) 239, - (byte) 234, - (byte) 179, - (byte) 220, - (byte) 44, - (byte) 212, - (byte) 57, - (byte) 44, - (byte) 173, - (byte) 49, - (byte) 36, - (byte) 137, - (byte) 248, - (byte) 235, - (byte) 97, - (byte) 112, - (byte) 157, - (byte) 139, - (byte) 26, - (byte) 115, - (byte) 192, - (byte) 31, - (byte) 85, - (byte) 127, - (byte) 228, - (byte) 81, - (byte) 252, - (byte) 219, - (byte) 249, - (byte) 110, - (byte) 147, - (byte) 8, - (byte) 161, - (byte) 215, - (byte) 212, - (byte) 180, - (byte) 25, - (byte) 83, - (byte) 144, - (byte) 247, - (byte) 12, - (byte) 27, - (byte) 199, - (byte) 173, - (byte) 74, - (byte) 23, - (byte) 4, - (byte) 239, - (byte) 103, - (byte) 223, - (byte) 220, - (byte) 139, - (byte) 91, - (byte) 127, - (byte) 214, - (byte) 86, - (byte) 48, - (byte) 203, - (byte) 228, - (byte) 99, - (byte) 45, - (byte) 83, - (byte) 159, - (byte) 11, - (byte) 250, - (byte) 135, - (byte) 170, - (byte) 42, - (byte) 217, - (byte) 199, - (byte) 233, - (byte) 42, - (byte) 170, - (byte) 78, - (byte) 206, - (byte) 41, - (byte) 43, - (byte) 81, - (byte) 247, - (byte) 99, - (byte) 198, - (byte) 144, - (byte) 2, - (byte) 132, - (byte) 2, - (byte) 224, - (byte) 220, - (byte) 148, - (byte) 58, - (byte) 85, - (byte) 138, - (byte) 210, - (byte) 200, - (byte) 158, - (byte) 7, - (byte) 158, - (byte) 67, - (byte) 46, - (byte) 200, - (byte) 132, - (byte) 118, - (byte) 241, - (byte) 13, - (byte) 37, - (byte) 62, - (byte) 107, - (byte) 253, - (byte) 190, - (byte) 136, - (byte) 66, - (byte) 9, - (byte) 84, - (byte) 155, - (byte) 86, - (byte) 180, - (byte) 41, - (byte) 196, - (byte) 40, - (byte) 119, - (byte) 101, - (byte) 252, - (byte) 223, - (byte) 144, - (byte) 153, - }; - SBPMessage sbp = new SBPMessage(0x1338, 0x604, payload); - MsgSsrSatelliteApcDep msg = new MsgSsrSatelliteApcDep(sbp); + byte[] payload = new byte[] {(byte)203,(byte)169,(byte)240,(byte)78,(byte)4,(byte)213,(byte)171,(byte)254,(byte)214,(byte)212,(byte)4,(byte)8,(byte)33,(byte)31,(byte)80,(byte)21,(byte)4,(byte)105,(byte)225,(byte)39,(byte)139,(byte)124,(byte)149,(byte)48,(byte)15,(byte)214,(byte)197,(byte)141,(byte)32,(byte)33,(byte)135,(byte)150,(byte)148,(byte)123,(byte)49,(byte)135,(byte)97,(byte)39,(byte)90,(byte)20,(byte)169,(byte)239,(byte)47,(byte)153,(byte)175,(byte)35,(byte)145,(byte)145,(byte)123,(byte)194,(byte)2,(byte)102,(byte)74,(byte)149,(byte)95,(byte)171,(byte)238,(byte)249,(byte)7,(byte)237,(byte)170,(byte)125,(byte)106,(byte)158,(byte)83,(byte)188,(byte)181,(byte)194,(byte)27,(byte)84,(byte)226,(byte)142,(byte)123,(byte)77,(byte)217,(byte)248,(byte)67,(byte)215,(byte)129,(byte)114,(byte)138,(byte)25,(byte)240,(byte)10,(byte)56,(byte)76,(byte)61,(byte)161,(byte)216,(byte)22,(byte)181,(byte)174,(byte)33,(byte)13,(byte)252,(byte)236,(byte)230,(byte)196,(byte)128,(byte)215,(byte)239,(byte)234,(byte)179,(byte)220,(byte)44,(byte)212,(byte)57,(byte)44,(byte)173,(byte)49,(byte)36,(byte)137,(byte)248,(byte)235,(byte)97,(byte)112,(byte)157,(byte)139,(byte)26,(byte)115,(byte)192,(byte)31,(byte)85,(byte)127,(byte)228,(byte)81,(byte)252,(byte)219,(byte)249,(byte)110,(byte)147,(byte)8,(byte)161,(byte)215,(byte)212,(byte)180,(byte)25,(byte)83,(byte)144,(byte)247,(byte)12,(byte)27,(byte)199,(byte)173,(byte)74,(byte)23,(byte)4,(byte)239,(byte)103,(byte)223,(byte)220,(byte)139,(byte)91,(byte)127,(byte)214,(byte)86,(byte)48,(byte)203,(byte)228,(byte)99,(byte)45,(byte)83,(byte)159,(byte)11,(byte)250,(byte)135,(byte)170,(byte)42,(byte)217,(byte)199,(byte)233,(byte)42,(byte)170,(byte)78,(byte)206,(byte)41,(byte)43,(byte)81,(byte)247,(byte)99,(byte)198,(byte)144,(byte)2,(byte)132,(byte)2,(byte)224,(byte)220,(byte)148,(byte)58,(byte)85,(byte)138,(byte)210,(byte)200,(byte)158,(byte)7,(byte)158,(byte)67,(byte)46,(byte)200,(byte)132,(byte)118,(byte)241,(byte)13,(byte)37,(byte)62,(byte)107,(byte)253,(byte)190,(byte)136,(byte)66,(byte)9,(byte)84,(byte)155,(byte)86,(byte)180,(byte)41,(byte)196,(byte)40,(byte)119,(byte)101,(byte)252,(byte)223,(byte)144,(byte)153, }; + SBPMessage sbp = new SBPMessage( 0x1338, 0x604, payload ); + MsgSsrSatelliteApcDep msg = new MsgSsrSatelliteApcDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.apc[0].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[0] + "' != '" + -21547 + "'", - value.equals(BigInteger.valueOf(-21547L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[0] + "' != '" + -21547 + "'", value.equals(BigInteger.valueOf( -21547L ) ) ); } else { value = value.longValue(); expected = -21547L; @@ -274,9 +50,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[1] + "' != '" + -10498 + "'", - value.equals(BigInteger.valueOf(-10498L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[1] + "' != '" + -10498 + "'", value.equals(BigInteger.valueOf( -10498L ) ) ); } else { value = value.longValue(); expected = -10498L; @@ -284,9 +58,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[2] + "' != '" + 1236 + "'", - value.equals(BigInteger.valueOf(1236L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[2] + "' != '" + 1236 + "'", value.equals(BigInteger.valueOf( 1236L ) ) ); } else { value = value.longValue(); expected = 1236L; @@ -294,9 +66,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[0] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[0] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -304,9 +74,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[1] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[1] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -314,9 +82,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[2] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[2] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -324,9 +90,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[3] + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[3] + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -334,9 +98,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[4] + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[4] + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -344,9 +106,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[5] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[5] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -354,9 +114,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[6] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[6] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -364,9 +122,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[7] + "' != '" + -31 + "'", - value.equals(BigInteger.valueOf(-31L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[7] + "' != '" + -31 + "'", value.equals(BigInteger.valueOf( -31L ) ) ); } else { value = value.longValue(); expected = -31L; @@ -374,9 +130,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[8] + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[8] + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -384,9 +138,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[9] + "' != '" + -117 + "'", - value.equals(BigInteger.valueOf(-117L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[9] + "' != '" + -117 + "'", value.equals(BigInteger.valueOf( -117L ) ) ); } else { value = value.longValue(); expected = -117L; @@ -394,9 +146,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[10] + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[10] + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -404,9 +154,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[11] + "' != '" + -107 + "'", - value.equals(BigInteger.valueOf(-107L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[11] + "' != '" + -107 + "'", value.equals(BigInteger.valueOf( -107L ) ) ); } else { value = value.longValue(); expected = -107L; @@ -414,9 +162,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[12] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[12] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -424,9 +170,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[13] + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[13] + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -434,9 +178,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[14] + "' != '" + -42 + "'", - value.equals(BigInteger.valueOf(-42L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[14] + "' != '" + -42 + "'", value.equals(BigInteger.valueOf( -42L ) ) ); } else { value = value.longValue(); expected = -42L; @@ -444,9 +186,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[15] + "' != '" + -59 + "'", - value.equals(BigInteger.valueOf(-59L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[15] + "' != '" + -59 + "'", value.equals(BigInteger.valueOf( -59L ) ) ); } else { value = value.longValue(); expected = -59L; @@ -454,9 +194,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[16] + "' != '" + -115 + "'", - value.equals(BigInteger.valueOf(-115L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[16] + "' != '" + -115 + "'", value.equals(BigInteger.valueOf( -115L ) ) ); } else { value = value.longValue(); expected = -115L; @@ -464,9 +202,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[17] + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[17] + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -474,9 +210,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[18] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[18] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -484,9 +218,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[19] + "' != '" + -121 + "'", - value.equals(BigInteger.valueOf(-121L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[19] + "' != '" + -121 + "'", value.equals(BigInteger.valueOf( -121L ) ) ); } else { value = value.longValue(); expected = -121L; @@ -494,9 +226,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[20] + "' != '" + -106 + "'", - value.equals(BigInteger.valueOf(-106L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[20] + "' != '" + -106 + "'", value.equals(BigInteger.valueOf( -106L ) ) ); } else { value = value.longValue(); expected = -106L; @@ -504,9 +234,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sat_info + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sat_info + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -514,9 +242,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sid.code + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sid.code + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -524,9 +250,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -534,9 +258,7 @@ public void test1() throws Throwable { } value = msg.apc[0].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].svn + "' != '" + 1102 + "'", - value.equals(BigInteger.valueOf(1102L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].svn + "' != '" + 1102 + "'", value.equals(BigInteger.valueOf( 1102L ) ) ); } else { value = value.longValue(); expected = 1102L; @@ -544,9 +266,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pco[0] + "' != '" + 23079 + "'", - value.equals(BigInteger.valueOf(23079L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pco[0] + "' != '" + 23079 + "'", value.equals(BigInteger.valueOf( 23079L ) ) ); } else { value = value.longValue(); expected = 23079L; @@ -554,9 +274,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pco[1] + "' != '" + -22252 + "'", - value.equals(BigInteger.valueOf(-22252L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pco[1] + "' != '" + -22252 + "'", value.equals(BigInteger.valueOf( -22252L ) ) ); } else { value = value.longValue(); expected = -22252L; @@ -564,9 +282,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pco[2] + "' != '" + 12271 + "'", - value.equals(BigInteger.valueOf(12271L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pco[2] + "' != '" + 12271 + "'", value.equals(BigInteger.valueOf( 12271L ) ) ); } else { value = value.longValue(); expected = 12271L; @@ -574,9 +290,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[0] + "' != '" + -103 + "'", - value.equals(BigInteger.valueOf(-103L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[0] + "' != '" + -103 + "'", value.equals(BigInteger.valueOf( -103L ) ) ); } else { value = value.longValue(); expected = -103L; @@ -584,9 +298,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[1] + "' != '" + -81 + "'", - value.equals(BigInteger.valueOf(-81L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[1] + "' != '" + -81 + "'", value.equals(BigInteger.valueOf( -81L ) ) ); } else { value = value.longValue(); expected = -81L; @@ -594,9 +306,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[2] + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[2] + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -604,9 +314,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[3] + "' != '" + -111 + "'", - value.equals(BigInteger.valueOf(-111L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[3] + "' != '" + -111 + "'", value.equals(BigInteger.valueOf( -111L ) ) ); } else { value = value.longValue(); expected = -111L; @@ -614,9 +322,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[4] + "' != '" + -111 + "'", - value.equals(BigInteger.valueOf(-111L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[4] + "' != '" + -111 + "'", value.equals(BigInteger.valueOf( -111L ) ) ); } else { value = value.longValue(); expected = -111L; @@ -624,9 +330,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[5] + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[5] + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -634,9 +338,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[6] + "' != '" + -62 + "'", - value.equals(BigInteger.valueOf(-62L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[6] + "' != '" + -62 + "'", value.equals(BigInteger.valueOf( -62L ) ) ); } else { value = value.longValue(); expected = -62L; @@ -644,9 +346,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[7] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[7] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -654,9 +354,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[8] + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[8] + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -664,9 +362,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[9] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[9] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -674,9 +370,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[10] + "' != '" + -107 + "'", - value.equals(BigInteger.valueOf(-107L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[10] + "' != '" + -107 + "'", value.equals(BigInteger.valueOf( -107L ) ) ); } else { value = value.longValue(); expected = -107L; @@ -684,9 +378,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[11] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[11] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -694,9 +386,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[12] + "' != '" + -85 + "'", - value.equals(BigInteger.valueOf(-85L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[12] + "' != '" + -85 + "'", value.equals(BigInteger.valueOf( -85L ) ) ); } else { value = value.longValue(); expected = -85L; @@ -704,9 +394,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[13] + "' != '" + -18 + "'", - value.equals(BigInteger.valueOf(-18L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[13] + "' != '" + -18 + "'", value.equals(BigInteger.valueOf( -18L ) ) ); } else { value = value.longValue(); expected = -18L; @@ -714,9 +402,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[14] + "' != '" + -7 + "'", - value.equals(BigInteger.valueOf(-7L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[14] + "' != '" + -7 + "'", value.equals(BigInteger.valueOf( -7L ) ) ); } else { value = value.longValue(); expected = -7L; @@ -724,9 +410,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[15] + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[15] + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -734,9 +418,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[16] + "' != '" + -19 + "'", - value.equals(BigInteger.valueOf(-19L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[16] + "' != '" + -19 + "'", value.equals(BigInteger.valueOf( -19L ) ) ); } else { value = value.longValue(); expected = -19L; @@ -744,9 +426,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[17] + "' != '" + -86 + "'", - value.equals(BigInteger.valueOf(-86L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[17] + "' != '" + -86 + "'", value.equals(BigInteger.valueOf( -86L ) ) ); } else { value = value.longValue(); expected = -86L; @@ -754,9 +434,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[18] + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[18] + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -764,9 +442,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[19] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[19] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -774,9 +450,7 @@ public void test1() throws Throwable { } value = msg.apc[1].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].pcv[20] + "' != '" + -98 + "'", - value.equals(BigInteger.valueOf(-98L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].pcv[20] + "' != '" + -98 + "'", value.equals(BigInteger.valueOf( -98L ) ) ); } else { value = value.longValue(); expected = -98L; @@ -784,9 +458,7 @@ public void test1() throws Throwable { } value = msg.apc[1].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].sat_info + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].sat_info + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -794,9 +466,7 @@ public void test1() throws Throwable { } value = msg.apc[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].sid.code + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].sid.code + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -804,9 +474,7 @@ public void test1() throws Throwable { } value = msg.apc[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].sid.sat + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].sid.sat + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -814,9 +482,7 @@ public void test1() throws Throwable { } value = msg.apc[1].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[1].svn + "' != '" + 24967 + "'", - value.equals(BigInteger.valueOf(24967L))); + org.junit.Assert.assertTrue("'" + msg.apc[1].svn + "' != '" + 24967 + "'", value.equals(BigInteger.valueOf( 24967L ) ) ); } else { value = value.longValue(); expected = 24967L; @@ -824,9 +490,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pco[0] + "' != '" + -7596 + "'", - value.equals(BigInteger.valueOf(-7596L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pco[0] + "' != '" + -7596 + "'", value.equals(BigInteger.valueOf( -7596L ) ) ); } else { value = value.longValue(); expected = -7596L; @@ -834,9 +498,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pco[1] + "' != '" + 31630 + "'", - value.equals(BigInteger.valueOf(31630L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pco[1] + "' != '" + 31630 + "'", value.equals(BigInteger.valueOf( 31630L ) ) ); } else { value = value.longValue(); expected = 31630L; @@ -844,9 +506,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pco[2] + "' != '" + -9907 + "'", - value.equals(BigInteger.valueOf(-9907L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pco[2] + "' != '" + -9907 + "'", value.equals(BigInteger.valueOf( -9907L ) ) ); } else { value = value.longValue(); expected = -9907L; @@ -854,9 +514,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[0] + "' != '" + -8 + "'", - value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[0] + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -864,9 +522,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[1] + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[1] + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -874,9 +530,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[2] + "' != '" + -41 + "'", - value.equals(BigInteger.valueOf(-41L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[2] + "' != '" + -41 + "'", value.equals(BigInteger.valueOf( -41L ) ) ); } else { value = value.longValue(); expected = -41L; @@ -884,9 +538,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[3] + "' != '" + -127 + "'", - value.equals(BigInteger.valueOf(-127L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[3] + "' != '" + -127 + "'", value.equals(BigInteger.valueOf( -127L ) ) ); } else { value = value.longValue(); expected = -127L; @@ -894,9 +546,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[4] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[4] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -904,9 +554,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[5] + "' != '" + -118 + "'", - value.equals(BigInteger.valueOf(-118L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[5] + "' != '" + -118 + "'", value.equals(BigInteger.valueOf( -118L ) ) ); } else { value = value.longValue(); expected = -118L; @@ -914,9 +562,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[6] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[6] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -924,9 +570,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[7] + "' != '" + -16 + "'", - value.equals(BigInteger.valueOf(-16L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[7] + "' != '" + -16 + "'", value.equals(BigInteger.valueOf( -16L ) ) ); } else { value = value.longValue(); expected = -16L; @@ -934,9 +578,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[8] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[8] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -944,9 +586,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[9] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[9] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -954,9 +594,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[10] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[10] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -964,9 +602,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[11] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[11] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -974,9 +610,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[12] + "' != '" + -95 + "'", - value.equals(BigInteger.valueOf(-95L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[12] + "' != '" + -95 + "'", value.equals(BigInteger.valueOf( -95L ) ) ); } else { value = value.longValue(); expected = -95L; @@ -984,9 +618,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[13] + "' != '" + -40 + "'", - value.equals(BigInteger.valueOf(-40L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[13] + "' != '" + -40 + "'", value.equals(BigInteger.valueOf( -40L ) ) ); } else { value = value.longValue(); expected = -40L; @@ -994,9 +626,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[14] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[14] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1004,9 +634,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[15] + "' != '" + -75 + "'", - value.equals(BigInteger.valueOf(-75L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[15] + "' != '" + -75 + "'", value.equals(BigInteger.valueOf( -75L ) ) ); } else { value = value.longValue(); expected = -75L; @@ -1014,9 +642,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[16] + "' != '" + -82 + "'", - value.equals(BigInteger.valueOf(-82L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[16] + "' != '" + -82 + "'", value.equals(BigInteger.valueOf( -82L ) ) ); } else { value = value.longValue(); expected = -82L; @@ -1024,9 +650,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[17] + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[17] + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1034,9 +658,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[18] + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[18] + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -1044,9 +666,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[19] + "' != '" + -4 + "'", - value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[19] + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -1054,9 +674,7 @@ public void test1() throws Throwable { } value = msg.apc[2].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].pcv[20] + "' != '" + -20 + "'", - value.equals(BigInteger.valueOf(-20L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].pcv[20] + "' != '" + -20 + "'", value.equals(BigInteger.valueOf( -20L ) ) ); } else { value = value.longValue(); expected = -20L; @@ -1064,9 +682,7 @@ public void test1() throws Throwable { } value = msg.apc[2].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].sat_info + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].sat_info + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1074,9 +690,7 @@ public void test1() throws Throwable { } value = msg.apc[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].sid.code + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].sid.code + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1084,9 +698,7 @@ public void test1() throws Throwable { } value = msg.apc[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].sid.sat + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].sid.sat + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1094,9 +706,7 @@ public void test1() throws Throwable { } value = msg.apc[2].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[2].svn + "' != '" + 7106 + "'", - value.equals(BigInteger.valueOf(7106L))); + org.junit.Assert.assertTrue("'" + msg.apc[2].svn + "' != '" + 7106 + "'", value.equals(BigInteger.valueOf( 7106L ) ) ); } else { value = value.longValue(); expected = 7106L; @@ -1104,9 +714,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pco[0] + "' != '" + -19478 + "'", - value.equals(BigInteger.valueOf(-19478L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pco[0] + "' != '" + -19478 + "'", value.equals(BigInteger.valueOf( -19478L ) ) ); } else { value = value.longValue(); expected = -19478L; @@ -1114,9 +722,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pco[1] + "' != '" + 11484 + "'", - value.equals(BigInteger.valueOf(11484L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pco[1] + "' != '" + 11484 + "'", value.equals(BigInteger.valueOf( 11484L ) ) ); } else { value = value.longValue(); expected = 11484L; @@ -1124,9 +730,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pco[2] + "' != '" + 14804 + "'", - value.equals(BigInteger.valueOf(14804L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pco[2] + "' != '" + 14804 + "'", value.equals(BigInteger.valueOf( 14804L ) ) ); } else { value = value.longValue(); expected = 14804L; @@ -1134,9 +738,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[0] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[0] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1144,9 +746,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[1] + "' != '" + -83 + "'", - value.equals(BigInteger.valueOf(-83L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[1] + "' != '" + -83 + "'", value.equals(BigInteger.valueOf( -83L ) ) ); } else { value = value.longValue(); expected = -83L; @@ -1154,9 +754,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[2] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[2] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1164,9 +762,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[3] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[3] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1174,9 +770,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[4] + "' != '" + -119 + "'", - value.equals(BigInteger.valueOf(-119L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[4] + "' != '" + -119 + "'", value.equals(BigInteger.valueOf( -119L ) ) ); } else { value = value.longValue(); expected = -119L; @@ -1184,9 +778,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[5] + "' != '" + -8 + "'", - value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[5] + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -1194,9 +786,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[6] + "' != '" + -21 + "'", - value.equals(BigInteger.valueOf(-21L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[6] + "' != '" + -21 + "'", value.equals(BigInteger.valueOf( -21L ) ) ); } else { value = value.longValue(); expected = -21L; @@ -1204,9 +794,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[7] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[7] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1214,9 +802,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[8] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[8] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1224,9 +810,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[9] + "' != '" + -99 + "'", - value.equals(BigInteger.valueOf(-99L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[9] + "' != '" + -99 + "'", value.equals(BigInteger.valueOf( -99L ) ) ); } else { value = value.longValue(); expected = -99L; @@ -1234,9 +818,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[10] + "' != '" + -117 + "'", - value.equals(BigInteger.valueOf(-117L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[10] + "' != '" + -117 + "'", value.equals(BigInteger.valueOf( -117L ) ) ); } else { value = value.longValue(); expected = -117L; @@ -1244,9 +826,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[11] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[11] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1254,9 +834,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[12] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[12] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1264,9 +842,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[13] + "' != '" + -64 + "'", - value.equals(BigInteger.valueOf(-64L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[13] + "' != '" + -64 + "'", value.equals(BigInteger.valueOf( -64L ) ) ); } else { value = value.longValue(); expected = -64L; @@ -1274,9 +850,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[14] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[14] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1284,9 +858,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[15] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[15] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1294,9 +866,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[16] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[16] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1304,9 +874,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[17] + "' != '" + -28 + "'", - value.equals(BigInteger.valueOf(-28L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[17] + "' != '" + -28 + "'", value.equals(BigInteger.valueOf( -28L ) ) ); } else { value = value.longValue(); expected = -28L; @@ -1314,9 +882,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[18] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[18] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1324,9 +890,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[19] + "' != '" + -4 + "'", - value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[19] + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -1334,9 +898,7 @@ public void test1() throws Throwable { } value = msg.apc[3].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].pcv[20] + "' != '" + -37 + "'", - value.equals(BigInteger.valueOf(-37L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].pcv[20] + "' != '" + -37 + "'", value.equals(BigInteger.valueOf( -37L ) ) ); } else { value = value.longValue(); expected = -37L; @@ -1344,9 +906,7 @@ public void test1() throws Throwable { } value = msg.apc[3].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].sat_info + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].sat_info + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1354,9 +914,7 @@ public void test1() throws Throwable { } value = msg.apc[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].sid.code + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].sid.code + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1364,9 +922,7 @@ public void test1() throws Throwable { } value = msg.apc[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].sid.sat + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].sid.sat + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1374,9 +930,7 @@ public void test1() throws Throwable { } value = msg.apc[3].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[3].svn + "' != '" + 61399 + "'", - value.equals(BigInteger.valueOf(61399L))); + org.junit.Assert.assertTrue("'" + msg.apc[3].svn + "' != '" + 61399 + "'", value.equals(BigInteger.valueOf( 61399L ) ) ); } else { value = value.longValue(); expected = 61399L; @@ -1384,9 +938,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pco[0] + "' != '" + -11049 + "'", - value.equals(BigInteger.valueOf(-11049L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pco[0] + "' != '" + -11049 + "'", value.equals(BigInteger.valueOf( -11049L ) ) ); } else { value = value.longValue(); expected = -11049L; @@ -1394,9 +946,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pco[1] + "' != '" + 6580 + "'", - value.equals(BigInteger.valueOf(6580L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pco[1] + "' != '" + 6580 + "'", value.equals(BigInteger.valueOf( 6580L ) ) ); } else { value = value.longValue(); expected = 6580L; @@ -1404,9 +954,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pco[2] + "' != '" + -28589 + "'", - value.equals(BigInteger.valueOf(-28589L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pco[2] + "' != '" + -28589 + "'", value.equals(BigInteger.valueOf( -28589L ) ) ); } else { value = value.longValue(); expected = -28589L; @@ -1414,9 +962,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[0] + "' != '" + -9 + "'", - value.equals(BigInteger.valueOf(-9L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[0] + "' != '" + -9 + "'", value.equals(BigInteger.valueOf( -9L ) ) ); } else { value = value.longValue(); expected = -9L; @@ -1424,9 +970,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[1] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[1] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1434,9 +978,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[2] + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[2] + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1444,9 +986,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[3] + "' != '" + -57 + "'", - value.equals(BigInteger.valueOf(-57L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[3] + "' != '" + -57 + "'", value.equals(BigInteger.valueOf( -57L ) ) ); } else { value = value.longValue(); expected = -57L; @@ -1454,9 +994,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[4] + "' != '" + -83 + "'", - value.equals(BigInteger.valueOf(-83L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[4] + "' != '" + -83 + "'", value.equals(BigInteger.valueOf( -83L ) ) ); } else { value = value.longValue(); expected = -83L; @@ -1464,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[5] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[5] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1474,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[6] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[6] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1484,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[7] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[7] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1494,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[8] + "' != '" + -17 + "'", - value.equals(BigInteger.valueOf(-17L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[8] + "' != '" + -17 + "'", value.equals(BigInteger.valueOf( -17L ) ) ); } else { value = value.longValue(); expected = -17L; @@ -1504,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[9] + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[9] + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1514,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[10] + "' != '" + -33 + "'", - value.equals(BigInteger.valueOf(-33L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[10] + "' != '" + -33 + "'", value.equals(BigInteger.valueOf( -33L ) ) ); } else { value = value.longValue(); expected = -33L; @@ -1524,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[11] + "' != '" + -36 + "'", - value.equals(BigInteger.valueOf(-36L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[11] + "' != '" + -36 + "'", value.equals(BigInteger.valueOf( -36L ) ) ); } else { value = value.longValue(); expected = -36L; @@ -1534,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[12] + "' != '" + -117 + "'", - value.equals(BigInteger.valueOf(-117L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[12] + "' != '" + -117 + "'", value.equals(BigInteger.valueOf( -117L ) ) ); } else { value = value.longValue(); expected = -117L; @@ -1544,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[13] + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[13] + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1554,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[14] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[14] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1564,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[15] + "' != '" + -42 + "'", - value.equals(BigInteger.valueOf(-42L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[15] + "' != '" + -42 + "'", value.equals(BigInteger.valueOf( -42L ) ) ); } else { value = value.longValue(); expected = -42L; @@ -1574,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[16] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[16] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1584,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[17] + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[17] + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1594,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[18] + "' != '" + -53 + "'", - value.equals(BigInteger.valueOf(-53L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[18] + "' != '" + -53 + "'", value.equals(BigInteger.valueOf( -53L ) ) ); } else { value = value.longValue(); expected = -53L; @@ -1604,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[19] + "' != '" + -28 + "'", - value.equals(BigInteger.valueOf(-28L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[19] + "' != '" + -28 + "'", value.equals(BigInteger.valueOf( -28L ) ) ); } else { value = value.longValue(); expected = -28L; @@ -1614,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.apc[4].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].pcv[20] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].pcv[20] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1624,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.apc[4].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].sat_info + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].sat_info + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -1634,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.apc[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].sid.code + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].sid.code + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1644,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.apc[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].sid.sat + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].sid.sat + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1654,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.apc[4].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[4].svn + "' != '" + 41224 + "'", - value.equals(BigInteger.valueOf(41224L))); + org.junit.Assert.assertTrue("'" + msg.apc[4].svn + "' != '" + 41224 + "'", value.equals(BigInteger.valueOf( 41224L ) ) ); } else { value = value.longValue(); expected = 41224L; @@ -1664,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pco[0] + "' != '" + -21881 + "'", - value.equals(BigInteger.valueOf(-21881L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pco[0] + "' != '" + -21881 + "'", value.equals(BigInteger.valueOf( -21881L ) ) ); } else { value = value.longValue(); expected = -21881L; @@ -1674,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pco[1] + "' != '" + -9942 + "'", - value.equals(BigInteger.valueOf(-9942L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pco[1] + "' != '" + -9942 + "'", value.equals(BigInteger.valueOf( -9942L ) ) ); } else { value = value.longValue(); expected = -9942L; @@ -1684,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pco[2] + "' != '" + -5689 + "'", - value.equals(BigInteger.valueOf(-5689L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pco[2] + "' != '" + -5689 + "'", value.equals(BigInteger.valueOf( -5689L ) ) ); } else { value = value.longValue(); expected = -5689L; @@ -1694,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[0] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[0] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1704,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[1] + "' != '" + -86 + "'", - value.equals(BigInteger.valueOf(-86L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[1] + "' != '" + -86 + "'", value.equals(BigInteger.valueOf( -86L ) ) ); } else { value = value.longValue(); expected = -86L; @@ -1714,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[2] + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[2] + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -1724,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[3] + "' != '" + -50 + "'", - value.equals(BigInteger.valueOf(-50L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[3] + "' != '" + -50 + "'", value.equals(BigInteger.valueOf( -50L ) ) ); } else { value = value.longValue(); expected = -50L; @@ -1734,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[4] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[4] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1744,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[5] + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[5] + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1754,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[6] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[6] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1764,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[7] + "' != '" + -9 + "'", - value.equals(BigInteger.valueOf(-9L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[7] + "' != '" + -9 + "'", value.equals(BigInteger.valueOf( -9L ) ) ); } else { value = value.longValue(); expected = -9L; @@ -1774,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[8] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[8] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1784,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[9] + "' != '" + -58 + "'", - value.equals(BigInteger.valueOf(-58L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[9] + "' != '" + -58 + "'", value.equals(BigInteger.valueOf( -58L ) ) ); } else { value = value.longValue(); expected = -58L; @@ -1794,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[10] + "' != '" + -112 + "'", - value.equals(BigInteger.valueOf(-112L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[10] + "' != '" + -112 + "'", value.equals(BigInteger.valueOf( -112L ) ) ); } else { value = value.longValue(); expected = -112L; @@ -1804,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[11] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[11] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1814,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[12] + "' != '" + -124 + "'", - value.equals(BigInteger.valueOf(-124L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[12] + "' != '" + -124 + "'", value.equals(BigInteger.valueOf( -124L ) ) ); } else { value = value.longValue(); expected = -124L; @@ -1824,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[13] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[13] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1834,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[14] + "' != '" + -32 + "'", - value.equals(BigInteger.valueOf(-32L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[14] + "' != '" + -32 + "'", value.equals(BigInteger.valueOf( -32L ) ) ); } else { value = value.longValue(); expected = -32L; @@ -1844,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[15] + "' != '" + -36 + "'", - value.equals(BigInteger.valueOf(-36L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[15] + "' != '" + -36 + "'", value.equals(BigInteger.valueOf( -36L ) ) ); } else { value = value.longValue(); expected = -36L; @@ -1854,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[16] + "' != '" + -108 + "'", - value.equals(BigInteger.valueOf(-108L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[16] + "' != '" + -108 + "'", value.equals(BigInteger.valueOf( -108L ) ) ); } else { value = value.longValue(); expected = -108L; @@ -1864,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[17] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[17] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -1874,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[18] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[18] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1884,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[19] + "' != '" + -118 + "'", - value.equals(BigInteger.valueOf(-118L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[19] + "' != '" + -118 + "'", value.equals(BigInteger.valueOf( -118L ) ) ); } else { value = value.longValue(); expected = -118L; @@ -1894,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.apc[5].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].pcv[20] + "' != '" + -46 + "'", - value.equals(BigInteger.valueOf(-46L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].pcv[20] + "' != '" + -46 + "'", value.equals(BigInteger.valueOf( -46L ) ) ); } else { value = value.longValue(); expected = -46L; @@ -1904,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.apc[5].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].sat_info + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].sat_info + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -1914,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.apc[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].sid.code + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].sid.code + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1924,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.apc[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].sid.sat + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].sid.sat + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1934,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.apc[5].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[5].svn + "' != '" + 64011 + "'", - value.equals(BigInteger.valueOf(64011L))); + org.junit.Assert.assertTrue("'" + msg.apc[5].svn + "' != '" + 64011 + "'", value.equals(BigInteger.valueOf( 64011L ) ) ); } else { value = value.longValue(); expected = 64011L; @@ -1944,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pco[0] + "' != '" + -14290 + "'", - value.equals(BigInteger.valueOf(-14290L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pco[0] + "' != '" + -14290 + "'", value.equals(BigInteger.valueOf( -14290L ) ) ); } else { value = value.longValue(); expected = -14290L; @@ -1954,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pco[1] + "' != '" + 30340 + "'", - value.equals(BigInteger.valueOf(30340L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pco[1] + "' != '" + 30340 + "'", value.equals(BigInteger.valueOf( 30340L ) ) ); } else { value = value.longValue(); expected = 30340L; @@ -1964,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pco[2] + "' != '" + 3569 + "'", - value.equals(BigInteger.valueOf(3569L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pco[2] + "' != '" + 3569 + "'", value.equals(BigInteger.valueOf( 3569L ) ) ); } else { value = value.longValue(); expected = 3569L; @@ -1974,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[0] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[0] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -1984,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[1] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[1] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1994,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[2] + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[2] + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -2004,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[3] + "' != '" + -3 + "'", - value.equals(BigInteger.valueOf(-3L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[3] + "' != '" + -3 + "'", value.equals(BigInteger.valueOf( -3L ) ) ); } else { value = value.longValue(); expected = -3L; @@ -2014,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[4] + "' != '" + -66 + "'", - value.equals(BigInteger.valueOf(-66L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[4] + "' != '" + -66 + "'", value.equals(BigInteger.valueOf( -66L ) ) ); } else { value = value.longValue(); expected = -66L; @@ -2024,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[5] + "' != '" + -120 + "'", - value.equals(BigInteger.valueOf(-120L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[5] + "' != '" + -120 + "'", value.equals(BigInteger.valueOf( -120L ) ) ); } else { value = value.longValue(); expected = -120L; @@ -2034,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[6] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[6] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -2044,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[7] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[7] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -2054,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[8] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[8] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -2064,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[9] + "' != '" + -101 + "'", - value.equals(BigInteger.valueOf(-101L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[9] + "' != '" + -101 + "'", value.equals(BigInteger.valueOf( -101L ) ) ); } else { value = value.longValue(); expected = -101L; @@ -2074,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[10] + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[10] + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -2084,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[11] + "' != '" + -76 + "'", - value.equals(BigInteger.valueOf(-76L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[11] + "' != '" + -76 + "'", value.equals(BigInteger.valueOf( -76L ) ) ); } else { value = value.longValue(); expected = -76L; @@ -2094,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[12] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[12] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -2104,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[13] + "' != '" + -60 + "'", - value.equals(BigInteger.valueOf(-60L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[13] + "' != '" + -60 + "'", value.equals(BigInteger.valueOf( -60L ) ) ); } else { value = value.longValue(); expected = -60L; @@ -2114,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[14] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[14] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -2124,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[15] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[15] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -2134,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[16] + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[16] + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -2144,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[17] + "' != '" + -4 + "'", - value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[17] + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -2154,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[18] + "' != '" + -33 + "'", - value.equals(BigInteger.valueOf(-33L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[18] + "' != '" + -33 + "'", value.equals(BigInteger.valueOf( -33L ) ) ); } else { value = value.longValue(); expected = -33L; @@ -2164,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[19] + "' != '" + -112 + "'", - value.equals(BigInteger.valueOf(-112L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[19] + "' != '" + -112 + "'", value.equals(BigInteger.valueOf( -112L ) ) ); } else { value = value.longValue(); expected = -112L; @@ -2174,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.apc[6].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].pcv[20] + "' != '" + -103 + "'", - value.equals(BigInteger.valueOf(-103L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].pcv[20] + "' != '" + -103 + "'", value.equals(BigInteger.valueOf( -103L ) ) ); } else { value = value.longValue(); expected = -103L; @@ -2184,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.apc[6].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].sat_info + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].sat_info + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -2194,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.apc[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].sid.code + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].sid.code + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -2204,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.apc[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].sid.sat + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].sid.sat + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2214,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.apc[6].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[6].svn + "' != '" + 17310 + "'", - value.equals(BigInteger.valueOf(17310L))); + org.junit.Assert.assertTrue("'" + msg.apc[6].svn + "' != '" + 17310 + "'", value.equals(BigInteger.valueOf( 17310L ) ) ); } else { value = value.longValue(); expected = 17310L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcTest.java b/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcTest.java index 4a04b163f8..daf93fa379 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrSatelliteApcTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrSatelliteApc.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrSatelliteApc.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrSatelliteApc; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrSatelliteApcTest { @@ -27,61 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrSatelliteApcTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrSatelliteApcTest.test1"); - byte[] payload = - new byte[] { - (byte) 127, - (byte) 58, - (byte) 9, - (byte) 0, - (byte) 174, - (byte) 8, - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 2, - (byte) 0, - (byte) 4, - (byte) 61, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 255, - (byte) 255, - (byte) 217, - (byte) 2, - (byte) 11, - (byte) 10, - (byte) 8, - (byte) 5, - (byte) 1, - (byte) 252, - (byte) 248, - (byte) 246, - (byte) 246, - (byte) 246, - (byte) 249, - (byte) 252, - (byte) 0, - (byte) 6, - (byte) 12, - (byte) 22, - (byte) 30, - (byte) 41, - (byte) 41, - (byte) 41, - (byte) 41, - }; - SBPMessage sbp = new SBPMessage(0x0, 0x605, payload); - MsgSsrSatelliteApc msg = new MsgSsrSatelliteApc(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrSatelliteApcTest.test1"); + byte[] payload = new byte[] {(byte)127,(byte)58,(byte)9,(byte)0,(byte)174,(byte)8,(byte)1,(byte)2,(byte)3,(byte)2,(byte)0,(byte)4,(byte)61,(byte)0,(byte)1,(byte)0,(byte)255,(byte)255,(byte)217,(byte)2,(byte)11,(byte)10,(byte)8,(byte)5,(byte)1,(byte)252,(byte)248,(byte)246,(byte)246,(byte)246,(byte)249,(byte)252,(byte)0,(byte)6,(byte)12,(byte)22,(byte)30,(byte)41,(byte)41,(byte)41,(byte)41, }; + SBPMessage sbp = new SBPMessage( 0x0, 0x605, payload ); + MsgSsrSatelliteApc msg = new MsgSsrSatelliteApc( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.apc[0].pco[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[0] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[0] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -89,9 +50,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pco[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[1] + "' != '" + -1 + "'", - value.equals(BigInteger.valueOf(-1L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[1] + "' != '" + -1 + "'", value.equals(BigInteger.valueOf( -1L ) ) ); } else { value = value.longValue(); expected = -1L; @@ -99,9 +58,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pco[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pco[2] + "' != '" + 729 + "'", - value.equals(BigInteger.valueOf(729L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pco[2] + "' != '" + 729 + "'", value.equals(BigInteger.valueOf( 729L ) ) ); } else { value = value.longValue(); expected = 729L; @@ -109,9 +66,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[0] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[0] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -119,9 +74,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[1] + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[1] + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -129,9 +82,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[2] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[2] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -139,9 +90,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[3] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[3] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -149,9 +98,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[4] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[4] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -159,9 +106,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[5] + "' != '" + -4 + "'", - value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[5] + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -169,9 +114,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[6] + "' != '" + -8 + "'", - value.equals(BigInteger.valueOf(-8L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[6] + "' != '" + -8 + "'", value.equals(BigInteger.valueOf( -8L ) ) ); } else { value = value.longValue(); expected = -8L; @@ -179,9 +122,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[7] + "' != '" + -10 + "'", - value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[7] + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -189,9 +130,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[8] + "' != '" + -10 + "'", - value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[8] + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -199,9 +138,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[9] + "' != '" + -10 + "'", - value.equals(BigInteger.valueOf(-10L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[9] + "' != '" + -10 + "'", value.equals(BigInteger.valueOf( -10L ) ) ); } else { value = value.longValue(); expected = -10L; @@ -209,9 +146,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[10] + "' != '" + -7 + "'", - value.equals(BigInteger.valueOf(-7L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[10] + "' != '" + -7 + "'", value.equals(BigInteger.valueOf( -7L ) ) ); } else { value = value.longValue(); expected = -7L; @@ -219,9 +154,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[11] + "' != '" + -4 + "'", - value.equals(BigInteger.valueOf(-4L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[11] + "' != '" + -4 + "'", value.equals(BigInteger.valueOf( -4L ) ) ); } else { value = value.longValue(); expected = -4L; @@ -229,9 +162,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[12] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[12] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -239,9 +170,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[13] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[13] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -249,9 +178,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[14] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[14] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -259,9 +186,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[15] + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[15] + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -269,9 +194,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[16] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[16] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -279,9 +202,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[17] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[17] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -289,9 +210,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[18] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[18] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -299,9 +218,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[19] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[19] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -309,9 +226,7 @@ public void test1() throws Throwable { } value = msg.apc[0].pcv[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].pcv[20] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].pcv[20] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -319,9 +234,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sat_info; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sat_info + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sat_info + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -329,9 +242,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -339,9 +250,7 @@ public void test1() throws Throwable { } value = msg.apc[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].sid.sat + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].sid.sat + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -349,9 +258,7 @@ public void test1() throws Throwable { } value = msg.apc[0].svn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.apc[0].svn + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.apc[0].svn + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -359,8 +266,7 @@ public void test1() throws Throwable { } value = msg.iod_ssr; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_ssr + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.iod_ssr + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -368,8 +274,7 @@ public void test1() throws Throwable { } value = msg.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_id + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_id + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -377,9 +282,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 604799 + "'", - value.equals(BigInteger.valueOf(604799L))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 604799 + "'", value.equals(BigInteger.valueOf( 604799L ) ) ); } else { value = value.longValue(); expected = 604799L; @@ -387,9 +290,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 2222 + "'", - value.equals(BigInteger.valueOf(2222L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 2222 + "'", value.equals(BigInteger.valueOf( 2222L ) ) ); } else { value = value.longValue(); expected = 2222L; @@ -397,9 +298,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest.java index b691ef00a7..959c096505 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrectionDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrectionDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest { @@ -30,271 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrStecCorrectionDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 70, - (byte) 81, - (byte) 196, - (byte) 232, - (byte) 185, - (byte) 43, - (byte) 147, - (byte) 123, - (byte) 39, - (byte) 4, - (byte) 126, - (byte) 19, - (byte) 111, - (byte) 97, - (byte) 248, - (byte) 130, - (byte) 217, - (byte) 217, - (byte) 106, - (byte) 58, - (byte) 12, - (byte) 65, - (byte) 230, - (byte) 171, - (byte) 81, - (byte) 95, - (byte) 86, - (byte) 16, - (byte) 39, - (byte) 84, - (byte) 228, - (byte) 208, - (byte) 201, - (byte) 81, - (byte) 219, - (byte) 99, - (byte) 203, - (byte) 61, - (byte) 182, - (byte) 66, - (byte) 125, - (byte) 203, - (byte) 3, - (byte) 193, - (byte) 44, - (byte) 100, - (byte) 220, - (byte) 125, - (byte) 60, - (byte) 21, - (byte) 93, - (byte) 218, - (byte) 247, - (byte) 158, - (byte) 207, - (byte) 93, - (byte) 129, - (byte) 134, - (byte) 14, - (byte) 209, - (byte) 48, - (byte) 14, - (byte) 215, - (byte) 153, - (byte) 148, - (byte) 147, - (byte) 72, - (byte) 225, - (byte) 180, - (byte) 236, - (byte) 205, - (byte) 201, - (byte) 33, - (byte) 3, - (byte) 246, - (byte) 204, - (byte) 19, - (byte) 3, - (byte) 98, - (byte) 4, - (byte) 194, - (byte) 191, - (byte) 246, - (byte) 76, - (byte) 219, - (byte) 31, - (byte) 191, - (byte) 113, - (byte) 79, - (byte) 177, - (byte) 15, - (byte) 251, - (byte) 33, - (byte) 19, - (byte) 96, - (byte) 54, - (byte) 58, - (byte) 146, - (byte) 210, - (byte) 100, - (byte) 249, - (byte) 72, - (byte) 21, - (byte) 161, - (byte) 211, - (byte) 198, - (byte) 21, - (byte) 238, - (byte) 111, - (byte) 107, - (byte) 36, - (byte) 227, - (byte) 225, - (byte) 213, - (byte) 3, - (byte) 71, - (byte) 243, - (byte) 63, - (byte) 65, - (byte) 236, - (byte) 92, - (byte) 77, - (byte) 0, - (byte) 169, - (byte) 15, - (byte) 182, - (byte) 5, - (byte) 240, - (byte) 180, - (byte) 9, - (byte) 122, - (byte) 86, - (byte) 232, - (byte) 6, - (byte) 103, - (byte) 104, - (byte) 254, - (byte) 189, - (byte) 81, - (byte) 110, - (byte) 2, - (byte) 49, - (byte) 202, - (byte) 84, - (byte) 216, - (byte) 55, - (byte) 50, - (byte) 181, - (byte) 5, - (byte) 123, - (byte) 80, - (byte) 49, - (byte) 244, - (byte) 224, - (byte) 188, - (byte) 125, - (byte) 164, - (byte) 230, - (byte) 56, - (byte) 66, - (byte) 124, - (byte) 168, - (byte) 59, - (byte) 139, - (byte) 106, - (byte) 118, - (byte) 51, - (byte) 187, - (byte) 216, - (byte) 191, - (byte) 158, - (byte) 77, - (byte) 92, - (byte) 58, - (byte) 253, - (byte) 132, - (byte) 150, - (byte) 165, - (byte) 9, - (byte) 154, - (byte) 189, - (byte) 218, - (byte) 61, - (byte) 209, - (byte) 1, - (byte) 82, - (byte) 181, - (byte) 196, - (byte) 23, - (byte) 53, - (byte) 182, - (byte) 112, - (byte) 192, - (byte) 206, - (byte) 167, - (byte) 157, - (byte) 244, - (byte) 35, - (byte) 1, - (byte) 189, - (byte) 217, - (byte) 61, - (byte) 88, - (byte) 97, - (byte) 201, - (byte) 201, - (byte) 74, - (byte) 251, - (byte) 217, - (byte) 14, - (byte) 104, - (byte) 184, - (byte) 54, - (byte) 52, - (byte) 74, - (byte) 238, - (byte) 10, - (byte) 129, - (byte) 22, - (byte) 178, - (byte) 226, - (byte) 109, - (byte) 88, - (byte) 157, - (byte) 30, - (byte) 196, - (byte) 175, - (byte) 26, - (byte) 76, - (byte) 34, - (byte) 116, - (byte) 220, - (byte) 154, - (byte) 232, - (byte) 12, - (byte) 179, - (byte) 244, - (byte) 15, - (byte) 155, - (byte) 196, - (byte) 202, - (byte) 72, - (byte) 70, - (byte) 115, - (byte) 10, - (byte) 214, - (byte) 114, - (byte) 39, - (byte) 245, - (byte) 28, - (byte) 237, - (byte) 68, - }; - SBPMessage sbp = new SBPMessage(0x0727, 0x5eb, payload); - MsgSsrStecCorrectionDepA msg = new MsgSsrStecCorrectionDepA(sbp); + byte[] payload = new byte[] {(byte)70,(byte)81,(byte)196,(byte)232,(byte)185,(byte)43,(byte)147,(byte)123,(byte)39,(byte)4,(byte)126,(byte)19,(byte)111,(byte)97,(byte)248,(byte)130,(byte)217,(byte)217,(byte)106,(byte)58,(byte)12,(byte)65,(byte)230,(byte)171,(byte)81,(byte)95,(byte)86,(byte)16,(byte)39,(byte)84,(byte)228,(byte)208,(byte)201,(byte)81,(byte)219,(byte)99,(byte)203,(byte)61,(byte)182,(byte)66,(byte)125,(byte)203,(byte)3,(byte)193,(byte)44,(byte)100,(byte)220,(byte)125,(byte)60,(byte)21,(byte)93,(byte)218,(byte)247,(byte)158,(byte)207,(byte)93,(byte)129,(byte)134,(byte)14,(byte)209,(byte)48,(byte)14,(byte)215,(byte)153,(byte)148,(byte)147,(byte)72,(byte)225,(byte)180,(byte)236,(byte)205,(byte)201,(byte)33,(byte)3,(byte)246,(byte)204,(byte)19,(byte)3,(byte)98,(byte)4,(byte)194,(byte)191,(byte)246,(byte)76,(byte)219,(byte)31,(byte)191,(byte)113,(byte)79,(byte)177,(byte)15,(byte)251,(byte)33,(byte)19,(byte)96,(byte)54,(byte)58,(byte)146,(byte)210,(byte)100,(byte)249,(byte)72,(byte)21,(byte)161,(byte)211,(byte)198,(byte)21,(byte)238,(byte)111,(byte)107,(byte)36,(byte)227,(byte)225,(byte)213,(byte)3,(byte)71,(byte)243,(byte)63,(byte)65,(byte)236,(byte)92,(byte)77,(byte)0,(byte)169,(byte)15,(byte)182,(byte)5,(byte)240,(byte)180,(byte)9,(byte)122,(byte)86,(byte)232,(byte)6,(byte)103,(byte)104,(byte)254,(byte)189,(byte)81,(byte)110,(byte)2,(byte)49,(byte)202,(byte)84,(byte)216,(byte)55,(byte)50,(byte)181,(byte)5,(byte)123,(byte)80,(byte)49,(byte)244,(byte)224,(byte)188,(byte)125,(byte)164,(byte)230,(byte)56,(byte)66,(byte)124,(byte)168,(byte)59,(byte)139,(byte)106,(byte)118,(byte)51,(byte)187,(byte)216,(byte)191,(byte)158,(byte)77,(byte)92,(byte)58,(byte)253,(byte)132,(byte)150,(byte)165,(byte)9,(byte)154,(byte)189,(byte)218,(byte)61,(byte)209,(byte)1,(byte)82,(byte)181,(byte)196,(byte)23,(byte)53,(byte)182,(byte)112,(byte)192,(byte)206,(byte)167,(byte)157,(byte)244,(byte)35,(byte)1,(byte)189,(byte)217,(byte)61,(byte)88,(byte)97,(byte)201,(byte)201,(byte)74,(byte)251,(byte)217,(byte)14,(byte)104,(byte)184,(byte)54,(byte)52,(byte)74,(byte)238,(byte)10,(byte)129,(byte)22,(byte)178,(byte)226,(byte)109,(byte)88,(byte)157,(byte)30,(byte)196,(byte)175,(byte)26,(byte)76,(byte)34,(byte)116,(byte)220,(byte)154,(byte)232,(byte)12,(byte)179,(byte)244,(byte)15,(byte)155,(byte)196,(byte)202,(byte)72,(byte)70,(byte)115,(byte)10,(byte)214,(byte)114,(byte)39,(byte)245,(byte)28,(byte)237,(byte)68, }; + SBPMessage sbp = new SBPMessage( 0x0727, 0x5eb, payload ); + MsgSsrStecCorrectionDepA msg = new MsgSsrStecCorrectionDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.iod_atmo + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.header.iod_atmo + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -302,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -312,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -322,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 3905179974L + "'", - value.equals(new BigInteger("3905179974"))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 3905179974L + "'", value.equals( new BigInteger( "3905179974" ) ) ); } else { value = value.longValue(); expected = 3905179974L; @@ -332,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 11193 + "'", - value.equals(BigInteger.valueOf(11193L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 11193 + "'", value.equals(BigInteger.valueOf( 11193L ) ) ); } else { value = value.longValue(); expected = 11193L; @@ -342,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -352,9 +90,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + -1951 + "'", - value.equals(BigInteger.valueOf(-1951L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + -1951 + "'", value.equals(BigInteger.valueOf( -1951L ) ) ); } else { value = value.longValue(); expected = -1951L; @@ -362,9 +98,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + -9854 + "'", - value.equals(BigInteger.valueOf(-9854L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + -9854 + "'", value.equals(BigInteger.valueOf( -9854L ) ) ); } else { value = value.longValue(); expected = -9854L; @@ -372,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 27353 + "'", - value.equals(BigInteger.valueOf(27353L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 27353 + "'", value.equals(BigInteger.valueOf( 27353L ) ) ); } else { value = value.longValue(); expected = 27353L; @@ -382,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 3130 + "'", - value.equals(BigInteger.valueOf(3130L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 3130 + "'", value.equals(BigInteger.valueOf( 3130L ) ) ); } else { value = value.longValue(); expected = 3130L; @@ -392,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -402,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -412,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -422,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + 24401 + "'", - value.equals(BigInteger.valueOf(24401L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + 24401 + "'", value.equals(BigInteger.valueOf( 24401L ) ) ); } else { value = value.longValue(); expected = 24401L; @@ -432,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + 4182 + "'", - value.equals(BigInteger.valueOf(4182L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + 4182 + "'", value.equals(BigInteger.valueOf( 4182L ) ) ); } else { value = value.longValue(); expected = 4182L; @@ -442,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + 21543 + "'", - value.equals(BigInteger.valueOf(21543L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + 21543 + "'", value.equals(BigInteger.valueOf( 21543L ) ) ); } else { value = value.longValue(); expected = 21543L; @@ -452,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + -12060 + "'", - value.equals(BigInteger.valueOf(-12060L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + -12060 + "'", value.equals(BigInteger.valueOf( -12060L ) ) ); } else { value = value.longValue(); expected = -12060L; @@ -462,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -472,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -482,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -492,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[0] + "' != '" + -13469 + "'", - value.equals(BigInteger.valueOf(-13469L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[0] + "' != '" + -13469 + "'", value.equals(BigInteger.valueOf( -13469L ) ) ); } else { value = value.longValue(); expected = -13469L; @@ -502,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[1] + "' != '" + -18883 + "'", - value.equals(BigInteger.valueOf(-18883L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[1] + "' != '" + -18883 + "'", value.equals(BigInteger.valueOf( -18883L ) ) ); } else { value = value.longValue(); expected = -18883L; @@ -512,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[2] + "' != '" + 32066 + "'", - value.equals(BigInteger.valueOf(32066L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[2] + "' != '" + 32066 + "'", value.equals(BigInteger.valueOf( 32066L ) ) ); } else { value = value.longValue(); expected = 32066L; @@ -522,9 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[3] + "' != '" + 971 + "'", - value.equals(BigInteger.valueOf(971L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[3] + "' != '" + 971 + "'", value.equals(BigInteger.valueOf( 971L ) ) ); } else { value = value.longValue(); expected = 971L; @@ -532,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_quality_indicator + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_quality_indicator + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -542,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].sv_id.constellation + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].sv_id.constellation + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -552,9 +250,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].sv_id.satId + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].sv_id.satId + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -562,9 +258,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[0] + "' != '" + 32220 + "'", - value.equals(BigInteger.valueOf(32220L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[0] + "' != '" + 32220 + "'", value.equals(BigInteger.valueOf( 32220L ) ) ); } else { value = value.longValue(); expected = 32220L; @@ -572,9 +266,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[1] + "' != '" + 5436 + "'", - value.equals(BigInteger.valueOf(5436L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[1] + "' != '" + 5436 + "'", value.equals(BigInteger.valueOf( 5436L ) ) ); } else { value = value.longValue(); expected = 5436L; @@ -582,9 +274,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[2] + "' != '" + -9635 + "'", - value.equals(BigInteger.valueOf(-9635L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[2] + "' != '" + -9635 + "'", value.equals(BigInteger.valueOf( -9635L ) ) ); } else { value = value.longValue(); expected = -9635L; @@ -592,9 +282,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[3] + "' != '" + -24841 + "'", - value.equals(BigInteger.valueOf(-24841L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[3] + "' != '" + -24841 + "'", value.equals(BigInteger.valueOf( -24841L ) ) ); } else { value = value.longValue(); expected = -24841L; @@ -602,9 +290,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_quality_indicator + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_quality_indicator + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -612,9 +298,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].sv_id.constellation + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].sv_id.constellation + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -622,9 +306,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].sv_id.satId + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].sv_id.satId + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -632,9 +314,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[0] + "' != '" + 3718 + "'", - value.equals(BigInteger.valueOf(3718L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[0] + "' != '" + 3718 + "'", value.equals(BigInteger.valueOf( 3718L ) ) ); } else { value = value.longValue(); expected = 3718L; @@ -642,9 +322,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[1] + "' != '" + 12497 + "'", - value.equals(BigInteger.valueOf(12497L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[1] + "' != '" + 12497 + "'", value.equals(BigInteger.valueOf( 12497L ) ) ); } else { value = value.longValue(); expected = 12497L; @@ -652,9 +330,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[2] + "' != '" + -10482 + "'", - value.equals(BigInteger.valueOf(-10482L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[2] + "' != '" + -10482 + "'", value.equals(BigInteger.valueOf( -10482L ) ) ); } else { value = value.longValue(); expected = -10482L; @@ -662,9 +338,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[3] + "' != '" + -27495 + "'", - value.equals(BigInteger.valueOf(-27495L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[3] + "' != '" + -27495 + "'", value.equals(BigInteger.valueOf( -27495L ) ) ); } else { value = value.longValue(); expected = -27495L; @@ -672,9 +346,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_quality_indicator + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_quality_indicator + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -682,9 +354,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].sv_id.constellation + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].sv_id.constellation + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -692,9 +362,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].sv_id.satId + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].sv_id.satId + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -702,9 +370,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[0] + "' != '" + -4940 + "'", - value.equals(BigInteger.valueOf(-4940L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[0] + "' != '" + -4940 + "'", value.equals(BigInteger.valueOf( -4940L ) ) ); } else { value = value.longValue(); expected = -4940L; @@ -712,9 +378,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[1] + "' != '" + -13875 + "'", - value.equals(BigInteger.valueOf(-13875L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[1] + "' != '" + -13875 + "'", value.equals(BigInteger.valueOf( -13875L ) ) ); } else { value = value.longValue(); expected = -13875L; @@ -722,9 +386,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[2] + "' != '" + 801 + "'", - value.equals(BigInteger.valueOf(801L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[2] + "' != '" + 801 + "'", value.equals(BigInteger.valueOf( 801L ) ) ); } else { value = value.longValue(); expected = 801L; @@ -732,9 +394,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[3] + "' != '" + -13066 + "'", - value.equals(BigInteger.valueOf(-13066L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[3] + "' != '" + -13066 + "'", value.equals(BigInteger.valueOf( -13066L ) ) ); } else { value = value.longValue(); expected = -13066L; @@ -742,9 +402,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_quality_indicator + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_quality_indicator + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -752,9 +410,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].sv_id.constellation + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].sv_id.constellation + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -762,9 +418,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].sv_id.satId + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].sv_id.satId + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -772,9 +426,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[0] + "' != '" + -15868 + "'", - value.equals(BigInteger.valueOf(-15868L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[0] + "' != '" + -15868 + "'", value.equals(BigInteger.valueOf( -15868L ) ) ); } else { value = value.longValue(); expected = -15868L; @@ -782,9 +434,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[1] + "' != '" + -2369 + "'", - value.equals(BigInteger.valueOf(-2369L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[1] + "' != '" + -2369 + "'", value.equals(BigInteger.valueOf( -2369L ) ) ); } else { value = value.longValue(); expected = -2369L; @@ -792,9 +442,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[2] + "' != '" + -9396 + "'", - value.equals(BigInteger.valueOf(-9396L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[2] + "' != '" + -9396 + "'", value.equals(BigInteger.valueOf( -9396L ) ) ); } else { value = value.longValue(); expected = -9396L; @@ -802,9 +450,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[3] + "' != '" + -16609 + "'", - value.equals(BigInteger.valueOf(-16609L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[3] + "' != '" + -16609 + "'", value.equals(BigInteger.valueOf( -16609L ) ) ); } else { value = value.longValue(); expected = -16609L; @@ -812,9 +458,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_quality_indicator + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_quality_indicator + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -822,9 +466,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].sv_id.constellation + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].sv_id.constellation + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -832,9 +474,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].sv_id.satId + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].sv_id.satId + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -842,9 +482,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[0] + "' != '" + -1265 + "'", - value.equals(BigInteger.valueOf(-1265L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[0] + "' != '" + -1265 + "'", value.equals(BigInteger.valueOf( -1265L ) ) ); } else { value = value.longValue(); expected = -1265L; @@ -852,9 +490,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[1] + "' != '" + 4897 + "'", - value.equals(BigInteger.valueOf(4897L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[1] + "' != '" + 4897 + "'", value.equals(BigInteger.valueOf( 4897L ) ) ); } else { value = value.longValue(); expected = 4897L; @@ -862,9 +498,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[2] + "' != '" + 13920 + "'", - value.equals(BigInteger.valueOf(13920L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[2] + "' != '" + 13920 + "'", value.equals(BigInteger.valueOf( 13920L ) ) ); } else { value = value.longValue(); expected = 13920L; @@ -872,9 +506,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[3] + "' != '" + -28102 + "'", - value.equals(BigInteger.valueOf(-28102L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[3] + "' != '" + -28102 + "'", value.equals(BigInteger.valueOf( -28102L ) ) ); } else { value = value.longValue(); expected = -28102L; @@ -882,9 +514,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_quality_indicator + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_quality_indicator + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -892,9 +522,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].sv_id.constellation + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].sv_id.constellation + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -902,9 +530,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].sv_id.satId + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].sv_id.satId + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -912,9 +538,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[0] + "' != '" + 5448 + "'", - value.equals(BigInteger.valueOf(5448L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[0] + "' != '" + 5448 + "'", value.equals(BigInteger.valueOf( 5448L ) ) ); } else { value = value.longValue(); expected = 5448L; @@ -922,9 +546,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[1] + "' != '" + -11359 + "'", - value.equals(BigInteger.valueOf(-11359L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[1] + "' != '" + -11359 + "'", value.equals(BigInteger.valueOf( -11359L ) ) ); } else { value = value.longValue(); expected = -11359L; @@ -932,9 +554,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[2] + "' != '" + 5574 + "'", - value.equals(BigInteger.valueOf(5574L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[2] + "' != '" + 5574 + "'", value.equals(BigInteger.valueOf( 5574L ) ) ); } else { value = value.longValue(); expected = 5574L; @@ -942,9 +562,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[3] + "' != '" + 28654 + "'", - value.equals(BigInteger.valueOf(28654L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[3] + "' != '" + 28654 + "'", value.equals(BigInteger.valueOf( 28654L ) ) ); } else { value = value.longValue(); expected = 28654L; @@ -952,9 +570,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_quality_indicator + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_quality_indicator + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -962,9 +578,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].sv_id.constellation + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].sv_id.constellation + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -972,9 +586,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].sv_id.satId + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].sv_id.satId + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -982,9 +594,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[0] + "' != '" + -10783 + "'", - value.equals(BigInteger.valueOf(-10783L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[0] + "' != '" + -10783 + "'", value.equals(BigInteger.valueOf( -10783L ) ) ); } else { value = value.longValue(); expected = -10783L; @@ -992,9 +602,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[1] + "' != '" + 18179 + "'", - value.equals(BigInteger.valueOf(18179L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[1] + "' != '" + 18179 + "'", value.equals(BigInteger.valueOf( 18179L ) ) ); } else { value = value.longValue(); expected = 18179L; @@ -1002,9 +610,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[2] + "' != '" + 16371 + "'", - value.equals(BigInteger.valueOf(16371L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[2] + "' != '" + 16371 + "'", value.equals(BigInteger.valueOf( 16371L ) ) ); } else { value = value.longValue(); expected = 16371L; @@ -1012,9 +618,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[3] + "' != '" + -5055 + "'", - value.equals(BigInteger.valueOf(-5055L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[3] + "' != '" + -5055 + "'", value.equals(BigInteger.valueOf( -5055L ) ) ); } else { value = value.longValue(); expected = -5055L; @@ -1022,9 +626,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_quality_indicator + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_quality_indicator + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1032,9 +634,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].sv_id.constellation + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].sv_id.constellation + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1042,9 +642,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].sv_id.satId + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].sv_id.satId + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1052,9 +650,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[0] + "' != '" + 4009 + "'", - value.equals(BigInteger.valueOf(4009L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[0] + "' != '" + 4009 + "'", value.equals(BigInteger.valueOf( 4009L ) ) ); } else { value = value.longValue(); expected = 4009L; @@ -1062,9 +658,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[1] + "' != '" + 1462 + "'", - value.equals(BigInteger.valueOf(1462L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[1] + "' != '" + 1462 + "'", value.equals(BigInteger.valueOf( 1462L ) ) ); } else { value = value.longValue(); expected = 1462L; @@ -1072,9 +666,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[2] + "' != '" + -19216 + "'", - value.equals(BigInteger.valueOf(-19216L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[2] + "' != '" + -19216 + "'", value.equals(BigInteger.valueOf( -19216L ) ) ); } else { value = value.longValue(); expected = -19216L; @@ -1082,9 +674,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[3] + "' != '" + 31241 + "'", - value.equals(BigInteger.valueOf(31241L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[3] + "' != '" + 31241 + "'", value.equals(BigInteger.valueOf( 31241L ) ) ); } else { value = value.longValue(); expected = 31241L; @@ -1092,9 +682,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_quality_indicator + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_quality_indicator + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1102,9 +690,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].sv_id.constellation + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].sv_id.constellation + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1112,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].sv_id.satId + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].sv_id.satId + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1122,9 +706,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[0] + "' != '" + 26727 + "'", - value.equals(BigInteger.valueOf(26727L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[0] + "' != '" + 26727 + "'", value.equals(BigInteger.valueOf( 26727L ) ) ); } else { value = value.longValue(); expected = 26727L; @@ -1132,9 +714,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[1] + "' != '" + -16898 + "'", - value.equals(BigInteger.valueOf(-16898L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[1] + "' != '" + -16898 + "'", value.equals(BigInteger.valueOf( -16898L ) ) ); } else { value = value.longValue(); expected = -16898L; @@ -1142,9 +722,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[2] + "' != '" + 28241 + "'", - value.equals(BigInteger.valueOf(28241L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[2] + "' != '" + 28241 + "'", value.equals(BigInteger.valueOf( 28241L ) ) ); } else { value = value.longValue(); expected = 28241L; @@ -1152,9 +730,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[3] + "' != '" + 12546 + "'", - value.equals(BigInteger.valueOf(12546L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[3] + "' != '" + 12546 + "'", value.equals(BigInteger.valueOf( 12546L ) ) ); } else { value = value.longValue(); expected = 12546L; @@ -1162,9 +738,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_quality_indicator + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_quality_indicator + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1172,9 +746,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].sv_id.constellation + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].sv_id.constellation + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1182,9 +754,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].sv_id.satId + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].sv_id.satId + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1192,9 +762,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[0] + "' != '" + 12855 + "'", - value.equals(BigInteger.valueOf(12855L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[0] + "' != '" + 12855 + "'", value.equals(BigInteger.valueOf( 12855L ) ) ); } else { value = value.longValue(); expected = 12855L; @@ -1202,9 +770,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[1] + "' != '" + 1461 + "'", - value.equals(BigInteger.valueOf(1461L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[1] + "' != '" + 1461 + "'", value.equals(BigInteger.valueOf( 1461L ) ) ); } else { value = value.longValue(); expected = 1461L; @@ -1212,9 +778,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[2] + "' != '" + 20603 + "'", - value.equals(BigInteger.valueOf(20603L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[2] + "' != '" + 20603 + "'", value.equals(BigInteger.valueOf( 20603L ) ) ); } else { value = value.longValue(); expected = 20603L; @@ -1222,9 +786,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[3] + "' != '" + -3023 + "'", - value.equals(BigInteger.valueOf(-3023L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[3] + "' != '" + -3023 + "'", value.equals(BigInteger.valueOf( -3023L ) ) ); } else { value = value.longValue(); expected = -3023L; @@ -1232,9 +794,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_quality_indicator + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_quality_indicator + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1242,9 +802,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].sv_id.constellation + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].sv_id.constellation + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -1252,9 +810,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].sv_id.satId + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].sv_id.satId + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1262,9 +818,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[0] + "' != '" + -6492 + "'", - value.equals(BigInteger.valueOf(-6492L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[0] + "' != '" + -6492 + "'", value.equals(BigInteger.valueOf( -6492L ) ) ); } else { value = value.longValue(); expected = -6492L; @@ -1272,9 +826,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[1] + "' != '" + 16952 + "'", - value.equals(BigInteger.valueOf(16952L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[1] + "' != '" + 16952 + "'", value.equals(BigInteger.valueOf( 16952L ) ) ); } else { value = value.longValue(); expected = 16952L; @@ -1282,9 +834,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[2] + "' != '" + -22404 + "'", - value.equals(BigInteger.valueOf(-22404L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[2] + "' != '" + -22404 + "'", value.equals(BigInteger.valueOf( -22404L ) ) ); } else { value = value.longValue(); expected = -22404L; @@ -1292,9 +842,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[3] + "' != '" + -29893 + "'", - value.equals(BigInteger.valueOf(-29893L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[3] + "' != '" + -29893 + "'", value.equals(BigInteger.valueOf( -29893L ) ) ); } else { value = value.longValue(); expected = -29893L; @@ -1302,9 +850,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_quality_indicator + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_quality_indicator + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -1312,9 +858,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].sv_id.constellation + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].sv_id.constellation + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1322,9 +866,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].sv_id.satId + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].sv_id.satId + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1332,9 +874,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[0] + "' != '" + -10053 + "'", - value.equals(BigInteger.valueOf(-10053L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[0] + "' != '" + -10053 + "'", value.equals(BigInteger.valueOf( -10053L ) ) ); } else { value = value.longValue(); expected = -10053L; @@ -1342,9 +882,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[1] + "' != '" + -24897 + "'", - value.equals(BigInteger.valueOf(-24897L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[1] + "' != '" + -24897 + "'", value.equals(BigInteger.valueOf( -24897L ) ) ); } else { value = value.longValue(); expected = -24897L; @@ -1352,9 +890,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[2] + "' != '" + 23629 + "'", - value.equals(BigInteger.valueOf(23629L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[2] + "' != '" + 23629 + "'", value.equals(BigInteger.valueOf( 23629L ) ) ); } else { value = value.longValue(); expected = 23629L; @@ -1362,9 +898,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[3] + "' != '" + -710 + "'", - value.equals(BigInteger.valueOf(-710L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[3] + "' != '" + -710 + "'", value.equals(BigInteger.valueOf( -710L ) ) ); } else { value = value.longValue(); expected = -710L; @@ -1372,9 +906,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_quality_indicator + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_quality_indicator + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1382,9 +914,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].sv_id.constellation + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].sv_id.constellation + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -1392,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].sv_id.satId + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].sv_id.satId + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1402,9 +930,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[0] + "' != '" + -26103 + "'", - value.equals(BigInteger.valueOf(-26103L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[0] + "' != '" + -26103 + "'", value.equals(BigInteger.valueOf( -26103L ) ) ); } else { value = value.longValue(); expected = -26103L; @@ -1412,9 +938,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[1] + "' != '" + -9539 + "'", - value.equals(BigInteger.valueOf(-9539L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[1] + "' != '" + -9539 + "'", value.equals(BigInteger.valueOf( -9539L ) ) ); } else { value = value.longValue(); expected = -9539L; @@ -1422,9 +946,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[2] + "' != '" + -11971 + "'", - value.equals(BigInteger.valueOf(-11971L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[2] + "' != '" + -11971 + "'", value.equals(BigInteger.valueOf( -11971L ) ) ); } else { value = value.longValue(); expected = -11971L; @@ -1432,9 +954,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[3] + "' != '" + 20993 + "'", - value.equals(BigInteger.valueOf(20993L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[3] + "' != '" + 20993 + "'", value.equals(BigInteger.valueOf( 20993L ) ) ); } else { value = value.longValue(); expected = 20993L; @@ -1442,9 +962,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_quality_indicator + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_quality_indicator + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1452,9 +970,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].sv_id.constellation + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].sv_id.constellation + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1462,9 +978,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].sv_id.satId + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].sv_id.satId + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1472,9 +986,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[0] + "' != '" + -18891 + "'", - value.equals(BigInteger.valueOf(-18891L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[0] + "' != '" + -18891 + "'", value.equals(BigInteger.valueOf( -18891L ) ) ); } else { value = value.longValue(); expected = -18891L; @@ -1482,9 +994,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[1] + "' != '" + -16272 + "'", - value.equals(BigInteger.valueOf(-16272L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[1] + "' != '" + -16272 + "'", value.equals(BigInteger.valueOf( -16272L ) ) ); } else { value = value.longValue(); expected = -16272L; @@ -1492,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[2] + "' != '" + -22578 + "'", - value.equals(BigInteger.valueOf(-22578L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[2] + "' != '" + -22578 + "'", value.equals(BigInteger.valueOf( -22578L ) ) ); } else { value = value.longValue(); expected = -22578L; @@ -1502,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[3] + "' != '" + -2915 + "'", - value.equals(BigInteger.valueOf(-2915L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[3] + "' != '" + -2915 + "'", value.equals(BigInteger.valueOf( -2915L ) ) ); } else { value = value.longValue(); expected = -2915L; @@ -1512,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_quality_indicator + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_quality_indicator + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1522,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].sv_id.constellation + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].sv_id.constellation + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1532,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].sv_id.satId + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].sv_id.satId + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1542,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[0] + "' != '" + 15833 + "'", - value.equals(BigInteger.valueOf(15833L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[0] + "' != '" + 15833 + "'", value.equals(BigInteger.valueOf( 15833L ) ) ); } else { value = value.longValue(); expected = 15833L; @@ -1552,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[1] + "' != '" + 24920 + "'", - value.equals(BigInteger.valueOf(24920L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[1] + "' != '" + 24920 + "'", value.equals(BigInteger.valueOf( 24920L ) ) ); } else { value = value.longValue(); expected = 24920L; @@ -1562,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[2] + "' != '" + -13879 + "'", - value.equals(BigInteger.valueOf(-13879L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[2] + "' != '" + -13879 + "'", value.equals(BigInteger.valueOf( -13879L ) ) ); } else { value = value.longValue(); expected = -13879L; @@ -1572,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[3] + "' != '" + -1206 + "'", - value.equals(BigInteger.valueOf(-1206L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[3] + "' != '" + -1206 + "'", value.equals(BigInteger.valueOf( -1206L ) ) ); } else { value = value.longValue(); expected = -1206L; @@ -1582,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_quality_indicator + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_quality_indicator + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1592,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].sv_id.constellation + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].sv_id.constellation + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1602,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].sv_id.satId + "' != '" + 35 + "'", - value.equals(BigInteger.valueOf(35L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].sv_id.satId + "' != '" + 35 + "'", value.equals(BigInteger.valueOf( 35L ) ) ); } else { value = value.longValue(); expected = 35L; @@ -1612,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[0] + "' != '" + 14008 + "'", - value.equals(BigInteger.valueOf(14008L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[0] + "' != '" + 14008 + "'", value.equals(BigInteger.valueOf( 14008L ) ) ); } else { value = value.longValue(); expected = 14008L; @@ -1622,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[1] + "' != '" + 18996 + "'", - value.equals(BigInteger.valueOf(18996L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[1] + "' != '" + 18996 + "'", value.equals(BigInteger.valueOf( 18996L ) ) ); } else { value = value.longValue(); expected = 18996L; @@ -1632,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[2] + "' != '" + 2798 + "'", - value.equals(BigInteger.valueOf(2798L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[2] + "' != '" + 2798 + "'", value.equals(BigInteger.valueOf( 2798L ) ) ); } else { value = value.longValue(); expected = 2798L; @@ -1642,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[3] + "' != '" + 5761 + "'", - value.equals(BigInteger.valueOf(5761L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[3] + "' != '" + 5761 + "'", value.equals(BigInteger.valueOf( 5761L ) ) ); } else { value = value.longValue(); expected = 5761L; @@ -1652,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_quality_indicator + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_quality_indicator + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1662,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].sv_id.constellation + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].sv_id.constellation + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1672,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].sv_id.satId + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].sv_id.satId + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1682,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[0] + "' != '" + -25256 + "'", - value.equals(BigInteger.valueOf(-25256L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[0] + "' != '" + -25256 + "'", value.equals(BigInteger.valueOf( -25256L ) ) ); } else { value = value.longValue(); expected = -25256L; @@ -1692,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[1] + "' != '" + -15330 + "'", - value.equals(BigInteger.valueOf(-15330L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[1] + "' != '" + -15330 + "'", value.equals(BigInteger.valueOf( -15330L ) ) ); } else { value = value.longValue(); expected = -15330L; @@ -1702,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[2] + "' != '" + 6831 + "'", - value.equals(BigInteger.valueOf(6831L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[2] + "' != '" + 6831 + "'", value.equals(BigInteger.valueOf( 6831L ) ) ); } else { value = value.longValue(); expected = 6831L; @@ -1712,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[3] + "' != '" + 8780 + "'", - value.equals(BigInteger.valueOf(8780L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[3] + "' != '" + 8780 + "'", value.equals(BigInteger.valueOf( 8780L ) ) ); } else { value = value.longValue(); expected = 8780L; @@ -1722,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_quality_indicator + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_quality_indicator + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1732,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].sv_id.constellation + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].sv_id.constellation + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -1742,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].sv_id.satId + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].sv_id.satId + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1752,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[0] + "' != '" + 3304 + "'", - value.equals(BigInteger.valueOf(3304L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[0] + "' != '" + 3304 + "'", value.equals(BigInteger.valueOf( 3304L ) ) ); } else { value = value.longValue(); expected = 3304L; @@ -1762,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[1] + "' != '" + -2893 + "'", - value.equals(BigInteger.valueOf(-2893L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[1] + "' != '" + -2893 + "'", value.equals(BigInteger.valueOf( -2893L ) ) ); } else { value = value.longValue(); expected = -2893L; @@ -1772,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[2] + "' != '" + -25841 + "'", - value.equals(BigInteger.valueOf(-25841L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[2] + "' != '" + -25841 + "'", value.equals(BigInteger.valueOf( -25841L ) ) ); } else { value = value.longValue(); expected = -25841L; @@ -1782,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[3] + "' != '" + -13628 + "'", - value.equals(BigInteger.valueOf(-13628L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[3] + "' != '" + -13628 + "'", value.equals(BigInteger.valueOf( -13628L ) ) ); } else { value = value.longValue(); expected = -13628L; @@ -1792,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_quality_indicator + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_quality_indicator + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -1802,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].sv_id.constellation + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].sv_id.constellation + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1812,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].sv_id.satId + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].sv_id.satId + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1822,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].stec_coeff[0] + "' != '" + -10742 + "'", - value.equals(BigInteger.valueOf(-10742L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].stec_coeff[0] + "' != '" + -10742 + "'", value.equals(BigInteger.valueOf( -10742L ) ) ); } else { value = value.longValue(); expected = -10742L; @@ -1832,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].stec_coeff[1] + "' != '" + 10098 + "'", - value.equals(BigInteger.valueOf(10098L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].stec_coeff[1] + "' != '" + 10098 + "'", value.equals(BigInteger.valueOf( 10098L ) ) ); } else { value = value.longValue(); expected = 10098L; @@ -1842,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].stec_coeff[2] + "' != '" + 7413 + "'", - value.equals(BigInteger.valueOf(7413L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].stec_coeff[2] + "' != '" + 7413 + "'", value.equals(BigInteger.valueOf( 7413L ) ) ); } else { value = value.longValue(); expected = 7413L; @@ -1852,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].stec_coeff[3] + "' != '" + 17645 + "'", - value.equals(BigInteger.valueOf(17645L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].stec_coeff[3] + "' != '" + 17645 + "'", value.equals(BigInteger.valueOf( 17645L ) ) ); } else { value = value.longValue(); expected = 17645L; @@ -1862,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].stec_quality_indicator + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].stec_quality_indicator + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1872,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].sv_id.constellation + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].sv_id.constellation + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1882,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[21].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[21].sv_id.satId + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[21].sv_id.satId + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest.java b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest.java index 91ad2a2107..44c67cf795 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrectionDep.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrectionDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrStecCorrectionDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest { @@ -30,264 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrStecCorrectionDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 158, - (byte) 228, - (byte) 114, - (byte) 117, - (byte) 50, - (byte) 158, - (byte) 156, - (byte) 42, - (byte) 119, - (byte) 156, - (byte) 157, - (byte) 112, - (byte) 47, - (byte) 60, - (byte) 132, - (byte) 40, - (byte) 70, - (byte) 87, - (byte) 235, - (byte) 83, - (byte) 177, - (byte) 198, - (byte) 3, - (byte) 14, - (byte) 8, - (byte) 70, - (byte) 12, - (byte) 44, - (byte) 53, - (byte) 181, - (byte) 90, - (byte) 174, - (byte) 247, - (byte) 150, - (byte) 58, - (byte) 172, - (byte) 247, - (byte) 179, - (byte) 119, - (byte) 176, - (byte) 125, - (byte) 4, - (byte) 177, - (byte) 229, - (byte) 113, - (byte) 14, - (byte) 77, - (byte) 153, - (byte) 185, - (byte) 23, - (byte) 53, - (byte) 222, - (byte) 187, - (byte) 146, - (byte) 250, - (byte) 91, - (byte) 212, - (byte) 215, - (byte) 14, - (byte) 107, - (byte) 250, - (byte) 94, - (byte) 107, - (byte) 33, - (byte) 91, - (byte) 234, - (byte) 0, - (byte) 213, - (byte) 139, - (byte) 95, - (byte) 179, - (byte) 50, - (byte) 21, - (byte) 74, - (byte) 174, - (byte) 169, - (byte) 61, - (byte) 86, - (byte) 91, - (byte) 142, - (byte) 51, - (byte) 108, - (byte) 9, - (byte) 38, - (byte) 225, - (byte) 146, - (byte) 101, - (byte) 73, - (byte) 139, - (byte) 56, - (byte) 117, - (byte) 82, - (byte) 37, - (byte) 213, - (byte) 108, - (byte) 205, - (byte) 93, - (byte) 18, - (byte) 19, - (byte) 195, - (byte) 33, - (byte) 202, - (byte) 87, - (byte) 206, - (byte) 178, - (byte) 125, - (byte) 188, - (byte) 119, - (byte) 56, - (byte) 69, - (byte) 150, - (byte) 150, - (byte) 76, - (byte) 3, - (byte) 131, - (byte) 18, - (byte) 73, - (byte) 208, - (byte) 72, - (byte) 232, - (byte) 8, - (byte) 250, - (byte) 203, - (byte) 178, - (byte) 170, - (byte) 163, - (byte) 252, - (byte) 86, - (byte) 49, - (byte) 247, - (byte) 178, - (byte) 166, - (byte) 56, - (byte) 31, - (byte) 10, - (byte) 119, - (byte) 213, - (byte) 241, - (byte) 212, - (byte) 164, - (byte) 1, - (byte) 162, - (byte) 42, - (byte) 18, - (byte) 124, - (byte) 169, - (byte) 121, - (byte) 158, - (byte) 26, - (byte) 56, - (byte) 23, - (byte) 142, - (byte) 125, - (byte) 40, - (byte) 120, - (byte) 67, - (byte) 45, - (byte) 126, - (byte) 235, - (byte) 110, - (byte) 23, - (byte) 12, - (byte) 241, - (byte) 88, - (byte) 69, - (byte) 239, - (byte) 252, - (byte) 57, - (byte) 93, - (byte) 44, - (byte) 201, - (byte) 216, - (byte) 173, - (byte) 242, - (byte) 178, - (byte) 17, - (byte) 5, - (byte) 223, - (byte) 169, - (byte) 192, - (byte) 3, - (byte) 77, - (byte) 107, - (byte) 2, - (byte) 144, - (byte) 233, - (byte) 14, - (byte) 88, - (byte) 32, - (byte) 209, - (byte) 1, - (byte) 17, - (byte) 123, - (byte) 155, - (byte) 41, - (byte) 183, - (byte) 244, - (byte) 158, - (byte) 82, - (byte) 53, - (byte) 103, - (byte) 14, - (byte) 202, - (byte) 185, - (byte) 35, - (byte) 181, - (byte) 21, - (byte) 118, - (byte) 254, - (byte) 250, - (byte) 50, - (byte) 184, - (byte) 50, - (byte) 31, - (byte) 45, - (byte) 56, - (byte) 163, - (byte) 177, - (byte) 126, - (byte) 217, - (byte) 79, - (byte) 171, - (byte) 239, - (byte) 237, - (byte) 188, - (byte) 238, - (byte) 112, - (byte) 201, - (byte) 118, - (byte) 141, - (byte) 18, - (byte) 163, - (byte) 103, - (byte) 35, - (byte) 63, - (byte) 21, - (byte) 82, - (byte) 129, - (byte) 18, - (byte) 117, - (byte) 85, - (byte) 190, - (byte) 79, - (byte) 210, - (byte) 215, - }; - SBPMessage sbp = new SBPMessage(0x97cc, 0x5fb, payload); - MsgSsrStecCorrectionDep msg = new MsgSsrStecCorrectionDep(sbp); + byte[] payload = new byte[] {(byte)158,(byte)228,(byte)114,(byte)117,(byte)50,(byte)158,(byte)156,(byte)42,(byte)119,(byte)156,(byte)157,(byte)112,(byte)47,(byte)60,(byte)132,(byte)40,(byte)70,(byte)87,(byte)235,(byte)83,(byte)177,(byte)198,(byte)3,(byte)14,(byte)8,(byte)70,(byte)12,(byte)44,(byte)53,(byte)181,(byte)90,(byte)174,(byte)247,(byte)150,(byte)58,(byte)172,(byte)247,(byte)179,(byte)119,(byte)176,(byte)125,(byte)4,(byte)177,(byte)229,(byte)113,(byte)14,(byte)77,(byte)153,(byte)185,(byte)23,(byte)53,(byte)222,(byte)187,(byte)146,(byte)250,(byte)91,(byte)212,(byte)215,(byte)14,(byte)107,(byte)250,(byte)94,(byte)107,(byte)33,(byte)91,(byte)234,(byte)0,(byte)213,(byte)139,(byte)95,(byte)179,(byte)50,(byte)21,(byte)74,(byte)174,(byte)169,(byte)61,(byte)86,(byte)91,(byte)142,(byte)51,(byte)108,(byte)9,(byte)38,(byte)225,(byte)146,(byte)101,(byte)73,(byte)139,(byte)56,(byte)117,(byte)82,(byte)37,(byte)213,(byte)108,(byte)205,(byte)93,(byte)18,(byte)19,(byte)195,(byte)33,(byte)202,(byte)87,(byte)206,(byte)178,(byte)125,(byte)188,(byte)119,(byte)56,(byte)69,(byte)150,(byte)150,(byte)76,(byte)3,(byte)131,(byte)18,(byte)73,(byte)208,(byte)72,(byte)232,(byte)8,(byte)250,(byte)203,(byte)178,(byte)170,(byte)163,(byte)252,(byte)86,(byte)49,(byte)247,(byte)178,(byte)166,(byte)56,(byte)31,(byte)10,(byte)119,(byte)213,(byte)241,(byte)212,(byte)164,(byte)1,(byte)162,(byte)42,(byte)18,(byte)124,(byte)169,(byte)121,(byte)158,(byte)26,(byte)56,(byte)23,(byte)142,(byte)125,(byte)40,(byte)120,(byte)67,(byte)45,(byte)126,(byte)235,(byte)110,(byte)23,(byte)12,(byte)241,(byte)88,(byte)69,(byte)239,(byte)252,(byte)57,(byte)93,(byte)44,(byte)201,(byte)216,(byte)173,(byte)242,(byte)178,(byte)17,(byte)5,(byte)223,(byte)169,(byte)192,(byte)3,(byte)77,(byte)107,(byte)2,(byte)144,(byte)233,(byte)14,(byte)88,(byte)32,(byte)209,(byte)1,(byte)17,(byte)123,(byte)155,(byte)41,(byte)183,(byte)244,(byte)158,(byte)82,(byte)53,(byte)103,(byte)14,(byte)202,(byte)185,(byte)35,(byte)181,(byte)21,(byte)118,(byte)254,(byte)250,(byte)50,(byte)184,(byte)50,(byte)31,(byte)45,(byte)56,(byte)163,(byte)177,(byte)126,(byte)217,(byte)79,(byte)171,(byte)239,(byte)237,(byte)188,(byte)238,(byte)112,(byte)201,(byte)118,(byte)141,(byte)18,(byte)163,(byte)103,(byte)35,(byte)63,(byte)21,(byte)82,(byte)129,(byte)18,(byte)117,(byte)85,(byte)190,(byte)79,(byte)210,(byte)215, }; + SBPMessage sbp = new SBPMessage( 0x97cc, 0x5fb, payload ); + MsgSsrStecCorrectionDep msg = new MsgSsrStecCorrectionDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.iod_atmo + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.header.iod_atmo + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -295,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -305,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -315,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_id + "' != '" + 30066 + "'", - value.equals(BigInteger.valueOf(30066L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_id + "' != '" + 30066 + "'", value.equals(BigInteger.valueOf( 30066L ) ) ); } else { value = value.longValue(); expected = 30066L; @@ -325,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.tile_set_id + "' != '" + 58526 + "'", - value.equals(BigInteger.valueOf(58526L))); + org.junit.Assert.assertTrue("'" + msg.header.tile_set_id + "' != '" + 58526 + "'", value.equals(BigInteger.valueOf( 58526L ) ) ); } else { value = value.longValue(); expected = 58526L; @@ -335,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 714907186 + "'", - value.equals(BigInteger.valueOf(714907186L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 714907186 + "'", value.equals(BigInteger.valueOf( 714907186L ) ) ); } else { value = value.longValue(); expected = 714907186L; @@ -345,9 +90,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 40055 + "'", - value.equals(BigInteger.valueOf(40055L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 40055 + "'", value.equals(BigInteger.valueOf( 40055L ) ) ); } else { value = value.longValue(); expected = 40055L; @@ -355,9 +98,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 47 + "'", - value.equals(BigInteger.valueOf(47L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 47 + "'", value.equals(BigInteger.valueOf( 47L ) ) ); } else { value = value.longValue(); expected = 47L; @@ -365,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + -5289 + "'", - value.equals(BigInteger.valueOf(-5289L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + -5289 + "'", value.equals(BigInteger.valueOf( -5289L ) ) ); } else { value = value.longValue(); expected = -5289L; @@ -375,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + -20141 + "'", - value.equals(BigInteger.valueOf(-20141L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + -20141 + "'", value.equals(BigInteger.valueOf( -20141L ) ) ); } else { value = value.longValue(); expected = -20141L; @@ -385,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 966 + "'", - value.equals(BigInteger.valueOf(966L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 966 + "'", value.equals(BigInteger.valueOf( 966L ) ) ); } else { value = value.longValue(); expected = 966L; @@ -395,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 2062 + "'", - value.equals(BigInteger.valueOf(2062L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 2062 + "'", value.equals(BigInteger.valueOf( 2062L ) ) ); } else { value = value.longValue(); expected = 2062L; @@ -405,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -415,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -425,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -435,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + -19147 + "'", - value.equals(BigInteger.valueOf(-19147L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + -19147 + "'", value.equals(BigInteger.valueOf( -19147L ) ) ); } else { value = value.longValue(); expected = -19147L; @@ -445,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + -20902 + "'", - value.equals(BigInteger.valueOf(-20902L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + -20902 + "'", value.equals(BigInteger.valueOf( -20902L ) ) ); } else { value = value.longValue(); expected = -20902L; @@ -455,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + -26889 + "'", - value.equals(BigInteger.valueOf(-26889L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + -26889 + "'", value.equals(BigInteger.valueOf( -26889L ) ) ); } else { value = value.longValue(); expected = -26889L; @@ -465,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + -21446 + "'", - value.equals(BigInteger.valueOf(-21446L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + -21446 + "'", value.equals(BigInteger.valueOf( -21446L ) ) ); } else { value = value.longValue(); expected = -21446L; @@ -475,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -485,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -495,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -505,9 +218,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[0] + "' != '" + 32176 + "'", - value.equals(BigInteger.valueOf(32176L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[0] + "' != '" + 32176 + "'", value.equals(BigInteger.valueOf( 32176L ) ) ); } else { value = value.longValue(); expected = 32176L; @@ -515,9 +226,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[1] + "' != '" + -20220 + "'", - value.equals(BigInteger.valueOf(-20220L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[1] + "' != '" + -20220 + "'", value.equals(BigInteger.valueOf( -20220L ) ) ); } else { value = value.longValue(); expected = -20220L; @@ -525,9 +234,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[2] + "' != '" + 29157 + "'", - value.equals(BigInteger.valueOf(29157L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[2] + "' != '" + 29157 + "'", value.equals(BigInteger.valueOf( 29157L ) ) ); } else { value = value.longValue(); expected = 29157L; @@ -535,9 +242,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_coeff[3] + "' != '" + 19726 + "'", - value.equals(BigInteger.valueOf(19726L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_coeff[3] + "' != '" + 19726 + "'", value.equals(BigInteger.valueOf( 19726L ) ) ); } else { value = value.longValue(); expected = 19726L; @@ -545,9 +250,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].stec_quality_indicator + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].stec_quality_indicator + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -555,9 +258,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].sv_id.constellation + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].sv_id.constellation + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -565,9 +266,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[2].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[2].sv_id.satId + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[2].sv_id.satId + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -575,9 +274,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[0] + "' != '" + -8651 + "'", - value.equals(BigInteger.valueOf(-8651L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[0] + "' != '" + -8651 + "'", value.equals(BigInteger.valueOf( -8651L ) ) ); } else { value = value.longValue(); expected = -8651L; @@ -585,9 +282,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[1] + "' != '" + -27973 + "'", - value.equals(BigInteger.valueOf(-27973L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[1] + "' != '" + -27973 + "'", value.equals(BigInteger.valueOf( -27973L ) ) ); } else { value = value.longValue(); expected = -27973L; @@ -595,9 +290,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[2] + "' != '" + 23546 + "'", - value.equals(BigInteger.valueOf(23546L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[2] + "' != '" + 23546 + "'", value.equals(BigInteger.valueOf( 23546L ) ) ); } else { value = value.longValue(); expected = 23546L; @@ -605,9 +298,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_coeff[3] + "' != '" + -10284 + "'", - value.equals(BigInteger.valueOf(-10284L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_coeff[3] + "' != '" + -10284 + "'", value.equals(BigInteger.valueOf( -10284L ) ) ); } else { value = value.longValue(); expected = -10284L; @@ -615,9 +306,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].stec_quality_indicator + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].stec_quality_indicator + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -625,9 +314,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].sv_id.constellation + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].sv_id.constellation + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -635,9 +322,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[3].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[3].sv_id.satId + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[3].sv_id.satId + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -645,9 +330,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[0] + "' != '" + 27486 + "'", - value.equals(BigInteger.valueOf(27486L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[0] + "' != '" + 27486 + "'", value.equals(BigInteger.valueOf( 27486L ) ) ); } else { value = value.longValue(); expected = 27486L; @@ -655,9 +338,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[1] + "' != '" + 23329 + "'", - value.equals(BigInteger.valueOf(23329L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[1] + "' != '" + 23329 + "'", value.equals(BigInteger.valueOf( 23329L ) ) ); } else { value = value.longValue(); expected = 23329L; @@ -665,9 +346,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[2] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[2] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -675,9 +354,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_coeff[3] + "' != '" + -29739 + "'", - value.equals(BigInteger.valueOf(-29739L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_coeff[3] + "' != '" + -29739 + "'", value.equals(BigInteger.valueOf( -29739L ) ) ); } else { value = value.longValue(); expected = -29739L; @@ -685,9 +362,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].stec_quality_indicator + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].stec_quality_indicator + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -695,9 +370,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].sv_id.constellation + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].sv_id.constellation + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -705,9 +378,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[4].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[4].sv_id.satId + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[4].sv_id.satId + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -715,9 +386,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[0] + "' != '" + 18965 + "'", - value.equals(BigInteger.valueOf(18965L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[0] + "' != '" + 18965 + "'", value.equals(BigInteger.valueOf( 18965L ) ) ); } else { value = value.longValue(); expected = 18965L; @@ -725,9 +394,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[1] + "' != '" + -22098 + "'", - value.equals(BigInteger.valueOf(-22098L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[1] + "' != '" + -22098 + "'", value.equals(BigInteger.valueOf( -22098L ) ) ); } else { value = value.longValue(); expected = -22098L; @@ -735,9 +402,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[2] + "' != '" + 22077 + "'", - value.equals(BigInteger.valueOf(22077L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[2] + "' != '" + 22077 + "'", value.equals(BigInteger.valueOf( 22077L ) ) ); } else { value = value.longValue(); expected = 22077L; @@ -745,9 +410,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_coeff[3] + "' != '" + -29093 + "'", - value.equals(BigInteger.valueOf(-29093L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_coeff[3] + "' != '" + -29093 + "'", value.equals(BigInteger.valueOf( -29093L ) ) ); } else { value = value.longValue(); expected = -29093L; @@ -755,9 +418,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].stec_quality_indicator + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].stec_quality_indicator + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -765,9 +426,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].sv_id.constellation + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].sv_id.constellation + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -775,9 +434,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[5].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[5].sv_id.satId + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[5].sv_id.satId + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -785,9 +442,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[0] + "' != '" + -7898 + "'", - value.equals(BigInteger.valueOf(-7898L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[0] + "' != '" + -7898 + "'", value.equals(BigInteger.valueOf( -7898L ) ) ); } else { value = value.longValue(); expected = -7898L; @@ -795,9 +450,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[1] + "' != '" + 26002 + "'", - value.equals(BigInteger.valueOf(26002L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[1] + "' != '" + 26002 + "'", value.equals(BigInteger.valueOf( 26002L ) ) ); } else { value = value.longValue(); expected = 26002L; @@ -805,9 +458,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[2] + "' != '" + -29879 + "'", - value.equals(BigInteger.valueOf(-29879L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[2] + "' != '" + -29879 + "'", value.equals(BigInteger.valueOf( -29879L ) ) ); } else { value = value.longValue(); expected = -29879L; @@ -815,9 +466,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_coeff[3] + "' != '" + 30008 + "'", - value.equals(BigInteger.valueOf(30008L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_coeff[3] + "' != '" + 30008 + "'", value.equals(BigInteger.valueOf( 30008L ) ) ); } else { value = value.longValue(); expected = 30008L; @@ -825,9 +474,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].stec_quality_indicator + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].stec_quality_indicator + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -835,9 +482,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].sv_id.constellation + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].sv_id.constellation + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -845,9 +490,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[6].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[6].sv_id.satId + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[6].sv_id.satId + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -855,9 +498,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[0] + "' != '" + -12948 + "'", - value.equals(BigInteger.valueOf(-12948L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[0] + "' != '" + -12948 + "'", value.equals(BigInteger.valueOf( -12948L ) ) ); } else { value = value.longValue(); expected = -12948L; @@ -865,9 +506,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[1] + "' != '" + 4701 + "'", - value.equals(BigInteger.valueOf(4701L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[1] + "' != '" + 4701 + "'", value.equals(BigInteger.valueOf( 4701L ) ) ); } else { value = value.longValue(); expected = 4701L; @@ -875,9 +514,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[2] + "' != '" + -15597 + "'", - value.equals(BigInteger.valueOf(-15597L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[2] + "' != '" + -15597 + "'", value.equals(BigInteger.valueOf( -15597L ) ) ); } else { value = value.longValue(); expected = -15597L; @@ -885,9 +522,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_coeff[3] + "' != '" + -13791 + "'", - value.equals(BigInteger.valueOf(-13791L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_coeff[3] + "' != '" + -13791 + "'", value.equals(BigInteger.valueOf( -13791L ) ) ); } else { value = value.longValue(); expected = -13791L; @@ -895,9 +530,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].stec_quality_indicator + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].stec_quality_indicator + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -905,9 +538,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].sv_id.constellation + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].sv_id.constellation + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -915,9 +546,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[7].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[7].sv_id.satId + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[7].sv_id.satId + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -925,9 +554,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[0] + "' != '" + -17283 + "'", - value.equals(BigInteger.valueOf(-17283L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[0] + "' != '" + -17283 + "'", value.equals(BigInteger.valueOf( -17283L ) ) ); } else { value = value.longValue(); expected = -17283L; @@ -935,9 +562,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[1] + "' != '" + 14455 + "'", - value.equals(BigInteger.valueOf(14455L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[1] + "' != '" + 14455 + "'", value.equals(BigInteger.valueOf( 14455L ) ) ); } else { value = value.longValue(); expected = 14455L; @@ -945,9 +570,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[2] + "' != '" + -27067 + "'", - value.equals(BigInteger.valueOf(-27067L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[2] + "' != '" + -27067 + "'", value.equals(BigInteger.valueOf( -27067L ) ) ); } else { value = value.longValue(); expected = -27067L; @@ -955,9 +578,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_coeff[3] + "' != '" + 19606 + "'", - value.equals(BigInteger.valueOf(19606L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_coeff[3] + "' != '" + 19606 + "'", value.equals(BigInteger.valueOf( 19606L ) ) ); } else { value = value.longValue(); expected = 19606L; @@ -965,9 +586,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].stec_quality_indicator + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].stec_quality_indicator + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -975,9 +594,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].sv_id.constellation + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].sv_id.constellation + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -985,9 +602,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[8].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[8].sv_id.satId + "' != '" + 87 + "'", - value.equals(BigInteger.valueOf(87L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[8].sv_id.satId + "' != '" + 87 + "'", value.equals(BigInteger.valueOf( 87L ) ) ); } else { value = value.longValue(); expected = 87L; @@ -995,9 +610,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[0] + "' != '" + -12215 + "'", - value.equals(BigInteger.valueOf(-12215L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[0] + "' != '" + -12215 + "'", value.equals(BigInteger.valueOf( -12215L ) ) ); } else { value = value.longValue(); expected = -12215L; @@ -1005,9 +618,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[1] + "' != '" + -6072 + "'", - value.equals(BigInteger.valueOf(-6072L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[1] + "' != '" + -6072 + "'", value.equals(BigInteger.valueOf( -6072L ) ) ); } else { value = value.longValue(); expected = -6072L; @@ -1015,9 +626,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[2] + "' != '" + -1528 + "'", - value.equals(BigInteger.valueOf(-1528L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[2] + "' != '" + -1528 + "'", value.equals(BigInteger.valueOf( -1528L ) ) ); } else { value = value.longValue(); expected = -1528L; @@ -1025,9 +634,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_coeff[3] + "' != '" + -19765 + "'", - value.equals(BigInteger.valueOf(-19765L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_coeff[3] + "' != '" + -19765 + "'", value.equals(BigInteger.valueOf( -19765L ) ) ); } else { value = value.longValue(); expected = -19765L; @@ -1035,9 +642,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].stec_quality_indicator + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].stec_quality_indicator + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1045,9 +650,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].sv_id.constellation + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].sv_id.constellation + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -1055,9 +658,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[9].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[9].sv_id.satId + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[9].sv_id.satId + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1065,9 +666,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[0] + "' != '" + 12630 + "'", - value.equals(BigInteger.valueOf(12630L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[0] + "' != '" + 12630 + "'", value.equals(BigInteger.valueOf( 12630L ) ) ); } else { value = value.longValue(); expected = 12630L; @@ -1075,9 +674,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[1] + "' != '" + -19721 + "'", - value.equals(BigInteger.valueOf(-19721L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[1] + "' != '" + -19721 + "'", value.equals(BigInteger.valueOf( -19721L ) ) ); } else { value = value.longValue(); expected = -19721L; @@ -1085,9 +682,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[2] + "' != '" + 14502 + "'", - value.equals(BigInteger.valueOf(14502L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[2] + "' != '" + 14502 + "'", value.equals(BigInteger.valueOf( 14502L ) ) ); } else { value = value.longValue(); expected = 14502L; @@ -1095,9 +690,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_coeff[3] + "' != '" + 2591 + "'", - value.equals(BigInteger.valueOf(2591L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_coeff[3] + "' != '" + 2591 + "'", value.equals(BigInteger.valueOf( 2591L ) ) ); } else { value = value.longValue(); expected = 2591L; @@ -1105,9 +698,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].stec_quality_indicator + "' != '" + 252 + "'", - value.equals(BigInteger.valueOf(252L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].stec_quality_indicator + "' != '" + 252 + "'", value.equals(BigInteger.valueOf( 252L ) ) ); } else { value = value.longValue(); expected = 252L; @@ -1115,9 +706,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].sv_id.constellation + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].sv_id.constellation + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -1125,9 +714,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[10].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[10].sv_id.satId + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[10].sv_id.satId + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1135,9 +722,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[0] + "' != '" + -23340 + "'", - value.equals(BigInteger.valueOf(-23340L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[0] + "' != '" + -23340 + "'", value.equals(BigInteger.valueOf( -23340L ) ) ); } else { value = value.longValue(); expected = -23340L; @@ -1145,9 +730,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[1] + "' != '" + -24063 + "'", - value.equals(BigInteger.valueOf(-24063L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[1] + "' != '" + -24063 + "'", value.equals(BigInteger.valueOf( -24063L ) ) ); } else { value = value.longValue(); expected = -24063L; @@ -1155,9 +738,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[2] + "' != '" + 4650 + "'", - value.equals(BigInteger.valueOf(4650L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[2] + "' != '" + 4650 + "'", value.equals(BigInteger.valueOf( 4650L ) ) ); } else { value = value.longValue(); expected = 4650L; @@ -1165,9 +746,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_coeff[3] + "' != '" + -22148 + "'", - value.equals(BigInteger.valueOf(-22148L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_coeff[3] + "' != '" + -22148 + "'", value.equals(BigInteger.valueOf( -22148L ) ) ); } else { value = value.longValue(); expected = -22148L; @@ -1175,9 +754,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].stec_quality_indicator + "' != '" + 241 + "'", - value.equals(BigInteger.valueOf(241L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].stec_quality_indicator + "' != '" + 241 + "'", value.equals(BigInteger.valueOf( 241L ) ) ); } else { value = value.longValue(); expected = 241L; @@ -1185,9 +762,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].sv_id.constellation + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].sv_id.constellation + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1195,9 +770,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[11].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[11].sv_id.satId + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[11].sv_id.satId + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -1205,9 +778,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[0] + "' != '" + 5944 + "'", - value.equals(BigInteger.valueOf(5944L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[0] + "' != '" + 5944 + "'", value.equals(BigInteger.valueOf( 5944L ) ) ); } else { value = value.longValue(); expected = 5944L; @@ -1215,9 +786,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[1] + "' != '" + 32142 + "'", - value.equals(BigInteger.valueOf(32142L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[1] + "' != '" + 32142 + "'", value.equals(BigInteger.valueOf( 32142L ) ) ); } else { value = value.longValue(); expected = 32142L; @@ -1225,9 +794,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[2] + "' != '" + 30760 + "'", - value.equals(BigInteger.valueOf(30760L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[2] + "' != '" + 30760 + "'", value.equals(BigInteger.valueOf( 30760L ) ) ); } else { value = value.longValue(); expected = 30760L; @@ -1235,9 +802,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_coeff[3] + "' != '" + 11587 + "'", - value.equals(BigInteger.valueOf(11587L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_coeff[3] + "' != '" + 11587 + "'", value.equals(BigInteger.valueOf( 11587L ) ) ); } else { value = value.longValue(); expected = 11587L; @@ -1245,9 +810,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].stec_quality_indicator + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].stec_quality_indicator + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1255,9 +818,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].sv_id.constellation + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].sv_id.constellation + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1265,9 +826,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[12].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[12].sv_id.satId + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[12].sv_id.satId + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -1275,9 +834,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[0] + "' != '" + 3095 + "'", - value.equals(BigInteger.valueOf(3095L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[0] + "' != '" + 3095 + "'", value.equals(BigInteger.valueOf( 3095L ) ) ); } else { value = value.longValue(); expected = 3095L; @@ -1285,9 +842,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[1] + "' != '" + 22769 + "'", - value.equals(BigInteger.valueOf(22769L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[1] + "' != '" + 22769 + "'", value.equals(BigInteger.valueOf( 22769L ) ) ); } else { value = value.longValue(); expected = 22769L; @@ -1295,9 +850,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[2] + "' != '" + -4283 + "'", - value.equals(BigInteger.valueOf(-4283L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[2] + "' != '" + -4283 + "'", value.equals(BigInteger.valueOf( -4283L ) ) ); } else { value = value.longValue(); expected = -4283L; @@ -1305,9 +858,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_coeff[3] + "' != '" + 14844 + "'", - value.equals(BigInteger.valueOf(14844L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_coeff[3] + "' != '" + 14844 + "'", value.equals(BigInteger.valueOf( 14844L ) ) ); } else { value = value.longValue(); expected = 14844L; @@ -1315,9 +866,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].stec_quality_indicator + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].stec_quality_indicator + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1325,9 +874,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].sv_id.constellation + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].sv_id.constellation + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -1335,9 +882,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[13].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[13].sv_id.satId + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[13].sv_id.satId + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1345,9 +890,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[0] + "' != '" + -21032 + "'", - value.equals(BigInteger.valueOf(-21032L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[0] + "' != '" + -21032 + "'", value.equals(BigInteger.valueOf( -21032L ) ) ); } else { value = value.longValue(); expected = -21032L; @@ -1355,9 +898,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[1] + "' != '" + -19726 + "'", - value.equals(BigInteger.valueOf(-19726L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[1] + "' != '" + -19726 + "'", value.equals(BigInteger.valueOf( -19726L ) ) ); } else { value = value.longValue(); expected = -19726L; @@ -1365,9 +906,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[2] + "' != '" + 1297 + "'", - value.equals(BigInteger.valueOf(1297L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[2] + "' != '" + 1297 + "'", value.equals(BigInteger.valueOf( 1297L ) ) ); } else { value = value.longValue(); expected = 1297L; @@ -1375,9 +914,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_coeff[3] + "' != '" + -22049 + "'", - value.equals(BigInteger.valueOf(-22049L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_coeff[3] + "' != '" + -22049 + "'", value.equals(BigInteger.valueOf( -22049L ) ) ); } else { value = value.longValue(); expected = -22049L; @@ -1385,9 +922,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].stec_quality_indicator + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].stec_quality_indicator + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -1395,9 +930,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].sv_id.constellation + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].sv_id.constellation + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1405,9 +938,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[14].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[14].sv_id.satId + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[14].sv_id.satId + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1415,9 +946,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[0] + "' != '" + 619 + "'", - value.equals(BigInteger.valueOf(619L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[0] + "' != '" + 619 + "'", value.equals(BigInteger.valueOf( 619L ) ) ); } else { value = value.longValue(); expected = 619L; @@ -1425,9 +954,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[1] + "' != '" + -5744 + "'", - value.equals(BigInteger.valueOf(-5744L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[1] + "' != '" + -5744 + "'", value.equals(BigInteger.valueOf( -5744L ) ) ); } else { value = value.longValue(); expected = -5744L; @@ -1435,9 +962,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[2] + "' != '" + 22542 + "'", - value.equals(BigInteger.valueOf(22542L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[2] + "' != '" + 22542 + "'", value.equals(BigInteger.valueOf( 22542L ) ) ); } else { value = value.longValue(); expected = 22542L; @@ -1445,9 +970,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_coeff[3] + "' != '" + -12000 + "'", - value.equals(BigInteger.valueOf(-12000L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_coeff[3] + "' != '" + -12000 + "'", value.equals(BigInteger.valueOf( -12000L ) ) ); } else { value = value.longValue(); expected = -12000L; @@ -1455,9 +978,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].stec_quality_indicator + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].stec_quality_indicator + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -1465,9 +986,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].sv_id.constellation + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].sv_id.constellation + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1475,9 +994,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[15].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[15].sv_id.satId + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[15].sv_id.satId + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1485,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[0] + "' != '" + 10651 + "'", - value.equals(BigInteger.valueOf(10651L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[0] + "' != '" + 10651 + "'", value.equals(BigInteger.valueOf( 10651L ) ) ); } else { value = value.longValue(); expected = 10651L; @@ -1495,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[1] + "' != '" + -2889 + "'", - value.equals(BigInteger.valueOf(-2889L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[1] + "' != '" + -2889 + "'", value.equals(BigInteger.valueOf( -2889L ) ) ); } else { value = value.longValue(); expected = -2889L; @@ -1505,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[2] + "' != '" + 21150 + "'", - value.equals(BigInteger.valueOf(21150L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[2] + "' != '" + 21150 + "'", value.equals(BigInteger.valueOf( 21150L ) ) ); } else { value = value.longValue(); expected = 21150L; @@ -1515,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_coeff[3] + "' != '" + 26421 + "'", - value.equals(BigInteger.valueOf(26421L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_coeff[3] + "' != '" + 26421 + "'", value.equals(BigInteger.valueOf( 26421L ) ) ); } else { value = value.longValue(); expected = 26421L; @@ -1525,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].stec_quality_indicator + "' != '" + 123 + "'", - value.equals(BigInteger.valueOf(123L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].stec_quality_indicator + "' != '" + 123 + "'", value.equals(BigInteger.valueOf( 123L ) ) ); } else { value = value.longValue(); expected = 123L; @@ -1535,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].sv_id.constellation + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].sv_id.constellation + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -1545,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[16].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[16].sv_id.satId + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[16].sv_id.satId + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1555,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[0] + "' != '" + -19165 + "'", - value.equals(BigInteger.valueOf(-19165L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[0] + "' != '" + -19165 + "'", value.equals(BigInteger.valueOf( -19165L ) ) ); } else { value = value.longValue(); expected = -19165L; @@ -1565,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[1] + "' != '" + 30229 + "'", - value.equals(BigInteger.valueOf(30229L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[1] + "' != '" + 30229 + "'", value.equals(BigInteger.valueOf( 30229L ) ) ); } else { value = value.longValue(); expected = 30229L; @@ -1575,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[2] + "' != '" + -1282 + "'", - value.equals(BigInteger.valueOf(-1282L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[2] + "' != '" + -1282 + "'", value.equals(BigInteger.valueOf( -1282L ) ) ); } else { value = value.longValue(); expected = -1282L; @@ -1585,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_coeff[3] + "' != '" + -18382 + "'", - value.equals(BigInteger.valueOf(-18382L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_coeff[3] + "' != '" + -18382 + "'", value.equals(BigInteger.valueOf( -18382L ) ) ); } else { value = value.longValue(); expected = -18382L; @@ -1595,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].stec_quality_indicator + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].stec_quality_indicator + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1605,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].sv_id.constellation + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].sv_id.constellation + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1615,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[17].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[17].sv_id.satId + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[17].sv_id.satId + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -1625,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[0] + "' != '" + -23752 + "'", - value.equals(BigInteger.valueOf(-23752L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[0] + "' != '" + -23752 + "'", value.equals(BigInteger.valueOf( -23752L ) ) ); } else { value = value.longValue(); expected = -23752L; @@ -1635,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[1] + "' != '" + 32433 + "'", - value.equals(BigInteger.valueOf(32433L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[1] + "' != '" + 32433 + "'", value.equals(BigInteger.valueOf( 32433L ) ) ); } else { value = value.longValue(); expected = 32433L; @@ -1645,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[2] + "' != '" + 20441 + "'", - value.equals(BigInteger.valueOf(20441L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[2] + "' != '" + 20441 + "'", value.equals(BigInteger.valueOf( 20441L ) ) ); } else { value = value.longValue(); expected = 20441L; @@ -1655,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_coeff[3] + "' != '" + -4181 + "'", - value.equals(BigInteger.valueOf(-4181L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_coeff[3] + "' != '" + -4181 + "'", value.equals(BigInteger.valueOf( -4181L ) ) ); } else { value = value.longValue(); expected = -4181L; @@ -1665,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].stec_quality_indicator + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].stec_quality_indicator + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1675,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].sv_id.constellation + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].sv_id.constellation + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1685,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[18].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[18].sv_id.satId + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[18].sv_id.satId + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1695,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[0] + "' != '" + -13968 + "'", - value.equals(BigInteger.valueOf(-13968L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[0] + "' != '" + -13968 + "'", value.equals(BigInteger.valueOf( -13968L ) ) ); } else { value = value.longValue(); expected = -13968L; @@ -1705,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[1] + "' != '" + -29322 + "'", - value.equals(BigInteger.valueOf(-29322L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[1] + "' != '" + -29322 + "'", value.equals(BigInteger.valueOf( -29322L ) ) ); } else { value = value.longValue(); expected = -29322L; @@ -1715,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[2] + "' != '" + -23790 + "'", - value.equals(BigInteger.valueOf(-23790L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[2] + "' != '" + -23790 + "'", value.equals(BigInteger.valueOf( -23790L ) ) ); } else { value = value.longValue(); expected = -23790L; @@ -1725,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_coeff[3] + "' != '" + 9063 + "'", - value.equals(BigInteger.valueOf(9063L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_coeff[3] + "' != '" + 9063 + "'", value.equals(BigInteger.valueOf( 9063L ) ) ); } else { value = value.longValue(); expected = 9063L; @@ -1735,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].stec_quality_indicator + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].stec_quality_indicator + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1745,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].sv_id.constellation + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].sv_id.constellation + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1755,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[19].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[19].sv_id.satId + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[19].sv_id.satId + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -1765,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[0] + "' != '" + 4737 + "'", - value.equals(BigInteger.valueOf(4737L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[0] + "' != '" + 4737 + "'", value.equals(BigInteger.valueOf( 4737L ) ) ); } else { value = value.longValue(); expected = 4737L; @@ -1775,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[1] + "' != '" + 21877 + "'", - value.equals(BigInteger.valueOf(21877L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[1] + "' != '" + 21877 + "'", value.equals(BigInteger.valueOf( 21877L ) ) ); } else { value = value.longValue(); expected = 21877L; @@ -1785,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[2] + "' != '" + 20414 + "'", - value.equals(BigInteger.valueOf(20414L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[2] + "' != '" + 20414 + "'", value.equals(BigInteger.valueOf( 20414L ) ) ); } else { value = value.longValue(); expected = 20414L; @@ -1795,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_coeff[3] + "' != '" + -10286 + "'", - value.equals(BigInteger.valueOf(-10286L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_coeff[3] + "' != '" + -10286 + "'", value.equals(BigInteger.valueOf( -10286L ) ) ); } else { value = value.longValue(); expected = -10286L; @@ -1805,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].stec_quality_indicator + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].stec_quality_indicator + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -1815,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].sv_id.constellation + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].sv_id.constellation + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -1825,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[20].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[20].sv_id.satId + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[20].sv_id.satId + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionTest.java b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionTest.java index a7b67690e4..287461e93e 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrStecCorrectionTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrection.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrStecCorrection.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrStecCorrection; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrStecCorrectionTest { @@ -27,26 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrStecCorrectionTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrStecCorrectionTest.test1"); - byte[] payload = - new byte[] { - (byte) 180, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 0, (byte) 1, - (byte) 1, (byte) 10, (byte) 0, (byte) 15, (byte) 1, (byte) 0, (byte) 10, - (byte) 0, (byte) 2, (byte) 1, (byte) 1, (byte) 1, (byte) 63, (byte) 0, - (byte) 62, (byte) 0, (byte) 61, (byte) 0, (byte) 60, (byte) 0, (byte) 31, - (byte) 15, (byte) 5, (byte) 63, (byte) 0, (byte) 64, (byte) 0, (byte) 65, - (byte) 0, (byte) 66, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05FD, payload); - MsgSsrStecCorrection msg = new MsgSsrStecCorrection(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrStecCorrectionTest.test1"); + byte[] payload = new byte[] {(byte)180,(byte)0,(byte)0,(byte)0,(byte)3,(byte)0,(byte)1,(byte)1,(byte)10,(byte)0,(byte)15,(byte)1,(byte)0,(byte)10,(byte)0,(byte)2,(byte)1,(byte)1,(byte)1,(byte)63,(byte)0,(byte)62,(byte)0,(byte)61,(byte)0,(byte)60,(byte)0,(byte)31,(byte)15,(byte)5,(byte)63,(byte)0,(byte)64,(byte)0,(byte)65,(byte)0,(byte)66,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05FD, payload ); + MsgSsrStecCorrection msg = new MsgSsrStecCorrection( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.header.num_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.num_msgs + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.num_msgs + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -54,9 +50,7 @@ public void test1() throws Throwable { } value = msg.header.seq_num; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.seq_num + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.header.seq_num + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -64,9 +58,7 @@ public void test1() throws Throwable { } value = msg.header.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.sol_id + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.header.sol_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -74,9 +66,7 @@ public void test1() throws Throwable { } value = msg.header.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.tow + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.header.time.tow + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -84,9 +74,7 @@ public void test1() throws Throwable { } value = msg.header.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.time.wn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.header.time.wn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -94,9 +82,7 @@ public void test1() throws Throwable { } value = msg.header.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.header.update_interval + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.header.update_interval + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -104,8 +90,7 @@ public void test1() throws Throwable { } value = msg.n_sats; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.n_sats + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -113,9 +98,7 @@ public void test1() throws Throwable { } value = msg.ssr_iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.ssr_iod_atmo + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -123,9 +106,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[0] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -133,9 +114,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[1] + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -143,9 +122,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[2] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -153,9 +130,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_coeff[3] + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -163,9 +138,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].stec_quality_indicator + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -173,9 +146,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.constellation + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -183,9 +154,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[0].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[0].sv_id.satId + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -193,9 +162,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[0] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -203,9 +170,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[1] + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -213,9 +178,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + 65 + "'", - value.equals(BigInteger.valueOf(65L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[2] + "' != '" + 65 + "'", value.equals(BigInteger.valueOf( 65L ) ) ); } else { value = value.longValue(); expected = 65L; @@ -223,9 +186,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_coeff[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_coeff[3] + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -233,9 +194,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].stec_quality_indicator; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].stec_quality_indicator + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -243,9 +202,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.constellation; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.constellation + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -253,9 +210,7 @@ public void test1() throws Throwable { } value = msg.stec_sat_list[1].sv_id.satId; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.stec_sat_list[1].sv_id.satId + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -263,8 +218,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -272,9 +226,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest.java b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest.java index da71a978ac..b93af10b0f 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinitionDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinitionDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest { @@ -30,43 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrTileDefinitionDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 57, - (byte) 190, - (byte) 178, - (byte) 247, - (byte) 8, - (byte) 185, - (byte) 9, - (byte) 181, - (byte) 162, - (byte) 240, - (byte) 65, - (byte) 19, - (byte) 255, - (byte) 143, - (byte) 21, - (byte) 191, - (byte) 239, - (byte) 205, - (byte) 171, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x85c8, 0x5f6, payload); - MsgSsrTileDefinitionDepA msg = new MsgSsrTileDefinitionDepA(sbp); + byte[] payload = new byte[] {(byte)57,(byte)190,(byte)178,(byte)247,(byte)8,(byte)185,(byte)9,(byte)181,(byte)162,(byte)240,(byte)65,(byte)19,(byte)255,(byte)143,(byte)21,(byte)191,(byte)239,(byte)205,(byte)171,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x85c8, 0x5f6, payload ); + MsgSsrTileDefinitionDepA msg = new MsgSsrTileDefinitionDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.bitmask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.bitmask + "' != '" + 11259375 + "'", - value.equals(BigInteger.valueOf(11259375L))); + org.junit.Assert.assertTrue("'" + msg.bitmask + "' != '" + 11259375 + "'", value.equals(BigInteger.valueOf( 11259375L ) ) ); } else { value = value.longValue(); expected = 11259375L; @@ -74,9 +50,7 @@ public void test1() throws Throwable { } value = msg.cols; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cols + "' != '" + 48917 + "'", - value.equals(BigInteger.valueOf(48917L))); + org.junit.Assert.assertTrue("'" + msg.cols + "' != '" + 48917 + "'", value.equals(BigInteger.valueOf( 48917L ) ) ); } else { value = value.longValue(); expected = 48917L; @@ -84,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lat + "' != '" + -18168 + "'", - value.equals(BigInteger.valueOf(-18168L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lat + "' != '" + -18168 + "'", value.equals(BigInteger.valueOf( -18168L ) ) ); } else { value = value.longValue(); expected = -18168L; @@ -94,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lon + "' != '" + -19191 + "'", - value.equals(BigInteger.valueOf(-19191L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lon + "' != '" + -19191 + "'", value.equals(BigInteger.valueOf( -19191L ) ) ); } else { value = value.longValue(); expected = -19191L; @@ -104,9 +74,7 @@ public void test1() throws Throwable { } value = msg.rows; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rows + "' != '" + 36863 + "'", - value.equals(BigInteger.valueOf(36863L))); + org.junit.Assert.assertTrue("'" + msg.rows + "' != '" + 36863 + "'", value.equals(BigInteger.valueOf( 36863L ) ) ); } else { value = value.longValue(); expected = 36863L; @@ -114,9 +82,7 @@ public void test1() throws Throwable { } value = msg.spacing_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lat + "' != '" + 61602 + "'", - value.equals(BigInteger.valueOf(61602L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lat + "' != '" + 61602 + "'", value.equals(BigInteger.valueOf( 61602L ) ) ); } else { value = value.longValue(); expected = 61602L; @@ -124,9 +90,7 @@ public void test1() throws Throwable { } value = msg.spacing_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lon + "' != '" + 4929 + "'", - value.equals(BigInteger.valueOf(4929L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lon + "' != '" + 4929 + "'", value.equals(BigInteger.valueOf( 4929L ) ) ); } else { value = value.longValue(); expected = 4929L; @@ -134,9 +98,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 63410 + "'", - value.equals(BigInteger.valueOf(63410L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 63410 + "'", value.equals(BigInteger.valueOf( 63410L ) ) ); } else { value = value.longValue(); expected = 63410L; @@ -144,9 +106,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 48697 + "'", - value.equals(BigInteger.valueOf(48697L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 48697 + "'", value.equals(BigInteger.valueOf( 48697L ) ) ); } else { value = value.longValue(); expected = 48697L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest.java b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest.java index d6d15280b9..eb6071b983 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinitionDepB.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinitionDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrTileDefinitionDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest { @@ -30,44 +34,15 @@ public class auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrTileDefinitionDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 31, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 8, - (byte) 0, - (byte) 16, - (byte) 0, - (byte) 32, - (byte) 0, - (byte) 64, - (byte) 0, - (byte) 128, - (byte) 210, - (byte) 2, - (byte) 150, - (byte) 73, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0042, 0x05F7, payload); - MsgSsrTileDefinitionDepB msg = new MsgSsrTileDefinitionDepB(sbp); + byte[] payload = new byte[] {(byte)31,(byte)0,(byte)1,(byte)0,(byte)2,(byte)0,(byte)4,(byte)0,(byte)8,(byte)0,(byte)16,(byte)0,(byte)32,(byte)0,(byte)64,(byte)0,(byte)128,(byte)210,(byte)2,(byte)150,(byte)73,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0042, 0x05F7, payload ); + MsgSsrTileDefinitionDepB msg = new MsgSsrTileDefinitionDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.bitmask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.bitmask + "' != '" + 1234567890 + "'", - value.equals(BigInteger.valueOf(1234567890L))); + org.junit.Assert.assertTrue("'" + msg.bitmask + "' != '" + 1234567890 + "'", value.equals(BigInteger.valueOf( 1234567890L ) ) ); } else { value = value.longValue(); expected = 1234567890L; @@ -75,9 +50,7 @@ public void test1() throws Throwable { } value = msg.cols; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cols + "' != '" + 32768 + "'", - value.equals(BigInteger.valueOf(32768L))); + org.junit.Assert.assertTrue("'" + msg.cols + "' != '" + 32768 + "'", value.equals(BigInteger.valueOf( 32768L ) ) ); } else { value = value.longValue(); expected = 32768L; @@ -85,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lat + "' != '" + 1024 + "'", - value.equals(BigInteger.valueOf(1024L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lat + "' != '" + 1024 + "'", value.equals(BigInteger.valueOf( 1024L ) ) ); } else { value = value.longValue(); expected = 1024L; @@ -95,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lon + "' != '" + 2048 + "'", - value.equals(BigInteger.valueOf(2048L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lon + "' != '" + 2048 + "'", value.equals(BigInteger.valueOf( 2048L ) ) ); } else { value = value.longValue(); expected = 2048L; @@ -105,9 +74,7 @@ public void test1() throws Throwable { } value = msg.rows; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rows + "' != '" + 16384 + "'", - value.equals(BigInteger.valueOf(16384L))); + org.junit.Assert.assertTrue("'" + msg.rows + "' != '" + 16384 + "'", value.equals(BigInteger.valueOf( 16384L ) ) ); } else { value = value.longValue(); expected = 16384L; @@ -115,9 +82,7 @@ public void test1() throws Throwable { } value = msg.spacing_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lat + "' != '" + 4096 + "'", - value.equals(BigInteger.valueOf(4096L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lat + "' != '" + 4096 + "'", value.equals(BigInteger.valueOf( 4096L ) ) ); } else { value = value.longValue(); expected = 4096L; @@ -125,9 +90,7 @@ public void test1() throws Throwable { } value = msg.spacing_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lon + "' != '" + 8192 + "'", - value.equals(BigInteger.valueOf(8192L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lon + "' != '" + 8192 + "'", value.equals(BigInteger.valueOf( 8192L ) ) ); } else { value = value.longValue(); expected = 8192L; @@ -135,9 +98,7 @@ public void test1() throws Throwable { } value = msg.ssr_sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ssr_sol_id + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.ssr_sol_id + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -145,9 +106,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 512 + "'", - value.equals(BigInteger.valueOf(512L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 512 + "'", value.equals(BigInteger.valueOf( 512L ) ) ); } else { value = value.longValue(); expected = 512L; @@ -155,9 +114,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 256 + "'", - value.equals(BigInteger.valueOf(256L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 256 + "'", value.equals(BigInteger.valueOf( 256L ) ) ); } else { value = value.longValue(); expected = 256L; diff --git a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionTest.java b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionTest.java index aba4d8ef3a..b99f30b4cb 100644 --- a/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionTest.java +++ b/java/test/auto_check_sbp_ssr_MsgSsrTileDefinitionTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinition.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_MsgSsrTileDefinition.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.ssr.MsgSsrTileDefinition; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_ssr_MsgSsrTileDefinitionTest { @@ -27,25 +32,17 @@ public class auto_check_sbp_ssr_MsgSsrTileDefinitionTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrTileDefinitionTest.test1"); - byte[] payload = - new byte[] { - (byte) 127, (byte) 58, (byte) 9, (byte) 0, (byte) 174, (byte) 8, (byte) 1, - (byte) 2, (byte) 3, (byte) 4, (byte) 0, (byte) 5, (byte) 0, (byte) 186, - (byte) 28, (byte) 59, (byte) 167, (byte) 100, (byte) 0, (byte) 100, (byte) 0, - (byte) 6, (byte) 0, (byte) 6, (byte) 0, (byte) 210, (byte) 2, (byte) 150, - (byte) 73, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x0, 0x5F8, payload); - MsgSsrTileDefinition msg = new MsgSsrTileDefinition(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_ssr_MsgSsrTileDefinitionTest.test1"); + byte[] payload = new byte[] {(byte)127,(byte)58,(byte)9,(byte)0,(byte)174,(byte)8,(byte)1,(byte)2,(byte)3,(byte)4,(byte)0,(byte)5,(byte)0,(byte)186,(byte)28,(byte)59,(byte)167,(byte)100,(byte)0,(byte)100,(byte)0,(byte)6,(byte)0,(byte)6,(byte)0,(byte)210,(byte)2,(byte)150,(byte)73,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x0, 0x5F8, payload ); + MsgSsrTileDefinition msg = new MsgSsrTileDefinition( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.bitmask; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.bitmask + "' != '" + 1234567890 + "'", - value.equals(BigInteger.valueOf(1234567890L))); + org.junit.Assert.assertTrue("'" + msg.bitmask + "' != '" + 1234567890 + "'", value.equals(BigInteger.valueOf( 1234567890L ) ) ); } else { value = value.longValue(); expected = 1234567890L; @@ -53,8 +50,7 @@ public void test1() throws Throwable { } value = msg.cols; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cols + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.cols + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -62,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lat + "' != '" + 7354 + "'", - value.equals(BigInteger.valueOf(7354L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lat + "' != '" + 7354 + "'", value.equals(BigInteger.valueOf( 7354L ) ) ); } else { value = value.longValue(); expected = 7354L; @@ -72,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corner_nw_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corner_nw_lon + "' != '" + -22725 + "'", - value.equals(BigInteger.valueOf(-22725L))); + org.junit.Assert.assertTrue("'" + msg.corner_nw_lon + "' != '" + -22725 + "'", value.equals(BigInteger.valueOf( -22725L ) ) ); } else { value = value.longValue(); expected = -22725L; @@ -82,8 +74,7 @@ public void test1() throws Throwable { } value = msg.iod_atmo; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.iod_atmo + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.iod_atmo + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -91,8 +82,7 @@ public void test1() throws Throwable { } value = msg.rows; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.rows + "' != '" + 6 + "'", value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.rows + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -100,8 +90,7 @@ public void test1() throws Throwable { } value = msg.sol_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sol_id + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.sol_id + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -109,9 +98,7 @@ public void test1() throws Throwable { } value = msg.spacing_lat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lat + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lat + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -119,9 +106,7 @@ public void test1() throws Throwable { } value = msg.spacing_lon; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.spacing_lon + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.spacing_lon + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -129,8 +114,7 @@ public void test1() throws Throwable { } value = msg.tile_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.tile_id + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -138,9 +122,7 @@ public void test1() throws Throwable { } value = msg.tile_set_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tile_set_id + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.tile_set_id + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -148,9 +130,7 @@ public void test1() throws Throwable { } value = msg.time.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.tow + "' != '" + 604799 + "'", - value.equals(BigInteger.valueOf(604799L))); + org.junit.Assert.assertTrue("'" + msg.time.tow + "' != '" + 604799 + "'", value.equals(BigInteger.valueOf( 604799L ) ) ); } else { value = value.longValue(); expected = 604799L; @@ -158,9 +138,7 @@ public void test1() throws Throwable { } value = msg.time.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time.wn + "' != '" + 2222 + "'", - value.equals(BigInteger.valueOf(2222L))); + org.junit.Assert.assertTrue("'" + msg.time.wn + "' != '" + 2222 + "'", value.equals(BigInteger.valueOf( 2222L ) ) ); } else { value = value.longValue(); expected = 2222L; @@ -168,9 +146,7 @@ public void test1() throws Throwable { } value = msg.update_interval; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.update_interval + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.update_interval + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; diff --git a/java/test/auto_check_sbp_ssr_ssr_structsTest.java b/java/test/auto_check_sbp_ssr_ssr_structsTest.java index b48d9a6a34..20e470d800 100644 --- a/java/test/auto_check_sbp_ssr_ssr_structsTest.java +++ b/java/test/auto_check_sbp_ssr_ssr_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,10 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_ssr_structs.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/ssr/test_ssr_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_ssr_ssr_structsTest { diff --git a/java/test/auto_check_sbp_system_MsgCsacTelemetryLabelsTest.java b/java/test/auto_check_sbp_system_MsgCsacTelemetryLabelsTest.java index 447690c4ef..356c1271e9 100644 --- a/java/test/auto_check_sbp_system_MsgCsacTelemetryLabelsTest.java +++ b/java/test/auto_check_sbp_system_MsgCsacTelemetryLabelsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/system/test_MsgCsacTelemetryLabels.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgCsacTelemetryLabels.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgCsacTelemetryLabels; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgCsacTelemetryLabelsTest { @@ -30,26 +34,21 @@ public class auto_check_sbp_system_MsgCsacTelemetryLabelsTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgCsacTelemetryLabelsTest.test1"); - byte[] payload = - new byte[] { - (byte) 186, (byte) 115, (byte) 111, (byte) 109, (byte) 101, (byte) 32, - (byte) 108, (byte) 97, (byte) 98, (byte) 101, (byte) 108, (byte) 115, - }; - SBPMessage sbp = new SBPMessage(0xc85b, 0xff05, payload); - MsgCsacTelemetryLabels msg = new MsgCsacTelemetryLabels(sbp); + byte[] payload = new byte[] {(byte)186,(byte)115,(byte)111,(byte)109,(byte)101,(byte)32,(byte)108,(byte)97,(byte)98,(byte)101,(byte)108,(byte)115, }; + SBPMessage sbp = new SBPMessage( 0xc85b, 0xff05, payload ); + MsgCsacTelemetryLabels msg = new MsgCsacTelemetryLabels( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.id + "' != '" + 186 + "'", value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.id + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; org.junit.Assert.assertEquals(value, expected); } - org.junit.Assert.assertEquals(msg.telemetry_labels, "some labels"); + org.junit.Assert.assertEquals(msg.telemetry_labels, "some labels" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } diff --git a/java/test/auto_check_sbp_system_MsgCsacTelemetryTest.java b/java/test/auto_check_sbp_system_MsgCsacTelemetryTest.java index 4b375e2f1d..b25e7abdc4 100644 --- a/java/test/auto_check_sbp_system_MsgCsacTelemetryTest.java +++ b/java/test/auto_check_sbp_system_MsgCsacTelemetryTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgCsacTelemetry.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgCsacTelemetry.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgCsacTelemetry; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgCsacTelemetryTest { @@ -27,35 +32,23 @@ public class auto_check_sbp_system_MsgCsacTelemetryTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgCsacTelemetryTest.test1"); - byte[] payload = - new byte[] { - (byte) 105, - (byte) 115, - (byte) 111, - (byte) 109, - (byte) 101, - (byte) 32, - (byte) 100, - (byte) 97, - (byte) 116, - (byte) 97, - }; - SBPMessage sbp = new SBPMessage(0xa9f4, 0xff04, payload); - MsgCsacTelemetry msg = new MsgCsacTelemetry(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgCsacTelemetryTest.test1"); + byte[] payload = new byte[] {(byte)105,(byte)115,(byte)111,(byte)109,(byte)101,(byte)32,(byte)100,(byte)97,(byte)116,(byte)97, }; + SBPMessage sbp = new SBPMessage( 0xa9f4, 0xff04, payload ); + MsgCsacTelemetry msg = new MsgCsacTelemetry( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.id + "' != '" + 105 + "'", value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.id + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; org.junit.Assert.assertEquals(value, expected); } - org.junit.Assert.assertEquals(msg.telemetry, "some data"); + org.junit.Assert.assertEquals(msg.telemetry, "some data" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } diff --git a/java/test/auto_check_sbp_system_MsgDgnssStatusTest.java b/java/test/auto_check_sbp_system_MsgDgnssStatusTest.java index 7157232be1..86f97d870a 100644 --- a/java/test/auto_check_sbp_system_MsgDgnssStatusTest.java +++ b/java/test/auto_check_sbp_system_MsgDgnssStatusTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgDgnssStatus.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgDgnssStatus.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgDgnssStatus; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgDgnssStatusTest { @@ -27,30 +32,17 @@ public class auto_check_sbp_system_MsgDgnssStatusTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgDgnssStatusTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, - (byte) 50, - (byte) 0, - (byte) 12, - (byte) 83, - (byte) 107, - (byte) 121, - (byte) 108, - (byte) 97, - (byte) 114, - (byte) 107, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xff02, payload); - MsgDgnssStatus msg = new MsgDgnssStatus(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgDgnssStatusTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)50,(byte)0,(byte)12,(byte)83,(byte)107,(byte)121,(byte)108,(byte)97,(byte)114,(byte)107, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xff02, payload ); + MsgDgnssStatus msg = new MsgDgnssStatus( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -58,8 +50,7 @@ public void test1() throws Throwable { } value = msg.latency; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.latency + "' != '" + 50 + "'", value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.latency + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -67,15 +58,13 @@ public void test1() throws Throwable { } value = msg.num_signals; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.num_signals + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.num_signals + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; org.junit.Assert.assertEquals(value, expected); } - org.junit.Assert.assertEquals(msg.source, "Skylark"); + org.junit.Assert.assertEquals(msg.source, "Skylark" ); org.junit.Assert.assertNotEquals("", msg.getFriendlyName()); } diff --git a/java/test/auto_check_sbp_system_MsgGnssTimeOffsetTest.java b/java/test/auto_check_sbp_system_MsgGnssTimeOffsetTest.java index 61fad1768f..5847961223 100644 --- a/java/test/auto_check_sbp_system_MsgGnssTimeOffsetTest.java +++ b/java/test/auto_check_sbp_system_MsgGnssTimeOffsetTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgGnssTimeOffset.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgGnssTimeOffset.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgGnssTimeOffset; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgGnssTimeOffsetTest { @@ -27,28 +32,17 @@ public class auto_check_sbp_system_MsgGnssTimeOffsetTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgGnssTimeOffsetTest.test1"); - byte[] payload = - new byte[] { - (byte) 9, - (byte) 58, - (byte) 82, - (byte) 83, - (byte) 9, - (byte) 103, - (byte) 22, - (byte) 37, - (byte) 221, - }; - SBPMessage sbp = new SBPMessage(0x0f16, 0xff07, payload); - MsgGnssTimeOffset msg = new MsgGnssTimeOffset(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgGnssTimeOffsetTest.test1"); + byte[] payload = new byte[] {(byte)9,(byte)58,(byte)82,(byte)83,(byte)9,(byte)103,(byte)22,(byte)37,(byte)221, }; + SBPMessage sbp = new SBPMessage( 0x0f16, 0xff07, payload ); + MsgGnssTimeOffset msg = new MsgGnssTimeOffset( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 221 + "'", value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -56,9 +50,7 @@ public void test1() throws Throwable { } value = msg.microseconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.microseconds + "' != '" + 9494 + "'", - value.equals(BigInteger.valueOf(9494L))); + org.junit.Assert.assertTrue("'" + msg.microseconds + "' != '" + 9494 + "'", value.equals(BigInteger.valueOf( 9494L ) ) ); } else { value = value.longValue(); expected = 9494L; @@ -66,9 +58,7 @@ public void test1() throws Throwable { } value = msg.milliseconds; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.milliseconds + "' != '" + 1728664402 + "'", - value.equals(BigInteger.valueOf(1728664402L))); + org.junit.Assert.assertTrue("'" + msg.milliseconds + "' != '" + 1728664402 + "'", value.equals(BigInteger.valueOf( 1728664402L ) ) ); } else { value = value.longValue(); expected = 1728664402L; @@ -76,9 +66,7 @@ public void test1() throws Throwable { } value = msg.weeks; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.weeks + "' != '" + 14857 + "'", - value.equals(BigInteger.valueOf(14857L))); + org.junit.Assert.assertTrue("'" + msg.weeks + "' != '" + 14857 + "'", value.equals(BigInteger.valueOf( 14857L ) ) ); } else { value = value.longValue(); expected = 14857L; diff --git a/java/test/auto_check_sbp_system_MsgGroupMetaTest.java b/java/test/auto_check_sbp_system_MsgGroupMetaTest.java index 573e43046d..79741e73fb 100644 --- a/java/test/auto_check_sbp_system_MsgGroupMetaTest.java +++ b/java/test/auto_check_sbp_system_MsgGroupMetaTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgGroupMeta.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgGroupMeta.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgGroupMeta; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgGroupMetaTest { @@ -27,28 +32,17 @@ public class auto_check_sbp_system_MsgGroupMetaTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgGroupMetaTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, - (byte) 2, - (byte) 3, - (byte) 10, - (byte) 255, - (byte) 10, - (byte) 2, - (byte) 2, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0xEEEE, 0xFF0A, payload); - MsgGroupMeta msg = new MsgGroupMeta(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgGroupMetaTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)2,(byte)3,(byte)10,(byte)255,(byte)10,(byte)2,(byte)2,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0xEEEE, 0xFF0A, payload ); + MsgGroupMeta msg = new MsgGroupMeta( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -56,8 +50,7 @@ public void test1() throws Throwable { } value = msg.group_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.group_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -65,9 +58,7 @@ public void test1() throws Throwable { } value = msg.group_msgs[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[0] + "' != '" + 65290 + "'", - value.equals(BigInteger.valueOf(65290L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[0] + "' != '" + 65290 + "'", value.equals(BigInteger.valueOf( 65290L ) ) ); } else { value = value.longValue(); expected = 65290L; @@ -75,9 +66,7 @@ public void test1() throws Throwable { } value = msg.group_msgs[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[1] + "' != '" + 522 + "'", - value.equals(BigInteger.valueOf(522L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[1] + "' != '" + 522 + "'", value.equals(BigInteger.valueOf( 522L ) ) ); } else { value = value.longValue(); expected = 522L; @@ -85,9 +74,7 @@ public void test1() throws Throwable { } value = msg.group_msgs[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[2] + "' != '" + 65282 + "'", - value.equals(BigInteger.valueOf(65282L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[2] + "' != '" + 65282 + "'", value.equals(BigInteger.valueOf( 65282L ) ) ); } else { value = value.longValue(); expected = 65282L; @@ -95,9 +82,7 @@ public void test1() throws Throwable { } value = msg.n_group_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_group_msgs + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.n_group_msgs + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -109,24 +94,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgGroupMetaTest.test2"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 1, (byte) 14, (byte) 2, (byte) 1, (byte) 3, (byte) 1, - (byte) 10, (byte) 2, (byte) 17, (byte) 2, (byte) 9, (byte) 2, (byte) 20, - (byte) 2, (byte) 14, (byte) 2, (byte) 18, (byte) 2, (byte) 13, (byte) 2, - (byte) 21, (byte) 2, (byte) 33, (byte) 2, (byte) 3, (byte) 255, (byte) 6, - (byte) 255, (byte) 14, (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0x315, 0xFF0A, payload); - MsgGroupMeta msg = new MsgGroupMeta(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgGroupMetaTest.test2"); + byte[] payload = new byte[] {(byte)1,(byte)1,(byte)14,(byte)2,(byte)1,(byte)3,(byte)1,(byte)10,(byte)2,(byte)17,(byte)2,(byte)9,(byte)2,(byte)20,(byte)2,(byte)14,(byte)2,(byte)18,(byte)2,(byte)13,(byte)2,(byte)21,(byte)2,(byte)33,(byte)2,(byte)3,(byte)255,(byte)6,(byte)255,(byte)14,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0x315, 0xFF0A, payload ); + MsgGroupMeta msg = new MsgGroupMeta( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -134,8 +112,7 @@ public void test2() throws Throwable { } value = msg.group_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.group_id + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -143,9 +120,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[0] + "' != '" + 258 + "'", - value.equals(BigInteger.valueOf(258L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[0] + "' != '" + 258 + "'", value.equals(BigInteger.valueOf( 258L ) ) ); } else { value = value.longValue(); expected = 258L; @@ -153,9 +128,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[1] + "' != '" + 259 + "'", - value.equals(BigInteger.valueOf(259L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[1] + "' != '" + 259 + "'", value.equals(BigInteger.valueOf( 259L ) ) ); } else { value = value.longValue(); expected = 259L; @@ -163,9 +136,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[2] + "' != '" + 522 + "'", - value.equals(BigInteger.valueOf(522L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[2] + "' != '" + 522 + "'", value.equals(BigInteger.valueOf( 522L ) ) ); } else { value = value.longValue(); expected = 522L; @@ -173,9 +144,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[3] + "' != '" + 529 + "'", - value.equals(BigInteger.valueOf(529L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[3] + "' != '" + 529 + "'", value.equals(BigInteger.valueOf( 529L ) ) ); } else { value = value.longValue(); expected = 529L; @@ -183,9 +152,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[4] + "' != '" + 521 + "'", - value.equals(BigInteger.valueOf(521L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[4] + "' != '" + 521 + "'", value.equals(BigInteger.valueOf( 521L ) ) ); } else { value = value.longValue(); expected = 521L; @@ -193,9 +160,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[5] + "' != '" + 532 + "'", - value.equals(BigInteger.valueOf(532L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[5] + "' != '" + 532 + "'", value.equals(BigInteger.valueOf( 532L ) ) ); } else { value = value.longValue(); expected = 532L; @@ -203,9 +168,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[6] + "' != '" + 526 + "'", - value.equals(BigInteger.valueOf(526L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[6] + "' != '" + 526 + "'", value.equals(BigInteger.valueOf( 526L ) ) ); } else { value = value.longValue(); expected = 526L; @@ -213,9 +176,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[7] + "' != '" + 530 + "'", - value.equals(BigInteger.valueOf(530L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[7] + "' != '" + 530 + "'", value.equals(BigInteger.valueOf( 530L ) ) ); } else { value = value.longValue(); expected = 530L; @@ -223,9 +184,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[8] + "' != '" + 525 + "'", - value.equals(BigInteger.valueOf(525L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[8] + "' != '" + 525 + "'", value.equals(BigInteger.valueOf( 525L ) ) ); } else { value = value.longValue(); expected = 525L; @@ -233,9 +192,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[9] + "' != '" + 533 + "'", - value.equals(BigInteger.valueOf(533L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[9] + "' != '" + 533 + "'", value.equals(BigInteger.valueOf( 533L ) ) ); } else { value = value.longValue(); expected = 533L; @@ -243,9 +200,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[10] + "' != '" + 545 + "'", - value.equals(BigInteger.valueOf(545L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[10] + "' != '" + 545 + "'", value.equals(BigInteger.valueOf( 545L ) ) ); } else { value = value.longValue(); expected = 545L; @@ -253,9 +208,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[11] + "' != '" + 65283 + "'", - value.equals(BigInteger.valueOf(65283L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[11] + "' != '" + 65283 + "'", value.equals(BigInteger.valueOf( 65283L ) ) ); } else { value = value.longValue(); expected = 65283L; @@ -263,9 +216,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[12] + "' != '" + 65286 + "'", - value.equals(BigInteger.valueOf(65286L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[12] + "' != '" + 65286 + "'", value.equals(BigInteger.valueOf( 65286L ) ) ); } else { value = value.longValue(); expected = 65286L; @@ -273,9 +224,7 @@ public void test2() throws Throwable { } value = msg.group_msgs[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.group_msgs[13] + "' != '" + 65294 + "'", - value.equals(BigInteger.valueOf(65294L))); + org.junit.Assert.assertTrue("'" + msg.group_msgs[13] + "' != '" + 65294 + "'", value.equals(BigInteger.valueOf( 65294L ) ) ); } else { value = value.longValue(); expected = 65294L; @@ -283,9 +232,7 @@ public void test2() throws Throwable { } value = msg.n_group_msgs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_group_msgs + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.n_group_msgs + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; diff --git a/java/test/auto_check_sbp_system_MsgHeartbeatTest.java b/java/test/auto_check_sbp_system_MsgHeartbeatTest.java index bf61c0becc..ac79497aa2 100644 --- a/java/test/auto_check_sbp_system_MsgHeartbeatTest.java +++ b/java/test/auto_check_sbp_system_MsgHeartbeatTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgHeartbeat.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgHeartbeat.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgHeartbeat; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgHeartbeatTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_system_MsgHeartbeatTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgHeartbeatTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 50, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0xffff, payload); - MsgHeartbeat msg = new MsgHeartbeat(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgHeartbeatTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)50,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0xffff, payload ); + MsgHeartbeat msg = new MsgHeartbeat( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 12800 + "'", - value.equals(BigInteger.valueOf(12800L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 12800 + "'", value.equals(BigInteger.valueOf( 12800L ) ) ); } else { value = value.longValue(); expected = 12800L; @@ -53,20 +54,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgHeartbeatTest.test2"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0xffff, payload); - MsgHeartbeat msg = new MsgHeartbeat(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgHeartbeatTest.test2"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0xffff, payload ); + MsgHeartbeat msg = new MsgHeartbeat( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_system_MsgInsStatusTest.java b/java/test/auto_check_sbp_system_MsgInsStatusTest.java index 71942471f7..be053f267c 100644 --- a/java/test/auto_check_sbp_system_MsgInsStatusTest.java +++ b/java/test/auto_check_sbp_system_MsgInsStatusTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgInsStatus.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgInsStatus.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgInsStatus; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgInsStatusTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_system_MsgInsStatusTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgInsStatusTest.test1"); - byte[] payload = - new byte[] { - (byte) 9, (byte) 0, (byte) 0, (byte) 32, - }; - SBPMessage sbp = new SBPMessage(0x315, 0xff03, payload); - MsgInsStatus msg = new MsgInsStatus(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgInsStatusTest.test1"); + byte[] payload = new byte[] {(byte)9,(byte)0,(byte)0,(byte)32, }; + SBPMessage sbp = new SBPMessage( 0x315, 0xff03, payload ); + MsgInsStatus msg = new MsgInsStatus( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 536870921 + "'", - value.equals(BigInteger.valueOf(536870921L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 536870921 + "'", value.equals(BigInteger.valueOf( 536870921L ) ) ); } else { value = value.longValue(); expected = 536870921L; diff --git a/java/test/auto_check_sbp_system_MsgInsUpdatesTest.java b/java/test/auto_check_sbp_system_MsgInsUpdatesTest.java index 096b284bf8..bc9c03b445 100644 --- a/java/test/auto_check_sbp_system_MsgInsUpdatesTest.java +++ b/java/test/auto_check_sbp_system_MsgInsUpdatesTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgInsUpdates.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgInsUpdates.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgInsUpdates; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgInsUpdatesTest { @@ -27,29 +32,17 @@ public class auto_check_sbp_system_MsgInsUpdatesTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgInsUpdatesTest.test1"); - byte[] payload = - new byte[] { - (byte) 84, - (byte) 229, - (byte) 17, - (byte) 30, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x315, 0xff06, payload); - MsgInsUpdates msg = new MsgInsUpdates(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgInsUpdatesTest.test1"); + byte[] payload = new byte[] {(byte)84,(byte)229,(byte)17,(byte)30,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x315, 0xff06, payload ); + MsgInsUpdates msg = new MsgInsUpdates( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.gnsspos; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gnsspos + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.gnsspos + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -57,8 +50,7 @@ public void test1() throws Throwable { } value = msg.gnssvel; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.gnssvel + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.gnssvel + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -66,8 +58,7 @@ public void test1() throws Throwable { } value = msg.nhc; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nhc + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nhc + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -75,8 +66,7 @@ public void test1() throws Throwable { } value = msg.speed; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.speed + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.speed + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -84,9 +74,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 504489300 + "'", - value.equals(BigInteger.valueOf(504489300L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 504489300 + "'", value.equals(BigInteger.valueOf( 504489300L ) ) ); } else { value = value.longValue(); expected = 504489300L; @@ -94,9 +82,7 @@ public void test1() throws Throwable { } value = msg.wheelticks; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wheelticks + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.wheelticks + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -104,8 +90,7 @@ public void test1() throws Throwable { } value = msg.zerovel; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.zerovel + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.zerovel + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_system_MsgPpsTimeTest.java b/java/test/auto_check_sbp_system_MsgPpsTimeTest.java index 7870c0d187..bc2d570073 100644 --- a/java/test/auto_check_sbp_system_MsgPpsTimeTest.java +++ b/java/test/auto_check_sbp_system_MsgPpsTimeTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgPpsTime.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgPpsTime.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgPpsTime; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgPpsTimeTest { @@ -27,28 +32,17 @@ public class auto_check_sbp_system_MsgPpsTimeTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgPpsTimeTest.test1"); - byte[] payload = - new byte[] { - (byte) 140, - (byte) 146, - (byte) 133, - (byte) 197, - (byte) 160, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 255, - }; - SBPMessage sbp = new SBPMessage(0xd1de, 0xff08, payload); - MsgPpsTime msg = new MsgPpsTime(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgPpsTimeTest.test1"); + byte[] payload = new byte[] {(byte)140,(byte)146,(byte)133,(byte)197,(byte)160,(byte)0,(byte)0,(byte)0,(byte)255, }; + SBPMessage sbp = new SBPMessage( 0xd1de, 0xff08, payload ); + MsgPpsTime msg = new MsgPpsTime( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 255 + "'", value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -56,9 +50,7 @@ public void test1() throws Throwable { } value = msg.time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time + "' != '" + 690508632716L + "'", - value.equals(new BigInteger("690508632716"))); + org.junit.Assert.assertTrue("'" + msg.time + "' != '" + 690508632716L + "'", value.equals( new BigInteger( "690508632716" ) ) ); } else { value = value.longValue(); expected = 690508632716L; diff --git a/java/test/auto_check_sbp_system_MsgSensorAidEventTest.java b/java/test/auto_check_sbp_system_MsgSensorAidEventTest.java index 70d62d13be..f693adccab 100644 --- a/java/test/auto_check_sbp_system_MsgSensorAidEventTest.java +++ b/java/test/auto_check_sbp_system_MsgSensorAidEventTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgSensorAidEvent.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgSensorAidEvent.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgSensorAidEvent; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgSensorAidEventTest { @@ -27,34 +32,17 @@ public class auto_check_sbp_system_MsgSensorAidEventTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgSensorAidEventTest.test1"); - byte[] payload = - new byte[] { - (byte) 48, - (byte) 246, - (byte) 122, - (byte) 19, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0xFF09, payload); - MsgSensorAidEvent msg = new MsgSensorAidEvent(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgSensorAidEventTest.test1"); + byte[] payload = new byte[] {(byte)48,(byte)246,(byte)122,(byte)19,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0xFF09, payload ); + MsgSensorAidEvent msg = new MsgSensorAidEvent( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -62,9 +50,7 @@ public void test1() throws Throwable { } value = msg.n_accepted_meas; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_accepted_meas + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.n_accepted_meas + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -72,9 +58,7 @@ public void test1() throws Throwable { } value = msg.n_attempted_meas; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_attempted_meas + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.n_attempted_meas + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -82,9 +66,7 @@ public void test1() throws Throwable { } value = msg.n_available_meas; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_available_meas + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.n_available_meas + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -92,8 +74,7 @@ public void test1() throws Throwable { } value = msg.sensor_id; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sensor_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sensor_id + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -101,9 +82,7 @@ public void test1() throws Throwable { } value = msg.sensor_state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sensor_state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sensor_state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -111,9 +90,7 @@ public void test1() throws Throwable { } value = msg.sensor_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sensor_type + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sensor_type + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -121,9 +98,7 @@ public void test1() throws Throwable { } value = msg.time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time + "' != '" + 326825520 + "'", - value.equals(BigInteger.valueOf(326825520L))); + org.junit.Assert.assertTrue("'" + msg.time + "' != '" + 326825520 + "'", value.equals(BigInteger.valueOf( 326825520L ) ) ); } else { value = value.longValue(); expected = 326825520L; diff --git a/java/test/auto_check_sbp_system_MsgStartupTest.java b/java/test/auto_check_sbp_system_MsgStartupTest.java index b0d316f92b..e21a492c21 100644 --- a/java/test/auto_check_sbp_system_MsgStartupTest.java +++ b/java/test/auto_check_sbp_system_MsgStartupTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStartup.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStartup.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgStartup; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgStartupTest { @@ -27,20 +32,17 @@ public class auto_check_sbp_system_MsgStartupTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgStartupTest.test1"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x42, 0xff00, payload); - MsgStartup msg = new MsgStartup(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgStartupTest.test1"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x42, 0xff00, payload ); + MsgStartup msg = new MsgStartup( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cause; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cause + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.cause + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -48,8 +50,7 @@ public void test1() throws Throwable { } value = msg.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -57,9 +58,7 @@ public void test1() throws Throwable { } value = msg.startup_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.startup_type + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.startup_type + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -71,20 +70,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgStartupTest.test2"); - byte[] payload = - new byte[] { - (byte) 0, (byte) 0, (byte) 0, (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0xff00, payload); - MsgStartup msg = new MsgStartup(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgStartupTest.test2"); + byte[] payload = new byte[] {(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0xff00, payload ); + MsgStartup msg = new MsgStartup( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.cause; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cause + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.cause + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -92,8 +88,7 @@ public void test2() throws Throwable { } value = msg.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -101,9 +96,7 @@ public void test2() throws Throwable { } value = msg.startup_type; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.startup_type + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.startup_type + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_system_MsgStatusJournalTest.java b/java/test/auto_check_sbp_system_MsgStatusJournalTest.java index 090c13daf4..9cf2c94f5b 100644 --- a/java/test/auto_check_sbp_system_MsgStatusJournalTest.java +++ b/java/test/auto_check_sbp_system_MsgStatusJournalTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStatusJournal.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStatusJournal.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgStatusJournal; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgStatusJournalTest { @@ -27,25 +32,17 @@ public class auto_check_sbp_system_MsgStatusJournalTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusJournalTest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 1, (byte) 4, (byte) 100, (byte) 0, (byte) 0, - (byte) 0, (byte) 16, (byte) 146, (byte) 16, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, (byte) 1, (byte) 13, (byte) 186, (byte) 19, (byte) 0, (byte) 0, - (byte) 6, (byte) 0, (byte) 1, (byte) 14, (byte) 184, (byte) 34, (byte) 0, - (byte) 0, (byte) 6, (byte) 0, (byte) 1, (byte) 15, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0xFFFD, payload); - MsgStatusJournal msg = new MsgStatusJournal(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusJournalTest.test1"); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)1,(byte)4,(byte)100,(byte)0,(byte)0,(byte)0,(byte)16,(byte)146,(byte)16,(byte)0,(byte)0,(byte)6,(byte)0,(byte)1,(byte)13,(byte)186,(byte)19,(byte)0,(byte)0,(byte)6,(byte)0,(byte)1,(byte)14,(byte)184,(byte)34,(byte)0,(byte)0,(byte)6,(byte)0,(byte)1,(byte)15, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0xFFFD, payload ); + MsgStatusJournal msg = new MsgStatusJournal( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.journal[0].report.component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.component + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.component + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -53,9 +50,7 @@ public void test1() throws Throwable { } value = msg.journal[0].report.generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.generic + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.generic + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -63,9 +58,7 @@ public void test1() throws Throwable { } value = msg.journal[0].report.specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.specific + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.specific + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -73,9 +66,7 @@ public void test1() throws Throwable { } value = msg.journal[0].uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].uptime + "' != '" + 4242 + "'", - value.equals(BigInteger.valueOf(4242L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].uptime + "' != '" + 4242 + "'", value.equals(BigInteger.valueOf( 4242L ) ) ); } else { value = value.longValue(); expected = 4242L; @@ -83,9 +74,7 @@ public void test1() throws Throwable { } value = msg.journal[1].report.component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[1].report.component + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.journal[1].report.component + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -93,9 +82,7 @@ public void test1() throws Throwable { } value = msg.journal[1].report.generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[1].report.generic + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.journal[1].report.generic + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -103,9 +90,7 @@ public void test1() throws Throwable { } value = msg.journal[1].report.specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[1].report.specific + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.journal[1].report.specific + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -113,9 +98,7 @@ public void test1() throws Throwable { } value = msg.journal[1].uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[1].uptime + "' != '" + 5050 + "'", - value.equals(BigInteger.valueOf(5050L))); + org.junit.Assert.assertTrue("'" + msg.journal[1].uptime + "' != '" + 5050 + "'", value.equals(BigInteger.valueOf( 5050L ) ) ); } else { value = value.longValue(); expected = 5050L; @@ -123,9 +106,7 @@ public void test1() throws Throwable { } value = msg.journal[2].report.component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[2].report.component + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.journal[2].report.component + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -133,9 +114,7 @@ public void test1() throws Throwable { } value = msg.journal[2].report.generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[2].report.generic + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.journal[2].report.generic + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -143,9 +122,7 @@ public void test1() throws Throwable { } value = msg.journal[2].report.specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[2].report.specific + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.journal[2].report.specific + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -153,9 +130,7 @@ public void test1() throws Throwable { } value = msg.journal[2].uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[2].uptime + "' != '" + 8888 + "'", - value.equals(BigInteger.valueOf(8888L))); + org.junit.Assert.assertTrue("'" + msg.journal[2].uptime + "' != '" + 8888 + "'", value.equals(BigInteger.valueOf( 8888L ) ) ); } else { value = value.longValue(); expected = 8888L; @@ -163,9 +138,7 @@ public void test1() throws Throwable { } value = msg.reporting_system; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reporting_system + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.reporting_system + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -173,9 +146,7 @@ public void test1() throws Throwable { } value = msg.sbp_version; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sbp_version + "' != '" + 1025 + "'", - value.equals(BigInteger.valueOf(1025L))); + org.junit.Assert.assertTrue("'" + msg.sbp_version + "' != '" + 1025 + "'", value.equals(BigInteger.valueOf( 1025L ) ) ); } else { value = value.longValue(); expected = 1025L; @@ -183,9 +154,7 @@ public void test1() throws Throwable { } value = msg.sequence_descriptor; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence_descriptor + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.sequence_descriptor + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -193,9 +162,7 @@ public void test1() throws Throwable { } value = msg.total_status_reports; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.total_status_reports + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.total_status_reports + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -207,23 +174,17 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusJournalTest.test2"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 1, (byte) 4, (byte) 100, (byte) 0, (byte) 0, - (byte) 0, (byte) 16, (byte) 146, (byte) 16, (byte) 0, (byte) 0, (byte) 6, - (byte) 0, (byte) 1, (byte) 13, - }; - SBPMessage sbp = new SBPMessage(0x88D3, 0xFFFD, payload); - MsgStatusJournal msg = new MsgStatusJournal(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusJournalTest.test2"); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)1,(byte)4,(byte)100,(byte)0,(byte)0,(byte)0,(byte)16,(byte)146,(byte)16,(byte)0,(byte)0,(byte)6,(byte)0,(byte)1,(byte)13, }; + SBPMessage sbp = new SBPMessage( 0x88D3, 0xFFFD, payload ); + MsgStatusJournal msg = new MsgStatusJournal( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.journal[0].report.component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.component + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.component + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -231,9 +192,7 @@ public void test2() throws Throwable { } value = msg.journal[0].report.generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.generic + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.generic + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -241,9 +200,7 @@ public void test2() throws Throwable { } value = msg.journal[0].report.specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].report.specific + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].report.specific + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -251,9 +208,7 @@ public void test2() throws Throwable { } value = msg.journal[0].uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.journal[0].uptime + "' != '" + 4242 + "'", - value.equals(BigInteger.valueOf(4242L))); + org.junit.Assert.assertTrue("'" + msg.journal[0].uptime + "' != '" + 4242 + "'", value.equals(BigInteger.valueOf( 4242L ) ) ); } else { value = value.longValue(); expected = 4242L; @@ -261,9 +216,7 @@ public void test2() throws Throwable { } value = msg.reporting_system; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reporting_system + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.reporting_system + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -271,9 +224,7 @@ public void test2() throws Throwable { } value = msg.sbp_version; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sbp_version + "' != '" + 1025 + "'", - value.equals(BigInteger.valueOf(1025L))); + org.junit.Assert.assertTrue("'" + msg.sbp_version + "' != '" + 1025 + "'", value.equals(BigInteger.valueOf( 1025L ) ) ); } else { value = value.longValue(); expected = 1025L; @@ -281,9 +232,7 @@ public void test2() throws Throwable { } value = msg.sequence_descriptor; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence_descriptor + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.sequence_descriptor + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -291,9 +240,7 @@ public void test2() throws Throwable { } value = msg.total_status_reports; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.total_status_reports + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.total_status_reports + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; diff --git a/java/test/auto_check_sbp_system_MsgStatusReportTest.java b/java/test/auto_check_sbp_system_MsgStatusReportTest.java index 12c7cac85f..76e2c03d65 100644 --- a/java/test/auto_check_sbp_system_MsgStatusReportTest.java +++ b/java/test/auto_check_sbp_system_MsgStatusReportTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStatusReport.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_MsgStatusReport.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.system.MsgStatusReport; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_system_MsgStatusReportTest { @@ -27,272 +32,17 @@ public class auto_check_sbp_system_MsgStatusReportTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusReportTest.test1"); - byte[] payload = - new byte[] { - (byte) 82, - (byte) 253, - (byte) 177, - (byte) 95, - (byte) 3, - (byte) 60, - (byte) 143, - (byte) 90, - (byte) 233, - (byte) 21, - (byte) 208, - (byte) 98, - (byte) 247, - (byte) 203, - (byte) 221, - (byte) 198, - (byte) 156, - (byte) 207, - (byte) 217, - (byte) 238, - (byte) 162, - (byte) 136, - (byte) 154, - (byte) 11, - (byte) 114, - (byte) 236, - (byte) 134, - (byte) 235, - (byte) 12, - (byte) 133, - (byte) 9, - (byte) 30, - (byte) 175, - (byte) 145, - (byte) 26, - (byte) 114, - (byte) 215, - (byte) 20, - (byte) 146, - (byte) 249, - (byte) 54, - (byte) 54, - (byte) 133, - (byte) 193, - (byte) 106, - (byte) 186, - (byte) 210, - (byte) 183, - (byte) 0, - (byte) 129, - (byte) 5, - (byte) 248, - (byte) 225, - (byte) 149, - (byte) 135, - (byte) 127, - (byte) 2, - (byte) 26, - (byte) 88, - (byte) 92, - (byte) 10, - (byte) 103, - (byte) 73, - (byte) 3, - (byte) 103, - (byte) 68, - (byte) 76, - (byte) 184, - (byte) 33, - (byte) 206, - (byte) 194, - (byte) 163, - (byte) 123, - (byte) 30, - (byte) 151, - (byte) 176, - (byte) 149, - (byte) 172, - (byte) 184, - (byte) 231, - (byte) 118, - (byte) 230, - (byte) 200, - (byte) 168, - (byte) 100, - (byte) 109, - (byte) 10, - (byte) 233, - (byte) 4, - (byte) 60, - (byte) 247, - (byte) 82, - (byte) 215, - (byte) 166, - (byte) 28, - (byte) 138, - (byte) 110, - (byte) 45, - (byte) 98, - (byte) 218, - (byte) 244, - (byte) 179, - (byte) 126, - (byte) 107, - (byte) 92, - (byte) 124, - (byte) 94, - (byte) 157, - (byte) 42, - (byte) 187, - (byte) 124, - (byte) 6, - (byte) 97, - (byte) 247, - (byte) 160, - (byte) 188, - (byte) 110, - (byte) 120, - (byte) 254, - (byte) 214, - (byte) 110, - (byte) 51, - (byte) 240, - (byte) 164, - (byte) 147, - (byte) 18, - (byte) 74, - (byte) 178, - (byte) 67, - (byte) 4, - (byte) 27, - (byte) 73, - (byte) 190, - (byte) 64, - (byte) 179, - (byte) 146, - (byte) 125, - (byte) 153, - (byte) 192, - (byte) 46, - (byte) 202, - (byte) 66, - (byte) 248, - (byte) 46, - (byte) 40, - (byte) 161, - (byte) 173, - (byte) 242, - (byte) 214, - (byte) 3, - (byte) 11, - (byte) 1, - (byte) 118, - (byte) 70, - (byte) 162, - (byte) 61, - (byte) 178, - (byte) 27, - (byte) 156, - (byte) 40, - (byte) 191, - (byte) 113, - (byte) 230, - (byte) 200, - (byte) 72, - (byte) 8, - (byte) 215, - (byte) 245, - (byte) 78, - (byte) 59, - (byte) 222, - (byte) 250, - (byte) 115, - (byte) 32, - (byte) 33, - (byte) 30, - (byte) 211, - (byte) 170, - (byte) 145, - (byte) 92, - (byte) 157, - (byte) 75, - (byte) 24, - (byte) 169, - (byte) 6, - (byte) 55, - (byte) 62, - (byte) 8, - (byte) 107, - (byte) 82, - (byte) 140, - (byte) 49, - (byte) 179, - (byte) 122, - (byte) 90, - (byte) 71, - (byte) 28, - (byte) 88, - (byte) 103, - (byte) 51, - (byte) 177, - (byte) 72, - (byte) 93, - (byte) 39, - (byte) 148, - (byte) 11, - (byte) 202, - (byte) 42, - (byte) 34, - (byte) 92, - (byte) 204, - (byte) 102, - (byte) 29, - (byte) 98, - (byte) 249, - (byte) 91, - (byte) 134, - (byte) 95, - (byte) 23, - (byte) 248, - (byte) 192, - (byte) 20, - (byte) 83, - (byte) 195, - (byte) 95, - (byte) 180, - (byte) 54, - (byte) 36, - (byte) 186, - (byte) 75, - (byte) 64, - (byte) 20, - (byte) 157, - (byte) 133, - (byte) 12, - (byte) 149, - (byte) 28, - (byte) 14, - (byte) 185, - (byte) 129, - (byte) 101, - (byte) 239, - (byte) 74, - (byte) 248, - (byte) 245, - (byte) 30, - (byte) 228, - (byte) 88, - (byte) 142, - (byte) 212, - (byte) 53, - (byte) 224, - }; - SBPMessage sbp = new SBPMessage(0x5406, 0xfffe, payload); - MsgStatusReport msg = new MsgStatusReport(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_system_MsgStatusReportTest.test1"); + byte[] payload = new byte[] {(byte)82,(byte)253,(byte)177,(byte)95,(byte)3,(byte)60,(byte)143,(byte)90,(byte)233,(byte)21,(byte)208,(byte)98,(byte)247,(byte)203,(byte)221,(byte)198,(byte)156,(byte)207,(byte)217,(byte)238,(byte)162,(byte)136,(byte)154,(byte)11,(byte)114,(byte)236,(byte)134,(byte)235,(byte)12,(byte)133,(byte)9,(byte)30,(byte)175,(byte)145,(byte)26,(byte)114,(byte)215,(byte)20,(byte)146,(byte)249,(byte)54,(byte)54,(byte)133,(byte)193,(byte)106,(byte)186,(byte)210,(byte)183,(byte)0,(byte)129,(byte)5,(byte)248,(byte)225,(byte)149,(byte)135,(byte)127,(byte)2,(byte)26,(byte)88,(byte)92,(byte)10,(byte)103,(byte)73,(byte)3,(byte)103,(byte)68,(byte)76,(byte)184,(byte)33,(byte)206,(byte)194,(byte)163,(byte)123,(byte)30,(byte)151,(byte)176,(byte)149,(byte)172,(byte)184,(byte)231,(byte)118,(byte)230,(byte)200,(byte)168,(byte)100,(byte)109,(byte)10,(byte)233,(byte)4,(byte)60,(byte)247,(byte)82,(byte)215,(byte)166,(byte)28,(byte)138,(byte)110,(byte)45,(byte)98,(byte)218,(byte)244,(byte)179,(byte)126,(byte)107,(byte)92,(byte)124,(byte)94,(byte)157,(byte)42,(byte)187,(byte)124,(byte)6,(byte)97,(byte)247,(byte)160,(byte)188,(byte)110,(byte)120,(byte)254,(byte)214,(byte)110,(byte)51,(byte)240,(byte)164,(byte)147,(byte)18,(byte)74,(byte)178,(byte)67,(byte)4,(byte)27,(byte)73,(byte)190,(byte)64,(byte)179,(byte)146,(byte)125,(byte)153,(byte)192,(byte)46,(byte)202,(byte)66,(byte)248,(byte)46,(byte)40,(byte)161,(byte)173,(byte)242,(byte)214,(byte)3,(byte)11,(byte)1,(byte)118,(byte)70,(byte)162,(byte)61,(byte)178,(byte)27,(byte)156,(byte)40,(byte)191,(byte)113,(byte)230,(byte)200,(byte)72,(byte)8,(byte)215,(byte)245,(byte)78,(byte)59,(byte)222,(byte)250,(byte)115,(byte)32,(byte)33,(byte)30,(byte)211,(byte)170,(byte)145,(byte)92,(byte)157,(byte)75,(byte)24,(byte)169,(byte)6,(byte)55,(byte)62,(byte)8,(byte)107,(byte)82,(byte)140,(byte)49,(byte)179,(byte)122,(byte)90,(byte)71,(byte)28,(byte)88,(byte)103,(byte)51,(byte)177,(byte)72,(byte)93,(byte)39,(byte)148,(byte)11,(byte)202,(byte)42,(byte)34,(byte)92,(byte)204,(byte)102,(byte)29,(byte)98,(byte)249,(byte)91,(byte)134,(byte)95,(byte)23,(byte)248,(byte)192,(byte)20,(byte)83,(byte)195,(byte)95,(byte)180,(byte)54,(byte)36,(byte)186,(byte)75,(byte)64,(byte)20,(byte)157,(byte)133,(byte)12,(byte)149,(byte)28,(byte)14,(byte)185,(byte)129,(byte)101,(byte)239,(byte)74,(byte)248,(byte)245,(byte)30,(byte)228,(byte)88,(byte)142,(byte)212,(byte)53,(byte)224, }; + SBPMessage sbp = new SBPMessage( 0x5406, 0xfffe, payload ); + MsgStatusReport msg = new MsgStatusReport( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.reporting_system; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.reporting_system + "' != '" + 64850 + "'", - value.equals(BigInteger.valueOf(64850L))); + org.junit.Assert.assertTrue("'" + msg.reporting_system + "' != '" + 64850 + "'", value.equals(BigInteger.valueOf( 64850L ) ) ); } else { value = value.longValue(); expected = 64850L; @@ -300,9 +50,7 @@ public void test1() throws Throwable { } value = msg.sbp_version; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sbp_version + "' != '" + 24497 + "'", - value.equals(BigInteger.valueOf(24497L))); + org.junit.Assert.assertTrue("'" + msg.sbp_version + "' != '" + 24497 + "'", value.equals(BigInteger.valueOf( 24497L ) ) ); } else { value = value.longValue(); expected = 24497L; @@ -310,9 +58,7 @@ public void test1() throws Throwable { } value = msg.sequence; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sequence + "' != '" + 1519336451 + "'", - value.equals(BigInteger.valueOf(1519336451L))); + org.junit.Assert.assertTrue("'" + msg.sequence + "' != '" + 1519336451 + "'", value.equals(BigInteger.valueOf( 1519336451L ) ) ); } else { value = value.longValue(); expected = 1519336451L; @@ -320,9 +66,7 @@ public void test1() throws Throwable { } value = msg.status[0].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[0].component + "' != '" + 52215 + "'", - value.equals(BigInteger.valueOf(52215L))); + org.junit.Assert.assertTrue("'" + msg.status[0].component + "' != '" + 52215 + "'", value.equals(BigInteger.valueOf( 52215L ) ) ); } else { value = value.longValue(); expected = 52215L; @@ -330,9 +74,7 @@ public void test1() throws Throwable { } value = msg.status[0].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[0].generic + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.status[0].generic + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -340,9 +82,7 @@ public void test1() throws Throwable { } value = msg.status[0].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[0].specific + "' != '" + 198 + "'", - value.equals(BigInteger.valueOf(198L))); + org.junit.Assert.assertTrue("'" + msg.status[0].specific + "' != '" + 198 + "'", value.equals(BigInteger.valueOf( 198L ) ) ); } else { value = value.longValue(); expected = 198L; @@ -350,9 +90,7 @@ public void test1() throws Throwable { } value = msg.status[1].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[1].component + "' != '" + 53148 + "'", - value.equals(BigInteger.valueOf(53148L))); + org.junit.Assert.assertTrue("'" + msg.status[1].component + "' != '" + 53148 + "'", value.equals(BigInteger.valueOf( 53148L ) ) ); } else { value = value.longValue(); expected = 53148L; @@ -360,9 +98,7 @@ public void test1() throws Throwable { } value = msg.status[1].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[1].generic + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.status[1].generic + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -370,9 +106,7 @@ public void test1() throws Throwable { } value = msg.status[1].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[1].specific + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.status[1].specific + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -380,9 +114,7 @@ public void test1() throws Throwable { } value = msg.status[2].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[2].component + "' != '" + 34978 + "'", - value.equals(BigInteger.valueOf(34978L))); + org.junit.Assert.assertTrue("'" + msg.status[2].component + "' != '" + 34978 + "'", value.equals(BigInteger.valueOf( 34978L ) ) ); } else { value = value.longValue(); expected = 34978L; @@ -390,9 +122,7 @@ public void test1() throws Throwable { } value = msg.status[2].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[2].generic + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.status[2].generic + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -400,9 +130,7 @@ public void test1() throws Throwable { } value = msg.status[2].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[2].specific + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.status[2].specific + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -410,9 +138,7 @@ public void test1() throws Throwable { } value = msg.status[3].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[3].component + "' != '" + 60530 + "'", - value.equals(BigInteger.valueOf(60530L))); + org.junit.Assert.assertTrue("'" + msg.status[3].component + "' != '" + 60530 + "'", value.equals(BigInteger.valueOf( 60530L ) ) ); } else { value = value.longValue(); expected = 60530L; @@ -420,9 +146,7 @@ public void test1() throws Throwable { } value = msg.status[3].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[3].generic + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.status[3].generic + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -430,9 +154,7 @@ public void test1() throws Throwable { } value = msg.status[3].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[3].specific + "' != '" + 235 + "'", - value.equals(BigInteger.valueOf(235L))); + org.junit.Assert.assertTrue("'" + msg.status[3].specific + "' != '" + 235 + "'", value.equals(BigInteger.valueOf( 235L ) ) ); } else { value = value.longValue(); expected = 235L; @@ -440,9 +162,7 @@ public void test1() throws Throwable { } value = msg.status[4].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[4].component + "' != '" + 34060 + "'", - value.equals(BigInteger.valueOf(34060L))); + org.junit.Assert.assertTrue("'" + msg.status[4].component + "' != '" + 34060 + "'", value.equals(BigInteger.valueOf( 34060L ) ) ); } else { value = value.longValue(); expected = 34060L; @@ -450,9 +170,7 @@ public void test1() throws Throwable { } value = msg.status[4].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[4].generic + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.status[4].generic + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -460,9 +178,7 @@ public void test1() throws Throwable { } value = msg.status[4].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[4].specific + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.status[4].specific + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -470,9 +186,7 @@ public void test1() throws Throwable { } value = msg.status[5].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[5].component + "' != '" + 37295 + "'", - value.equals(BigInteger.valueOf(37295L))); + org.junit.Assert.assertTrue("'" + msg.status[5].component + "' != '" + 37295 + "'", value.equals(BigInteger.valueOf( 37295L ) ) ); } else { value = value.longValue(); expected = 37295L; @@ -480,9 +194,7 @@ public void test1() throws Throwable { } value = msg.status[5].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[5].generic + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.status[5].generic + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -490,9 +202,7 @@ public void test1() throws Throwable { } value = msg.status[5].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[5].specific + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.status[5].specific + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -500,9 +210,7 @@ public void test1() throws Throwable { } value = msg.status[6].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[6].component + "' != '" + 5335 + "'", - value.equals(BigInteger.valueOf(5335L))); + org.junit.Assert.assertTrue("'" + msg.status[6].component + "' != '" + 5335 + "'", value.equals(BigInteger.valueOf( 5335L ) ) ); } else { value = value.longValue(); expected = 5335L; @@ -510,9 +218,7 @@ public void test1() throws Throwable { } value = msg.status[6].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[6].generic + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.status[6].generic + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -520,9 +226,7 @@ public void test1() throws Throwable { } value = msg.status[6].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[6].specific + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.status[6].specific + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -530,9 +234,7 @@ public void test1() throws Throwable { } value = msg.status[7].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[7].component + "' != '" + 13878 + "'", - value.equals(BigInteger.valueOf(13878L))); + org.junit.Assert.assertTrue("'" + msg.status[7].component + "' != '" + 13878 + "'", value.equals(BigInteger.valueOf( 13878L ) ) ); } else { value = value.longValue(); expected = 13878L; @@ -540,9 +242,7 @@ public void test1() throws Throwable { } value = msg.status[7].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[7].generic + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.status[7].generic + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -550,9 +250,7 @@ public void test1() throws Throwable { } value = msg.status[7].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[7].specific + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.status[7].specific + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -560,9 +258,7 @@ public void test1() throws Throwable { } value = msg.status[8].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[8].component + "' != '" + 47722 + "'", - value.equals(BigInteger.valueOf(47722L))); + org.junit.Assert.assertTrue("'" + msg.status[8].component + "' != '" + 47722 + "'", value.equals(BigInteger.valueOf( 47722L ) ) ); } else { value = value.longValue(); expected = 47722L; @@ -570,9 +266,7 @@ public void test1() throws Throwable { } value = msg.status[8].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[8].generic + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.status[8].generic + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -580,9 +274,7 @@ public void test1() throws Throwable { } value = msg.status[8].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[8].specific + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.status[8].specific + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -590,9 +282,7 @@ public void test1() throws Throwable { } value = msg.status[9].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[9].component + "' != '" + 33024 + "'", - value.equals(BigInteger.valueOf(33024L))); + org.junit.Assert.assertTrue("'" + msg.status[9].component + "' != '" + 33024 + "'", value.equals(BigInteger.valueOf( 33024L ) ) ); } else { value = value.longValue(); expected = 33024L; @@ -600,9 +290,7 @@ public void test1() throws Throwable { } value = msg.status[9].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[9].generic + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.status[9].generic + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -610,9 +298,7 @@ public void test1() throws Throwable { } value = msg.status[9].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[9].specific + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.status[9].specific + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -620,9 +306,7 @@ public void test1() throws Throwable { } value = msg.status[10].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[10].component + "' != '" + 38369 + "'", - value.equals(BigInteger.valueOf(38369L))); + org.junit.Assert.assertTrue("'" + msg.status[10].component + "' != '" + 38369 + "'", value.equals(BigInteger.valueOf( 38369L ) ) ); } else { value = value.longValue(); expected = 38369L; @@ -630,9 +314,7 @@ public void test1() throws Throwable { } value = msg.status[10].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[10].generic + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.status[10].generic + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -640,9 +322,7 @@ public void test1() throws Throwable { } value = msg.status[10].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[10].specific + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.status[10].specific + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -650,9 +330,7 @@ public void test1() throws Throwable { } value = msg.status[11].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[11].component + "' != '" + 6658 + "'", - value.equals(BigInteger.valueOf(6658L))); + org.junit.Assert.assertTrue("'" + msg.status[11].component + "' != '" + 6658 + "'", value.equals(BigInteger.valueOf( 6658L ) ) ); } else { value = value.longValue(); expected = 6658L; @@ -660,9 +338,7 @@ public void test1() throws Throwable { } value = msg.status[11].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[11].generic + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.status[11].generic + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -670,9 +346,7 @@ public void test1() throws Throwable { } value = msg.status[11].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[11].specific + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.status[11].specific + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -680,9 +354,7 @@ public void test1() throws Throwable { } value = msg.status[12].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[12].component + "' != '" + 26378 + "'", - value.equals(BigInteger.valueOf(26378L))); + org.junit.Assert.assertTrue("'" + msg.status[12].component + "' != '" + 26378 + "'", value.equals(BigInteger.valueOf( 26378L ) ) ); } else { value = value.longValue(); expected = 26378L; @@ -690,9 +362,7 @@ public void test1() throws Throwable { } value = msg.status[12].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[12].generic + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.status[12].generic + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -700,9 +370,7 @@ public void test1() throws Throwable { } value = msg.status[12].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[12].specific + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.status[12].specific + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -710,9 +378,7 @@ public void test1() throws Throwable { } value = msg.status[13].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[13].component + "' != '" + 17511 + "'", - value.equals(BigInteger.valueOf(17511L))); + org.junit.Assert.assertTrue("'" + msg.status[13].component + "' != '" + 17511 + "'", value.equals(BigInteger.valueOf( 17511L ) ) ); } else { value = value.longValue(); expected = 17511L; @@ -720,9 +386,7 @@ public void test1() throws Throwable { } value = msg.status[13].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[13].generic + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.status[13].generic + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -730,9 +394,7 @@ public void test1() throws Throwable { } value = msg.status[13].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[13].specific + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.status[13].specific + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -740,9 +402,7 @@ public void test1() throws Throwable { } value = msg.status[14].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[14].component + "' != '" + 52769 + "'", - value.equals(BigInteger.valueOf(52769L))); + org.junit.Assert.assertTrue("'" + msg.status[14].component + "' != '" + 52769 + "'", value.equals(BigInteger.valueOf( 52769L ) ) ); } else { value = value.longValue(); expected = 52769L; @@ -750,9 +410,7 @@ public void test1() throws Throwable { } value = msg.status[14].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[14].generic + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.status[14].generic + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -760,9 +418,7 @@ public void test1() throws Throwable { } value = msg.status[14].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[14].specific + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.status[14].specific + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -770,9 +426,7 @@ public void test1() throws Throwable { } value = msg.status[15].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[15].component + "' != '" + 7803 + "'", - value.equals(BigInteger.valueOf(7803L))); + org.junit.Assert.assertTrue("'" + msg.status[15].component + "' != '" + 7803 + "'", value.equals(BigInteger.valueOf( 7803L ) ) ); } else { value = value.longValue(); expected = 7803L; @@ -780,9 +434,7 @@ public void test1() throws Throwable { } value = msg.status[15].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[15].generic + "' != '" + 151 + "'", - value.equals(BigInteger.valueOf(151L))); + org.junit.Assert.assertTrue("'" + msg.status[15].generic + "' != '" + 151 + "'", value.equals(BigInteger.valueOf( 151L ) ) ); } else { value = value.longValue(); expected = 151L; @@ -790,9 +442,7 @@ public void test1() throws Throwable { } value = msg.status[15].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[15].specific + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.status[15].specific + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -800,9 +450,7 @@ public void test1() throws Throwable { } value = msg.status[16].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[16].component + "' != '" + 44181 + "'", - value.equals(BigInteger.valueOf(44181L))); + org.junit.Assert.assertTrue("'" + msg.status[16].component + "' != '" + 44181 + "'", value.equals(BigInteger.valueOf( 44181L ) ) ); } else { value = value.longValue(); expected = 44181L; @@ -810,9 +458,7 @@ public void test1() throws Throwable { } value = msg.status[16].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[16].generic + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.status[16].generic + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -820,9 +466,7 @@ public void test1() throws Throwable { } value = msg.status[16].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[16].specific + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.status[16].specific + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -830,9 +474,7 @@ public void test1() throws Throwable { } value = msg.status[17].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[17].component + "' != '" + 58998 + "'", - value.equals(BigInteger.valueOf(58998L))); + org.junit.Assert.assertTrue("'" + msg.status[17].component + "' != '" + 58998 + "'", value.equals(BigInteger.valueOf( 58998L ) ) ); } else { value = value.longValue(); expected = 58998L; @@ -840,9 +482,7 @@ public void test1() throws Throwable { } value = msg.status[17].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[17].generic + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.status[17].generic + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -850,9 +490,7 @@ public void test1() throws Throwable { } value = msg.status[17].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[17].specific + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.status[17].specific + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -860,9 +498,7 @@ public void test1() throws Throwable { } value = msg.status[18].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[18].component + "' != '" + 28004 + "'", - value.equals(BigInteger.valueOf(28004L))); + org.junit.Assert.assertTrue("'" + msg.status[18].component + "' != '" + 28004 + "'", value.equals(BigInteger.valueOf( 28004L ) ) ); } else { value = value.longValue(); expected = 28004L; @@ -870,9 +506,7 @@ public void test1() throws Throwable { } value = msg.status[18].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[18].generic + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.status[18].generic + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -880,9 +514,7 @@ public void test1() throws Throwable { } value = msg.status[18].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[18].specific + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.status[18].specific + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -890,9 +522,7 @@ public void test1() throws Throwable { } value = msg.status[19].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[19].component + "' != '" + 15364 + "'", - value.equals(BigInteger.valueOf(15364L))); + org.junit.Assert.assertTrue("'" + msg.status[19].component + "' != '" + 15364 + "'", value.equals(BigInteger.valueOf( 15364L ) ) ); } else { value = value.longValue(); expected = 15364L; @@ -900,9 +530,7 @@ public void test1() throws Throwable { } value = msg.status[19].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[19].generic + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.status[19].generic + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -910,9 +538,7 @@ public void test1() throws Throwable { } value = msg.status[19].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[19].specific + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.status[19].specific + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -920,9 +546,7 @@ public void test1() throws Throwable { } value = msg.status[20].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[20].component + "' != '" + 42711 + "'", - value.equals(BigInteger.valueOf(42711L))); + org.junit.Assert.assertTrue("'" + msg.status[20].component + "' != '" + 42711 + "'", value.equals(BigInteger.valueOf( 42711L ) ) ); } else { value = value.longValue(); expected = 42711L; @@ -930,9 +554,7 @@ public void test1() throws Throwable { } value = msg.status[20].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[20].generic + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.status[20].generic + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -940,9 +562,7 @@ public void test1() throws Throwable { } value = msg.status[20].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[20].specific + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.status[20].specific + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -950,9 +570,7 @@ public void test1() throws Throwable { } value = msg.status[21].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[21].component + "' != '" + 11630 + "'", - value.equals(BigInteger.valueOf(11630L))); + org.junit.Assert.assertTrue("'" + msg.status[21].component + "' != '" + 11630 + "'", value.equals(BigInteger.valueOf( 11630L ) ) ); } else { value = value.longValue(); expected = 11630L; @@ -960,9 +578,7 @@ public void test1() throws Throwable { } value = msg.status[21].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[21].generic + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.status[21].generic + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -970,9 +586,7 @@ public void test1() throws Throwable { } value = msg.status[21].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[21].specific + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.status[21].specific + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -980,9 +594,7 @@ public void test1() throws Throwable { } value = msg.status[22].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[22].component + "' != '" + 46068 + "'", - value.equals(BigInteger.valueOf(46068L))); + org.junit.Assert.assertTrue("'" + msg.status[22].component + "' != '" + 46068 + "'", value.equals(BigInteger.valueOf( 46068L ) ) ); } else { value = value.longValue(); expected = 46068L; @@ -990,9 +602,7 @@ public void test1() throws Throwable { } value = msg.status[22].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[22].generic + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.status[22].generic + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -1000,9 +610,7 @@ public void test1() throws Throwable { } value = msg.status[22].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[22].specific + "' != '" + 107 + "'", - value.equals(BigInteger.valueOf(107L))); + org.junit.Assert.assertTrue("'" + msg.status[22].specific + "' != '" + 107 + "'", value.equals(BigInteger.valueOf( 107L ) ) ); } else { value = value.longValue(); expected = 107L; @@ -1010,9 +618,7 @@ public void test1() throws Throwable { } value = msg.status[23].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[23].component + "' != '" + 31836 + "'", - value.equals(BigInteger.valueOf(31836L))); + org.junit.Assert.assertTrue("'" + msg.status[23].component + "' != '" + 31836 + "'", value.equals(BigInteger.valueOf( 31836L ) ) ); } else { value = value.longValue(); expected = 31836L; @@ -1020,9 +626,7 @@ public void test1() throws Throwable { } value = msg.status[23].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[23].generic + "' != '" + 94 + "'", - value.equals(BigInteger.valueOf(94L))); + org.junit.Assert.assertTrue("'" + msg.status[23].generic + "' != '" + 94 + "'", value.equals(BigInteger.valueOf( 94L ) ) ); } else { value = value.longValue(); expected = 94L; @@ -1030,9 +634,7 @@ public void test1() throws Throwable { } value = msg.status[23].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[23].specific + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.status[23].specific + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1040,9 +642,7 @@ public void test1() throws Throwable { } value = msg.status[24].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[24].component + "' != '" + 47914 + "'", - value.equals(BigInteger.valueOf(47914L))); + org.junit.Assert.assertTrue("'" + msg.status[24].component + "' != '" + 47914 + "'", value.equals(BigInteger.valueOf( 47914L ) ) ); } else { value = value.longValue(); expected = 47914L; @@ -1050,9 +650,7 @@ public void test1() throws Throwable { } value = msg.status[24].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[24].generic + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.status[24].generic + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1060,9 +658,7 @@ public void test1() throws Throwable { } value = msg.status[24].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[24].specific + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.status[24].specific + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1070,9 +666,7 @@ public void test1() throws Throwable { } value = msg.status[25].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[25].component + "' != '" + 63329 + "'", - value.equals(BigInteger.valueOf(63329L))); + org.junit.Assert.assertTrue("'" + msg.status[25].component + "' != '" + 63329 + "'", value.equals(BigInteger.valueOf( 63329L ) ) ); } else { value = value.longValue(); expected = 63329L; @@ -1080,9 +674,7 @@ public void test1() throws Throwable { } value = msg.status[25].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[25].generic + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.status[25].generic + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1090,9 +682,7 @@ public void test1() throws Throwable { } value = msg.status[25].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[25].specific + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.status[25].specific + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -1100,9 +690,7 @@ public void test1() throws Throwable { } value = msg.status[26].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[26].component + "' != '" + 30830 + "'", - value.equals(BigInteger.valueOf(30830L))); + org.junit.Assert.assertTrue("'" + msg.status[26].component + "' != '" + 30830 + "'", value.equals(BigInteger.valueOf( 30830L ) ) ); } else { value = value.longValue(); expected = 30830L; @@ -1110,9 +698,7 @@ public void test1() throws Throwable { } value = msg.status[26].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[26].generic + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.status[26].generic + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -1120,9 +706,7 @@ public void test1() throws Throwable { } value = msg.status[26].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[26].specific + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.status[26].specific + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1130,9 +714,7 @@ public void test1() throws Throwable { } value = msg.status[27].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[27].component + "' != '" + 13166 + "'", - value.equals(BigInteger.valueOf(13166L))); + org.junit.Assert.assertTrue("'" + msg.status[27].component + "' != '" + 13166 + "'", value.equals(BigInteger.valueOf( 13166L ) ) ); } else { value = value.longValue(); expected = 13166L; @@ -1140,9 +722,7 @@ public void test1() throws Throwable { } value = msg.status[27].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[27].generic + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.status[27].generic + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -1150,9 +730,7 @@ public void test1() throws Throwable { } value = msg.status[27].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[27].specific + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.status[27].specific + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1160,9 +738,7 @@ public void test1() throws Throwable { } value = msg.status[28].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[28].component + "' != '" + 4755 + "'", - value.equals(BigInteger.valueOf(4755L))); + org.junit.Assert.assertTrue("'" + msg.status[28].component + "' != '" + 4755 + "'", value.equals(BigInteger.valueOf( 4755L ) ) ); } else { value = value.longValue(); expected = 4755L; @@ -1170,9 +746,7 @@ public void test1() throws Throwable { } value = msg.status[28].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[28].generic + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.status[28].generic + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -1180,9 +754,7 @@ public void test1() throws Throwable { } value = msg.status[28].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[28].specific + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.status[28].specific + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1190,9 +762,7 @@ public void test1() throws Throwable { } value = msg.status[29].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[29].component + "' != '" + 1091 + "'", - value.equals(BigInteger.valueOf(1091L))); + org.junit.Assert.assertTrue("'" + msg.status[29].component + "' != '" + 1091 + "'", value.equals(BigInteger.valueOf( 1091L ) ) ); } else { value = value.longValue(); expected = 1091L; @@ -1200,9 +770,7 @@ public void test1() throws Throwable { } value = msg.status[29].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[29].generic + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.status[29].generic + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1210,9 +778,7 @@ public void test1() throws Throwable { } value = msg.status[29].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[29].specific + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.status[29].specific + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1220,9 +786,7 @@ public void test1() throws Throwable { } value = msg.status[30].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[30].component + "' != '" + 16574 + "'", - value.equals(BigInteger.valueOf(16574L))); + org.junit.Assert.assertTrue("'" + msg.status[30].component + "' != '" + 16574 + "'", value.equals(BigInteger.valueOf( 16574L ) ) ); } else { value = value.longValue(); expected = 16574L; @@ -1230,9 +794,7 @@ public void test1() throws Throwable { } value = msg.status[30].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[30].generic + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.status[30].generic + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1240,9 +802,7 @@ public void test1() throws Throwable { } value = msg.status[30].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[30].specific + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.status[30].specific + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1250,9 +810,7 @@ public void test1() throws Throwable { } value = msg.status[31].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[31].component + "' != '" + 39293 + "'", - value.equals(BigInteger.valueOf(39293L))); + org.junit.Assert.assertTrue("'" + msg.status[31].component + "' != '" + 39293 + "'", value.equals(BigInteger.valueOf( 39293L ) ) ); } else { value = value.longValue(); expected = 39293L; @@ -1260,9 +818,7 @@ public void test1() throws Throwable { } value = msg.status[31].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[31].generic + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.status[31].generic + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -1270,9 +826,7 @@ public void test1() throws Throwable { } value = msg.status[31].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[31].specific + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.status[31].specific + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1280,9 +834,7 @@ public void test1() throws Throwable { } value = msg.status[32].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[32].component + "' != '" + 17098 + "'", - value.equals(BigInteger.valueOf(17098L))); + org.junit.Assert.assertTrue("'" + msg.status[32].component + "' != '" + 17098 + "'", value.equals(BigInteger.valueOf( 17098L ) ) ); } else { value = value.longValue(); expected = 17098L; @@ -1290,9 +842,7 @@ public void test1() throws Throwable { } value = msg.status[32].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[32].generic + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.status[32].generic + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1300,9 +850,7 @@ public void test1() throws Throwable { } value = msg.status[32].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[32].specific + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.status[32].specific + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1310,9 +858,7 @@ public void test1() throws Throwable { } value = msg.status[33].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[33].component + "' != '" + 41256 + "'", - value.equals(BigInteger.valueOf(41256L))); + org.junit.Assert.assertTrue("'" + msg.status[33].component + "' != '" + 41256 + "'", value.equals(BigInteger.valueOf( 41256L ) ) ); } else { value = value.longValue(); expected = 41256L; @@ -1320,9 +866,7 @@ public void test1() throws Throwable { } value = msg.status[33].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[33].generic + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.status[33].generic + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1330,9 +874,7 @@ public void test1() throws Throwable { } value = msg.status[33].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[33].specific + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.status[33].specific + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -1340,9 +882,7 @@ public void test1() throws Throwable { } value = msg.status[34].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[34].component + "' != '" + 982 + "'", - value.equals(BigInteger.valueOf(982L))); + org.junit.Assert.assertTrue("'" + msg.status[34].component + "' != '" + 982 + "'", value.equals(BigInteger.valueOf( 982L ) ) ); } else { value = value.longValue(); expected = 982L; @@ -1350,9 +890,7 @@ public void test1() throws Throwable { } value = msg.status[34].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[34].generic + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.status[34].generic + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1360,9 +898,7 @@ public void test1() throws Throwable { } value = msg.status[34].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[34].specific + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.status[34].specific + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1370,9 +906,7 @@ public void test1() throws Throwable { } value = msg.status[35].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[35].component + "' != '" + 18038 + "'", - value.equals(BigInteger.valueOf(18038L))); + org.junit.Assert.assertTrue("'" + msg.status[35].component + "' != '" + 18038 + "'", value.equals(BigInteger.valueOf( 18038L ) ) ); } else { value = value.longValue(); expected = 18038L; @@ -1380,9 +914,7 @@ public void test1() throws Throwable { } value = msg.status[35].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[35].generic + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.status[35].generic + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -1390,9 +922,7 @@ public void test1() throws Throwable { } value = msg.status[35].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[35].specific + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.status[35].specific + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -1400,9 +930,7 @@ public void test1() throws Throwable { } value = msg.status[36].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[36].component + "' != '" + 7090 + "'", - value.equals(BigInteger.valueOf(7090L))); + org.junit.Assert.assertTrue("'" + msg.status[36].component + "' != '" + 7090 + "'", value.equals(BigInteger.valueOf( 7090L ) ) ); } else { value = value.longValue(); expected = 7090L; @@ -1410,9 +938,7 @@ public void test1() throws Throwable { } value = msg.status[36].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[36].generic + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.status[36].generic + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1420,9 +946,7 @@ public void test1() throws Throwable { } value = msg.status[36].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[36].specific + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.status[36].specific + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1430,9 +954,7 @@ public void test1() throws Throwable { } value = msg.status[37].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[37].component + "' != '" + 29119 + "'", - value.equals(BigInteger.valueOf(29119L))); + org.junit.Assert.assertTrue("'" + msg.status[37].component + "' != '" + 29119 + "'", value.equals(BigInteger.valueOf( 29119L ) ) ); } else { value = value.longValue(); expected = 29119L; @@ -1440,9 +962,7 @@ public void test1() throws Throwable { } value = msg.status[37].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[37].generic + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.status[37].generic + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1450,9 +970,7 @@ public void test1() throws Throwable { } value = msg.status[37].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[37].specific + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.status[37].specific + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1460,9 +978,7 @@ public void test1() throws Throwable { } value = msg.status[38].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[38].component + "' != '" + 2120 + "'", - value.equals(BigInteger.valueOf(2120L))); + org.junit.Assert.assertTrue("'" + msg.status[38].component + "' != '" + 2120 + "'", value.equals(BigInteger.valueOf( 2120L ) ) ); } else { value = value.longValue(); expected = 2120L; @@ -1470,9 +986,7 @@ public void test1() throws Throwable { } value = msg.status[38].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[38].generic + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.status[38].generic + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -1480,9 +994,7 @@ public void test1() throws Throwable { } value = msg.status[38].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[38].specific + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.status[38].specific + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1490,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.status[39].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[39].component + "' != '" + 15182 + "'", - value.equals(BigInteger.valueOf(15182L))); + org.junit.Assert.assertTrue("'" + msg.status[39].component + "' != '" + 15182 + "'", value.equals(BigInteger.valueOf( 15182L ) ) ); } else { value = value.longValue(); expected = 15182L; @@ -1500,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.status[39].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[39].generic + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.status[39].generic + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -1510,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.status[39].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[39].specific + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.status[39].specific + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -1520,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.status[40].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[40].component + "' != '" + 8307 + "'", - value.equals(BigInteger.valueOf(8307L))); + org.junit.Assert.assertTrue("'" + msg.status[40].component + "' != '" + 8307 + "'", value.equals(BigInteger.valueOf( 8307L ) ) ); } else { value = value.longValue(); expected = 8307L; @@ -1530,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.status[40].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[40].generic + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.status[40].generic + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -1540,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.status[40].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[40].specific + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.status[40].specific + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1550,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.status[41].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[41].component + "' != '" + 43731 + "'", - value.equals(BigInteger.valueOf(43731L))); + org.junit.Assert.assertTrue("'" + msg.status[41].component + "' != '" + 43731 + "'", value.equals(BigInteger.valueOf( 43731L ) ) ); } else { value = value.longValue(); expected = 43731L; @@ -1560,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.status[41].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[41].generic + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.status[41].generic + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -1570,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.status[41].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[41].specific + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.status[41].specific + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -1580,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.status[42].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[42].component + "' != '" + 19357 + "'", - value.equals(BigInteger.valueOf(19357L))); + org.junit.Assert.assertTrue("'" + msg.status[42].component + "' != '" + 19357 + "'", value.equals(BigInteger.valueOf( 19357L ) ) ); } else { value = value.longValue(); expected = 19357L; @@ -1590,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.status[42].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[42].generic + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.status[42].generic + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1600,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.status[42].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[42].specific + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.status[42].specific + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -1610,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.status[43].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[43].component + "' != '" + 14086 + "'", - value.equals(BigInteger.valueOf(14086L))); + org.junit.Assert.assertTrue("'" + msg.status[43].component + "' != '" + 14086 + "'", value.equals(BigInteger.valueOf( 14086L ) ) ); } else { value = value.longValue(); expected = 14086L; @@ -1620,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.status[43].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[43].generic + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.status[43].generic + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1630,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.status[43].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[43].specific + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.status[43].specific + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1640,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.status[44].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[44].component + "' != '" + 21099 + "'", - value.equals(BigInteger.valueOf(21099L))); + org.junit.Assert.assertTrue("'" + msg.status[44].component + "' != '" + 21099 + "'", value.equals(BigInteger.valueOf( 21099L ) ) ); } else { value = value.longValue(); expected = 21099L; @@ -1650,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.status[44].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[44].generic + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.status[44].generic + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1660,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.status[44].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[44].specific + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.status[44].specific + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1670,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.status[45].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[45].component + "' != '" + 31411 + "'", - value.equals(BigInteger.valueOf(31411L))); + org.junit.Assert.assertTrue("'" + msg.status[45].component + "' != '" + 31411 + "'", value.equals(BigInteger.valueOf( 31411L ) ) ); } else { value = value.longValue(); expected = 31411L; @@ -1680,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.status[45].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[45].generic + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.status[45].generic + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1690,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.status[45].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[45].specific + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.status[45].specific + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -1700,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.status[46].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[46].component + "' != '" + 22556 + "'", - value.equals(BigInteger.valueOf(22556L))); + org.junit.Assert.assertTrue("'" + msg.status[46].component + "' != '" + 22556 + "'", value.equals(BigInteger.valueOf( 22556L ) ) ); } else { value = value.longValue(); expected = 22556L; @@ -1710,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.status[46].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[46].generic + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.status[46].generic + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1720,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.status[46].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[46].specific + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.status[46].specific + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1730,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.status[47].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[47].component + "' != '" + 18609 + "'", - value.equals(BigInteger.valueOf(18609L))); + org.junit.Assert.assertTrue("'" + msg.status[47].component + "' != '" + 18609 + "'", value.equals(BigInteger.valueOf( 18609L ) ) ); } else { value = value.longValue(); expected = 18609L; @@ -1740,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.status[47].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[47].generic + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.status[47].generic + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1750,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.status[47].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[47].specific + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.status[47].specific + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1760,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.status[48].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[48].component + "' != '" + 2964 + "'", - value.equals(BigInteger.valueOf(2964L))); + org.junit.Assert.assertTrue("'" + msg.status[48].component + "' != '" + 2964 + "'", value.equals(BigInteger.valueOf( 2964L ) ) ); } else { value = value.longValue(); expected = 2964L; @@ -1770,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.status[48].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[48].generic + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.status[48].generic + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1780,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.status[48].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[48].specific + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.status[48].specific + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -1790,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.status[49].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[49].component + "' != '" + 23586 + "'", - value.equals(BigInteger.valueOf(23586L))); + org.junit.Assert.assertTrue("'" + msg.status[49].component + "' != '" + 23586 + "'", value.equals(BigInteger.valueOf( 23586L ) ) ); } else { value = value.longValue(); expected = 23586L; @@ -1800,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.status[49].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[49].generic + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.status[49].generic + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -1810,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.status[49].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[49].specific + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.status[49].specific + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1820,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.status[50].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[50].component + "' != '" + 25117 + "'", - value.equals(BigInteger.valueOf(25117L))); + org.junit.Assert.assertTrue("'" + msg.status[50].component + "' != '" + 25117 + "'", value.equals(BigInteger.valueOf( 25117L ) ) ); } else { value = value.longValue(); expected = 25117L; @@ -1830,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.status[50].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[50].generic + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.status[50].generic + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1840,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.status[50].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[50].specific + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.status[50].specific + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1850,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.status[51].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[51].component + "' != '" + 24454 + "'", - value.equals(BigInteger.valueOf(24454L))); + org.junit.Assert.assertTrue("'" + msg.status[51].component + "' != '" + 24454 + "'", value.equals(BigInteger.valueOf( 24454L ) ) ); } else { value = value.longValue(); expected = 24454L; @@ -1860,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.status[51].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[51].generic + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.status[51].generic + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1870,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.status[51].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[51].specific + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.status[51].specific + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -1880,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.status[52].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[52].component + "' != '" + 5312 + "'", - value.equals(BigInteger.valueOf(5312L))); + org.junit.Assert.assertTrue("'" + msg.status[52].component + "' != '" + 5312 + "'", value.equals(BigInteger.valueOf( 5312L ) ) ); } else { value = value.longValue(); expected = 5312L; @@ -1890,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.status[52].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[52].generic + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.status[52].generic + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1900,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.status[52].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[52].specific + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.status[52].specific + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -1910,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.status[53].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[53].component + "' != '" + 46175 + "'", - value.equals(BigInteger.valueOf(46175L))); + org.junit.Assert.assertTrue("'" + msg.status[53].component + "' != '" + 46175 + "'", value.equals(BigInteger.valueOf( 46175L ) ) ); } else { value = value.longValue(); expected = 46175L; @@ -1920,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.status[53].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[53].generic + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.status[53].generic + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1930,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.status[53].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[53].specific + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.status[53].specific + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1940,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.status[54].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[54].component + "' != '" + 19386 + "'", - value.equals(BigInteger.valueOf(19386L))); + org.junit.Assert.assertTrue("'" + msg.status[54].component + "' != '" + 19386 + "'", value.equals(BigInteger.valueOf( 19386L ) ) ); } else { value = value.longValue(); expected = 19386L; @@ -1950,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.status[54].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[54].generic + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.status[54].generic + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1960,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.status[54].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[54].specific + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.status[54].specific + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1970,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.status[55].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[55].component + "' != '" + 34205 + "'", - value.equals(BigInteger.valueOf(34205L))); + org.junit.Assert.assertTrue("'" + msg.status[55].component + "' != '" + 34205 + "'", value.equals(BigInteger.valueOf( 34205L ) ) ); } else { value = value.longValue(); expected = 34205L; @@ -1980,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.status[55].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[55].generic + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.status[55].generic + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1990,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.status[55].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[55].specific + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.status[55].specific + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -2000,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.status[56].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[56].component + "' != '" + 3612 + "'", - value.equals(BigInteger.valueOf(3612L))); + org.junit.Assert.assertTrue("'" + msg.status[56].component + "' != '" + 3612 + "'", value.equals(BigInteger.valueOf( 3612L ) ) ); } else { value = value.longValue(); expected = 3612L; @@ -2010,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.status[56].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[56].generic + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.status[56].generic + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -2020,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.status[56].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[56].specific + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.status[56].specific + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2030,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.status[57].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[57].component + "' != '" + 61285 + "'", - value.equals(BigInteger.valueOf(61285L))); + org.junit.Assert.assertTrue("'" + msg.status[57].component + "' != '" + 61285 + "'", value.equals(BigInteger.valueOf( 61285L ) ) ); } else { value = value.longValue(); expected = 61285L; @@ -2040,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.status[57].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[57].generic + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.status[57].generic + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -2050,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.status[57].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[57].specific + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.status[57].specific + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -2060,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.status[58].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[58].component + "' != '" + 7925 + "'", - value.equals(BigInteger.valueOf(7925L))); + org.junit.Assert.assertTrue("'" + msg.status[58].component + "' != '" + 7925 + "'", value.equals(BigInteger.valueOf( 7925L ) ) ); } else { value = value.longValue(); expected = 7925L; @@ -2070,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.status[58].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[58].generic + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.status[58].generic + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2080,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.status[58].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[58].specific + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.status[58].specific + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -2090,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.status[59].component; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[59].component + "' != '" + 54414 + "'", - value.equals(BigInteger.valueOf(54414L))); + org.junit.Assert.assertTrue("'" + msg.status[59].component + "' != '" + 54414 + "'", value.equals(BigInteger.valueOf( 54414L ) ) ); } else { value = value.longValue(); expected = 54414L; @@ -2100,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.status[59].generic; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[59].generic + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.status[59].generic + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -2110,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.status[59].specific; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.status[59].specific + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.status[59].specific + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -2120,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 1657804265 + "'", - value.equals(BigInteger.valueOf(1657804265L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 1657804265 + "'", value.equals(BigInteger.valueOf( 1657804265L ) ) ); } else { value = value.longValue(); expected = 1657804265L; diff --git a/java/test/auto_check_sbp_system_system_structsTest.java b/java/test/auto_check_sbp_system_system_structsTest.java index 6cc1308519..58ac395a7f 100644 --- a/java/test/auto_check_sbp_system_system_structsTest.java +++ b/java/test/auto_check_sbp_system_system_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,10 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_system_structs.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/system/test_system_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_system_system_structsTest { diff --git a/java/test/auto_check_sbp_telemetry_MsgTelSvTest.java b/java/test/auto_check_sbp_telemetry_MsgTelSvTest.java index 4ff1dc2b5a..cbed52513b 100644 --- a/java/test/auto_check_sbp_telemetry_MsgTelSvTest.java +++ b/java/test/auto_check_sbp_telemetry_MsgTelSvTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/telemetry/test_MsgTelSv.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/telemetry/test_MsgTelSv.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.telemetry.MsgTelSv; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_telemetry_MsgTelSvTest { @@ -27,22 +32,17 @@ public class auto_check_sbp_telemetry_MsgTelSvTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_telemetry_MsgTelSvTest.test1"); - byte[] payload = - new byte[] { - (byte) 175, (byte) 8, (byte) 208, (byte) 221, (byte) 62, (byte) 24, (byte) 16, - (byte) 1, (byte) 40, (byte) 50, (byte) 5, (byte) 226, (byte) 255, (byte) 1, - (byte) 0, (byte) 1, (byte) 1, (byte) 1, (byte) 33, (byte) 12, - }; - SBPMessage sbp = new SBPMessage(0x2694, 0x120, payload); - MsgTelSv msg = new MsgTelSv(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_telemetry_MsgTelSvTest.test1"); + byte[] payload = new byte[] {(byte)175,(byte)8,(byte)208,(byte)221,(byte)62,(byte)24,(byte)16,(byte)1,(byte)40,(byte)50,(byte)5,(byte)226,(byte)255,(byte)1,(byte)0,(byte)1,(byte)1,(byte)1,(byte)33,(byte)12, }; + SBPMessage sbp = new SBPMessage( 0x2694, 0x120, payload ); + MsgTelSv msg = new MsgTelSv( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.n_obs; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.n_obs + "' != '" + 16 + "'", value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.n_obs + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -50,9 +50,7 @@ public void test1() throws Throwable { } value = msg.origin_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.origin_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.origin_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -60,9 +58,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].availability_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].availability_flags + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].availability_flags + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -70,9 +66,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].az; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].az + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].az + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -80,9 +74,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].correction_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].correction_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].correction_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -90,9 +82,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].el; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].el + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].el + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -100,9 +90,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].ephemeris_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].ephemeris_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].ephemeris_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -110,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].outlier_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].outlier_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].outlier_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -120,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].phase_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].phase_residual + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].phase_residual + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -130,9 +114,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].pseudorange_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].pseudorange_residual + "' != '" + -30 + "'", - value.equals(BigInteger.valueOf(-30L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].pseudorange_residual + "' != '" + -30 + "'", value.equals(BigInteger.valueOf( -30L ) ) ); } else { value = value.longValue(); expected = -30L; @@ -140,9 +122,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].sid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].sid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -150,9 +130,7 @@ public void test1() throws Throwable { } value = msg.sv_tel[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sv_tel[0].sid.sat + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.sv_tel[0].sid.sat + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -160,9 +138,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 406773200 + "'", - value.equals(BigInteger.valueOf(406773200L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 406773200 + "'", value.equals(BigInteger.valueOf( 406773200L ) ) ); } else { value = value.longValue(); expected = 406773200L; @@ -170,8 +146,7 @@ public void test1() throws Throwable { } value = msg.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.wn + "' != '" + 2223 + "'", value.equals(BigInteger.valueOf(2223L))); + org.junit.Assert.assertTrue("'" + msg.wn + "' != '" + 2223 + "'", value.equals(BigInteger.valueOf( 2223L ) ) ); } else { value = value.longValue(); expected = 2223L; diff --git a/java/test/auto_check_sbp_telemetry_acquisition_structsTest.java b/java/test/auto_check_sbp_telemetry_acquisition_structsTest.java index cd1998283a..a09692e82b 100644 --- a/java/test/auto_check_sbp_telemetry_acquisition_structsTest.java +++ b/java/test/auto_check_sbp_telemetry_acquisition_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/acquisition/test_acquisition_structs.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/acquisition/test_acquisition_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_telemetry_acquisition_structsTest { diff --git a/java/test/auto_check_sbp_telemetry_telemetry_structsTest.java b/java/test/auto_check_sbp_telemetry_telemetry_structsTest.java index 8d5ddce7d5..6b619f9f17 100644 --- a/java/test/auto_check_sbp_telemetry_telemetry_structsTest.java +++ b/java/test/auto_check_sbp_telemetry_telemetry_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/telemetry/test_telemetry_structs.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/telemetry/test_telemetry_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_telemetry_telemetry_structsTest { diff --git a/java/test/auto_check_sbp_tracking_MsgMeasurementStateTest.java b/java/test/auto_check_sbp_tracking_MsgMeasurementStateTest.java index 114483b457..86a793d99f 100644 --- a/java/test/auto_check_sbp_tracking_MsgMeasurementStateTest.java +++ b/java/test/auto_check_sbp_tracking_MsgMeasurementStateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgMeasurementState.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgMeasurementState.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgMeasurementState; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgMeasurementStateTest { @@ -30,256 +34,15 @@ public class auto_check_sbp_tracking_MsgMeasurementStateTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgMeasurementStateTest.test1"); - byte[] payload = - new byte[] { - (byte) 29, - (byte) 0, - (byte) 162, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 27, - (byte) 0, - (byte) 201, - (byte) 20, - (byte) 0, - (byte) 168, - (byte) 32, - (byte) 0, - (byte) 184, - (byte) 15, - (byte) 0, - (byte) 187, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 18, - (byte) 0, - (byte) 210, - (byte) 16, - (byte) 0, - (byte) 167, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 23, - (byte) 0, - (byte) 213, - (byte) 10, - (byte) 0, - (byte) 223, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 131, - (byte) 2, - (byte) 202, - (byte) 27, - (byte) 1, - (byte) 192, - (byte) 15, - (byte) 1, - (byte) 165, - (byte) 29, - (byte) 1, - (byte) 146, - (byte) 32, - (byte) 1, - (byte) 170, - (byte) 18, - (byte) 1, - (byte) 201, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 23, - (byte) 1, - (byte) 212, - (byte) 10, - (byte) 1, - (byte) 205, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 96, - (byte) 3, - (byte) 230, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 101, - (byte) 3, - (byte) 214, - (byte) 103, - (byte) 3, - (byte) 212, - (byte) 104, - (byte) 3, - (byte) 209, - (byte) 106, - (byte) 3, - (byte) 157, - (byte) 102, - (byte) 3, - (byte) 230, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 101, - (byte) 4, - (byte) 189, - (byte) 96, - (byte) 4, - (byte) 207, - (byte) 106, - (byte) 4, - (byte) 164, - (byte) 104, - (byte) 4, - (byte) 193, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 102, - (byte) 4, - (byte) 208, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 27, - (byte) 12, - (byte) 212, - (byte) 29, - (byte) 12, - (byte) 161, - (byte) 32, - (byte) 12, - (byte) 216, - (byte) 30, - (byte) 12, - (byte) 216, - (byte) 20, - (byte) 12, - (byte) 178, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 36, - (byte) 14, - (byte) 203, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 5, - (byte) 14, - (byte) 158, - (byte) 4, - (byte) 14, - (byte) 194, - (byte) 11, - (byte) 14, - (byte) 192, - (byte) 9, - (byte) 14, - (byte) 207, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 9, - (byte) 20, - (byte) 218, - (byte) 5, - (byte) 20, - (byte) 176, - (byte) 36, - (byte) 20, - (byte) 217, - (byte) 11, - (byte) 20, - (byte) 200, - (byte) 4, - (byte) 20, - (byte) 205, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - }; - SBPMessage sbp = new SBPMessage(0x79CF, 0x61, payload); - MsgMeasurementState msg = new MsgMeasurementState(sbp); + byte[] payload = new byte[] {(byte)29,(byte)0,(byte)162,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)27,(byte)0,(byte)201,(byte)20,(byte)0,(byte)168,(byte)32,(byte)0,(byte)184,(byte)15,(byte)0,(byte)187,(byte)0,(byte)0,(byte)0,(byte)18,(byte)0,(byte)210,(byte)16,(byte)0,(byte)167,(byte)0,(byte)0,(byte)0,(byte)23,(byte)0,(byte)213,(byte)10,(byte)0,(byte)223,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)131,(byte)2,(byte)202,(byte)27,(byte)1,(byte)192,(byte)15,(byte)1,(byte)165,(byte)29,(byte)1,(byte)146,(byte)32,(byte)1,(byte)170,(byte)18,(byte)1,(byte)201,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)23,(byte)1,(byte)212,(byte)10,(byte)1,(byte)205,(byte)0,(byte)0,(byte)0,(byte)96,(byte)3,(byte)230,(byte)0,(byte)0,(byte)0,(byte)101,(byte)3,(byte)214,(byte)103,(byte)3,(byte)212,(byte)104,(byte)3,(byte)209,(byte)106,(byte)3,(byte)157,(byte)102,(byte)3,(byte)230,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)101,(byte)4,(byte)189,(byte)96,(byte)4,(byte)207,(byte)106,(byte)4,(byte)164,(byte)104,(byte)4,(byte)193,(byte)0,(byte)0,(byte)0,(byte)102,(byte)4,(byte)208,(byte)0,(byte)0,(byte)0,(byte)27,(byte)12,(byte)212,(byte)29,(byte)12,(byte)161,(byte)32,(byte)12,(byte)216,(byte)30,(byte)12,(byte)216,(byte)20,(byte)12,(byte)178,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)36,(byte)14,(byte)203,(byte)0,(byte)0,(byte)0,(byte)5,(byte)14,(byte)158,(byte)4,(byte)14,(byte)194,(byte)11,(byte)14,(byte)192,(byte)9,(byte)14,(byte)207,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)9,(byte)20,(byte)218,(byte)5,(byte)20,(byte)176,(byte)36,(byte)20,(byte)217,(byte)11,(byte)20,(byte)200,(byte)4,(byte)20,(byte)205,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0, }; + SBPMessage sbp = new SBPMessage( 0x79CF, 0x61, payload ); + MsgMeasurementState msg = new MsgMeasurementState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.states[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].cn0 + "' != '" + 162 + "'", - value.equals(BigInteger.valueOf(162L))); + org.junit.Assert.assertTrue("'" + msg.states[0].cn0 + "' != '" + 162 + "'", value.equals(BigInteger.valueOf( 162L ) ) ); } else { value = value.longValue(); expected = 162L; @@ -287,9 +50,7 @@ public void test1() throws Throwable { } value = msg.states[0].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -297,9 +58,7 @@ public void test1() throws Throwable { } value = msg.states[0].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].mesid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.states[0].mesid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -307,9 +66,7 @@ public void test1() throws Throwable { } value = msg.states[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -317,9 +74,7 @@ public void test1() throws Throwable { } value = msg.states[1].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -327,9 +82,7 @@ public void test1() throws Throwable { } value = msg.states[1].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -337,9 +90,7 @@ public void test1() throws Throwable { } value = msg.states[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -347,9 +98,7 @@ public void test1() throws Throwable { } value = msg.states[2].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -357,9 +106,7 @@ public void test1() throws Throwable { } value = msg.states[2].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -367,9 +114,7 @@ public void test1() throws Throwable { } value = msg.states[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].cn0 + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.states[3].cn0 + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -377,9 +122,7 @@ public void test1() throws Throwable { } value = msg.states[3].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -387,9 +130,7 @@ public void test1() throws Throwable { } value = msg.states[3].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].mesid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.states[3].mesid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -397,9 +138,7 @@ public void test1() throws Throwable { } value = msg.states[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].cn0 + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.states[4].cn0 + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -407,9 +146,7 @@ public void test1() throws Throwable { } value = msg.states[4].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -417,9 +154,7 @@ public void test1() throws Throwable { } value = msg.states[4].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].mesid.sat + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[4].mesid.sat + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -427,9 +162,7 @@ public void test1() throws Throwable { } value = msg.states[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].cn0 + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.states[5].cn0 + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -437,9 +170,7 @@ public void test1() throws Throwable { } value = msg.states[5].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -447,9 +178,7 @@ public void test1() throws Throwable { } value = msg.states[5].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].mesid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.states[5].mesid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -457,9 +186,7 @@ public void test1() throws Throwable { } value = msg.states[6].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].cn0 + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.states[6].cn0 + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -467,9 +194,7 @@ public void test1() throws Throwable { } value = msg.states[6].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -477,9 +202,7 @@ public void test1() throws Throwable { } value = msg.states[6].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].mesid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.states[6].mesid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -487,9 +210,7 @@ public void test1() throws Throwable { } value = msg.states[7].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -497,9 +218,7 @@ public void test1() throws Throwable { } value = msg.states[7].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -507,9 +226,7 @@ public void test1() throws Throwable { } value = msg.states[7].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -517,9 +234,7 @@ public void test1() throws Throwable { } value = msg.states[8].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].cn0 + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.states[8].cn0 + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -527,9 +242,7 @@ public void test1() throws Throwable { } value = msg.states[8].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -537,9 +250,7 @@ public void test1() throws Throwable { } value = msg.states[8].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].mesid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.states[8].mesid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -547,9 +258,7 @@ public void test1() throws Throwable { } value = msg.states[9].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].cn0 + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.states[9].cn0 + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -557,9 +266,7 @@ public void test1() throws Throwable { } value = msg.states[9].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -567,9 +274,7 @@ public void test1() throws Throwable { } value = msg.states[9].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].mesid.sat + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.states[9].mesid.sat + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -577,9 +282,7 @@ public void test1() throws Throwable { } value = msg.states[10].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -587,9 +290,7 @@ public void test1() throws Throwable { } value = msg.states[10].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -597,9 +298,7 @@ public void test1() throws Throwable { } value = msg.states[10].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -607,9 +306,7 @@ public void test1() throws Throwable { } value = msg.states[11].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].cn0 + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.states[11].cn0 + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -617,9 +314,7 @@ public void test1() throws Throwable { } value = msg.states[11].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[11].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -627,9 +322,7 @@ public void test1() throws Throwable { } value = msg.states[11].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].mesid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.states[11].mesid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -637,9 +330,7 @@ public void test1() throws Throwable { } value = msg.states[12].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].cn0 + "' != '" + 223 + "'", - value.equals(BigInteger.valueOf(223L))); + org.junit.Assert.assertTrue("'" + msg.states[12].cn0 + "' != '" + 223 + "'", value.equals(BigInteger.valueOf( 223L ) ) ); } else { value = value.longValue(); expected = 223L; @@ -647,9 +338,7 @@ public void test1() throws Throwable { } value = msg.states[12].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[12].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -657,9 +346,7 @@ public void test1() throws Throwable { } value = msg.states[12].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].mesid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.states[12].mesid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -667,9 +354,7 @@ public void test1() throws Throwable { } value = msg.states[13].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[13].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -677,9 +362,7 @@ public void test1() throws Throwable { } value = msg.states[13].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[13].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -687,9 +370,7 @@ public void test1() throws Throwable { } value = msg.states[13].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[13].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -697,9 +378,7 @@ public void test1() throws Throwable { } value = msg.states[14].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[14].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -707,9 +386,7 @@ public void test1() throws Throwable { } value = msg.states[14].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[14].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -717,9 +394,7 @@ public void test1() throws Throwable { } value = msg.states[14].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[14].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -727,9 +402,7 @@ public void test1() throws Throwable { } value = msg.states[15].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[15].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -737,9 +410,7 @@ public void test1() throws Throwable { } value = msg.states[15].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[15].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -747,9 +418,7 @@ public void test1() throws Throwable { } value = msg.states[15].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[15].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -757,9 +426,7 @@ public void test1() throws Throwable { } value = msg.states[16].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[16].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -767,9 +434,7 @@ public void test1() throws Throwable { } value = msg.states[16].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[16].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -777,9 +442,7 @@ public void test1() throws Throwable { } value = msg.states[16].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[16].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -787,9 +450,7 @@ public void test1() throws Throwable { } value = msg.states[17].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].cn0 + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[17].cn0 + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -797,9 +458,7 @@ public void test1() throws Throwable { } value = msg.states[17].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].mesid.code + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[17].mesid.code + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -807,9 +466,7 @@ public void test1() throws Throwable { } value = msg.states[17].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].mesid.sat + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.states[17].mesid.sat + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -817,9 +474,7 @@ public void test1() throws Throwable { } value = msg.states[18].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].cn0 + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.states[18].cn0 + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -827,9 +482,7 @@ public void test1() throws Throwable { } value = msg.states[18].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[18].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -837,9 +490,7 @@ public void test1() throws Throwable { } value = msg.states[18].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].mesid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.states[18].mesid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -847,9 +498,7 @@ public void test1() throws Throwable { } value = msg.states[19].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].cn0 + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.states[19].cn0 + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -857,9 +506,7 @@ public void test1() throws Throwable { } value = msg.states[19].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[19].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -867,9 +514,7 @@ public void test1() throws Throwable { } value = msg.states[19].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].mesid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.states[19].mesid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -877,9 +522,7 @@ public void test1() throws Throwable { } value = msg.states[20].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].cn0 + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.states[20].cn0 + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -887,9 +530,7 @@ public void test1() throws Throwable { } value = msg.states[20].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[20].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -897,9 +538,7 @@ public void test1() throws Throwable { } value = msg.states[20].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].mesid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.states[20].mesid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -907,9 +546,7 @@ public void test1() throws Throwable { } value = msg.states[21].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].cn0 + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.states[21].cn0 + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -917,9 +554,7 @@ public void test1() throws Throwable { } value = msg.states[21].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[21].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -927,9 +562,7 @@ public void test1() throws Throwable { } value = msg.states[21].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].mesid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.states[21].mesid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -937,9 +570,7 @@ public void test1() throws Throwable { } value = msg.states[22].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].cn0 + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.states[22].cn0 + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -947,9 +578,7 @@ public void test1() throws Throwable { } value = msg.states[22].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[22].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -957,9 +586,7 @@ public void test1() throws Throwable { } value = msg.states[22].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].mesid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.states[22].mesid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -967,9 +594,7 @@ public void test1() throws Throwable { } value = msg.states[23].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[23].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -977,9 +602,7 @@ public void test1() throws Throwable { } value = msg.states[23].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[23].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -987,9 +610,7 @@ public void test1() throws Throwable { } value = msg.states[23].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[23].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -997,9 +618,7 @@ public void test1() throws Throwable { } value = msg.states[24].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[24].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1007,9 +626,7 @@ public void test1() throws Throwable { } value = msg.states[24].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[24].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1017,9 +634,7 @@ public void test1() throws Throwable { } value = msg.states[24].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[24].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1027,9 +642,7 @@ public void test1() throws Throwable { } value = msg.states[25].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[25].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1037,9 +650,7 @@ public void test1() throws Throwable { } value = msg.states[25].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[25].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1047,9 +658,7 @@ public void test1() throws Throwable { } value = msg.states[25].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[25].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1057,9 +666,7 @@ public void test1() throws Throwable { } value = msg.states[26].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].cn0 + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[26].cn0 + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1067,9 +674,7 @@ public void test1() throws Throwable { } value = msg.states[26].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[26].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1077,9 +682,7 @@ public void test1() throws Throwable { } value = msg.states[26].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].mesid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.states[26].mesid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1087,9 +690,7 @@ public void test1() throws Throwable { } value = msg.states[27].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].cn0 + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.states[27].cn0 + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -1097,9 +698,7 @@ public void test1() throws Throwable { } value = msg.states[27].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].mesid.code + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[27].mesid.code + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1107,9 +706,7 @@ public void test1() throws Throwable { } value = msg.states[27].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].mesid.sat + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.states[27].mesid.sat + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1117,9 +714,7 @@ public void test1() throws Throwable { } value = msg.states[28].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[28].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1127,9 +722,7 @@ public void test1() throws Throwable { } value = msg.states[28].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[28].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1137,9 +730,7 @@ public void test1() throws Throwable { } value = msg.states[28].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[28].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1147,9 +738,7 @@ public void test1() throws Throwable { } value = msg.states[29].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].cn0 + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.states[29].cn0 + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1157,9 +746,7 @@ public void test1() throws Throwable { } value = msg.states[29].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[29].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1167,9 +754,7 @@ public void test1() throws Throwable { } value = msg.states[29].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].mesid.sat + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.states[29].mesid.sat + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1177,9 +762,7 @@ public void test1() throws Throwable { } value = msg.states[30].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[30].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1187,9 +770,7 @@ public void test1() throws Throwable { } value = msg.states[30].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[30].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1197,9 +778,7 @@ public void test1() throws Throwable { } value = msg.states[30].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[30].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1207,9 +786,7 @@ public void test1() throws Throwable { } value = msg.states[31].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].cn0 + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.states[31].cn0 + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1217,9 +794,7 @@ public void test1() throws Throwable { } value = msg.states[31].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[31].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1227,9 +802,7 @@ public void test1() throws Throwable { } value = msg.states[31].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].mesid.sat + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.states[31].mesid.sat + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1237,9 +810,7 @@ public void test1() throws Throwable { } value = msg.states[32].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].cn0 + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[32].cn0 + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1247,9 +818,7 @@ public void test1() throws Throwable { } value = msg.states[32].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[32].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1257,9 +826,7 @@ public void test1() throws Throwable { } value = msg.states[32].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].mesid.sat + "' != '" + 103 + "'", - value.equals(BigInteger.valueOf(103L))); + org.junit.Assert.assertTrue("'" + msg.states[32].mesid.sat + "' != '" + 103 + "'", value.equals(BigInteger.valueOf( 103L ) ) ); } else { value = value.longValue(); expected = 103L; @@ -1267,9 +834,7 @@ public void test1() throws Throwable { } value = msg.states[33].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].cn0 + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.states[33].cn0 + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1277,9 +842,7 @@ public void test1() throws Throwable { } value = msg.states[33].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[33].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1287,9 +850,7 @@ public void test1() throws Throwable { } value = msg.states[33].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].mesid.sat + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.states[33].mesid.sat + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1297,9 +858,7 @@ public void test1() throws Throwable { } value = msg.states[34].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].cn0 + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.states[34].cn0 + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1307,9 +866,7 @@ public void test1() throws Throwable { } value = msg.states[34].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[34].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1317,9 +874,7 @@ public void test1() throws Throwable { } value = msg.states[34].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].mesid.sat + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.states[34].mesid.sat + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1327,9 +882,7 @@ public void test1() throws Throwable { } value = msg.states[35].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].cn0 + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.states[35].cn0 + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1337,9 +890,7 @@ public void test1() throws Throwable { } value = msg.states[35].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].mesid.code + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[35].mesid.code + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1347,9 +898,7 @@ public void test1() throws Throwable { } value = msg.states[35].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].mesid.sat + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.states[35].mesid.sat + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1357,9 +906,7 @@ public void test1() throws Throwable { } value = msg.states[36].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[36].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1367,9 +914,7 @@ public void test1() throws Throwable { } value = msg.states[36].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[36].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1377,9 +922,7 @@ public void test1() throws Throwable { } value = msg.states[36].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[36].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1387,9 +930,7 @@ public void test1() throws Throwable { } value = msg.states[37].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[37].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1397,9 +938,7 @@ public void test1() throws Throwable { } value = msg.states[37].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[37].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1407,9 +946,7 @@ public void test1() throws Throwable { } value = msg.states[37].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[37].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1417,9 +954,7 @@ public void test1() throws Throwable { } value = msg.states[38].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].cn0 + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.states[38].cn0 + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1427,9 +962,7 @@ public void test1() throws Throwable { } value = msg.states[38].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].mesid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[38].mesid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1437,9 +970,7 @@ public void test1() throws Throwable { } value = msg.states[38].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].mesid.sat + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.states[38].mesid.sat + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1447,9 +978,7 @@ public void test1() throws Throwable { } value = msg.states[39].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].cn0 + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.states[39].cn0 + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -1457,9 +986,7 @@ public void test1() throws Throwable { } value = msg.states[39].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].mesid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[39].mesid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1467,9 +994,7 @@ public void test1() throws Throwable { } value = msg.states[39].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].mesid.sat + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.states[39].mesid.sat + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1477,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.states[40].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].cn0 + "' != '" + 164 + "'", - value.equals(BigInteger.valueOf(164L))); + org.junit.Assert.assertTrue("'" + msg.states[40].cn0 + "' != '" + 164 + "'", value.equals(BigInteger.valueOf( 164L ) ) ); } else { value = value.longValue(); expected = 164L; @@ -1487,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.states[40].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].mesid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[40].mesid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1497,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.states[40].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].mesid.sat + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.states[40].mesid.sat + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1507,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.states[41].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].cn0 + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.states[41].cn0 + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1517,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.states[41].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].mesid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[41].mesid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1527,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.states[41].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].mesid.sat + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.states[41].mesid.sat + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1537,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.states[42].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[42].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1547,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.states[42].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[42].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1557,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.states[42].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[42].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1567,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.states[43].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].cn0 + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[43].cn0 + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1577,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.states[43].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].mesid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[43].mesid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1587,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.states[43].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].mesid.sat + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.states[43].mesid.sat + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -1597,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.states[44].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[44].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1607,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.states[44].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[44].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1617,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.states[44].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[44].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1627,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.states[45].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].cn0 + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[45].cn0 + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1637,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.states[45].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].mesid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[45].mesid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1647,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.states[45].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].mesid.sat + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.states[45].mesid.sat + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -1657,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.states[46].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].cn0 + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.states[46].cn0 + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -1667,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.states[46].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].mesid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[46].mesid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1677,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.states[46].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].mesid.sat + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.states[46].mesid.sat + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -1687,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.states[47].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].cn0 + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.states[47].cn0 + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1697,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.states[47].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].mesid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[47].mesid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1707,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.states[47].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].mesid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.states[47].mesid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -1717,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.states[48].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].cn0 + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.states[48].cn0 + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -1727,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.states[48].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].mesid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[48].mesid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1737,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.states[48].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].mesid.sat + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.states[48].mesid.sat + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1747,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.states[49].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].cn0 + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.states[49].cn0 + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1757,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.states[49].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].mesid.code + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[49].mesid.code + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1767,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.states[49].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].mesid.sat + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[49].mesid.sat + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1777,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.states[50].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[50].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1787,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.states[50].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[50].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1797,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.states[50].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[50].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1807,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.states[51].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[51].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1817,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.states[51].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[51].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1827,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.states[51].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[51].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1837,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.states[52].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[52].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1847,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.states[52].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[52].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1857,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.states[52].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[52].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1867,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.states[53].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[53].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1877,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.states[53].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[53].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1887,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.states[53].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[53].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1897,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.states[54].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[54].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1907,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.states[54].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[54].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1917,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.states[54].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[54].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1927,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.states[55].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[55].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1937,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.states[55].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[55].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1947,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.states[55].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[55].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1957,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.states[56].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[56].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1967,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.states[56].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[56].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1977,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.states[56].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[56].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1987,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.states[57].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[57].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1997,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.states[57].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[57].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2007,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.states[57].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[57].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2017,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.states[58].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[58].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2027,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.states[58].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[58].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2037,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.states[58].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[58].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2047,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.states[59].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[59].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2057,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.states[59].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[59].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2067,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.states[59].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[59].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2077,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.states[60].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[60].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2087,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.states[60].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[60].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2097,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.states[60].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[60].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2107,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.states[61].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[61].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2117,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.states[61].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[61].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2127,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.states[61].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[61].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2137,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.states[62].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[62].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2147,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.states[62].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[62].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2157,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.states[62].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[62].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2167,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.states[63].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[63].cn0 + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[63].cn0 + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -2177,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.states[63].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[63].mesid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[63].mesid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2187,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.states[63].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[63].mesid.sat + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.states[63].mesid.sat + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2197,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.states[64].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[64].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[64].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2207,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.states[64].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[64].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[64].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2217,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.states[64].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[64].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[64].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2227,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.states[65].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[65].cn0 + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.states[65].cn0 + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -2237,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.states[65].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[65].mesid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[65].mesid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2247,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.states[65].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[65].mesid.sat + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.states[65].mesid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2257,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.states[66].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[66].cn0 + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.states[66].cn0 + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2267,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.states[66].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[66].mesid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[66].mesid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2277,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.states[66].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[66].mesid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[66].mesid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2287,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.states[67].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[67].cn0 + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.states[67].cn0 + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -2297,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.states[67].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[67].mesid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[67].mesid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2307,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.states[67].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[67].mesid.sat + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.states[67].mesid.sat + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2317,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.states[68].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[68].cn0 + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.states[68].cn0 + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2327,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.states[68].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[68].mesid.code + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[68].mesid.code + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2337,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.states[68].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[68].mesid.sat + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.states[68].mesid.sat + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -2347,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.states[69].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[69].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[69].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2357,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.states[69].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[69].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[69].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2367,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.states[69].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[69].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[69].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2377,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.states[70].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[70].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[70].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2387,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.states[70].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[70].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[70].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2397,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.states[70].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[70].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[70].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2407,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.states[71].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[71].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[71].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2417,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.states[71].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[71].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[71].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2427,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.states[71].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[71].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[71].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2437,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.states[72].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[72].cn0 + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[72].cn0 + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -2447,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.states[72].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[72].mesid.code + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[72].mesid.code + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2457,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.states[72].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[72].mesid.sat + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.states[72].mesid.sat + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -2467,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.states[73].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[73].cn0 + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.states[73].cn0 + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -2477,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.states[73].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[73].mesid.code + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[73].mesid.code + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2487,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.states[73].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[73].mesid.sat + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.states[73].mesid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2497,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.states[74].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[74].cn0 + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[74].cn0 + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -2507,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.states[74].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[74].mesid.code + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[74].mesid.code + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2517,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.states[74].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[74].mesid.sat + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.states[74].mesid.sat + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2527,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.states[75].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[75].cn0 + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.states[75].cn0 + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2537,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.states[75].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[75].mesid.code + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[75].mesid.code + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2547,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.states[75].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[75].mesid.sat + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.states[75].mesid.sat + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -2557,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.states[76].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[76].cn0 + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.states[76].cn0 + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -2567,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.states[76].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[76].mesid.code + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[76].mesid.code + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2577,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.states[76].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[76].mesid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[76].mesid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -2587,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.states[77].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[77].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[77].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2597,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.states[77].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[77].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[77].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2607,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.states[77].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[77].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[77].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2617,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.states[78].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[78].cn0 + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[78].cn0 + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2627,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.states[78].mesid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[78].mesid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[78].mesid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2637,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.states[78].mesid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[78].mesid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[78].mesid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingIqDepATest.java b/java/test/auto_check_sbp_tracking_MsgTrackingIqDepATest.java index 22647c3bf7..a623d05eb4 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingIqDepATest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingIqDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIqDepA.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIqDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingIqDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingIqDepATest { @@ -30,24 +34,15 @@ public class auto_check_sbp_tracking_MsgTrackingIqDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingIqDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 139, (byte) 28, (byte) 250, (byte) 15, (byte) 0, (byte) 99, (byte) 90, - (byte) 170, (byte) 96, (byte) 71, (byte) 121, (byte) 33, (byte) 161, (byte) 52, - (byte) 211, (byte) 162, (byte) 101, (byte) 41, (byte) 36, (byte) 226, (byte) 99, - (byte) 71, (byte) 75, (byte) 14, (byte) 240, (byte) 134, (byte) 82, (byte) 175, - (byte) 83, - }; - SBPMessage sbp = new SBPMessage(0x43b8, 0x1c, payload); - MsgTrackingIqDepA msg = new MsgTrackingIqDepA(sbp); + byte[] payload = new byte[] {(byte)139,(byte)28,(byte)250,(byte)15,(byte)0,(byte)99,(byte)90,(byte)170,(byte)96,(byte)71,(byte)121,(byte)33,(byte)161,(byte)52,(byte)211,(byte)162,(byte)101,(byte)41,(byte)36,(byte)226,(byte)99,(byte)71,(byte)75,(byte)14,(byte)240,(byte)134,(byte)82,(byte)175,(byte)83, }; + SBPMessage sbp = new SBPMessage( 0x43b8, 0x1c, payload ); + MsgTrackingIqDepA msg = new MsgTrackingIqDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.channel; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.channel + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.channel + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -55,9 +50,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].I + "' != '" + 1621776995 + "'", - value.equals(BigInteger.valueOf(1621776995L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].I + "' != '" + 1621776995 + "'", value.equals(BigInteger.valueOf( 1621776995L ) ) ); } else { value = value.longValue(); expected = 1621776995L; @@ -65,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].Q + "' != '" + -1591641785 + "'", - value.equals(BigInteger.valueOf(-1591641785L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].Q + "' != '" + -1591641785 + "'", value.equals(BigInteger.valueOf( -1591641785L ) ) ); } else { value = value.longValue(); expected = -1591641785L; @@ -75,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].I + "' != '" + 1705169716 + "'", - value.equals(BigInteger.valueOf(1705169716L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].I + "' != '" + 1705169716 + "'", value.equals(BigInteger.valueOf( 1705169716L ) ) ); } else { value = value.longValue(); expected = 1705169716L; @@ -85,9 +74,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].Q + "' != '" + 1675764777 + "'", - value.equals(BigInteger.valueOf(1675764777L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].Q + "' != '" + 1675764777 + "'", value.equals(BigInteger.valueOf( 1675764777L ) ) ); } else { value = value.longValue(); expected = 1675764777L; @@ -95,9 +82,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].I + "' != '" + -267498681 + "'", - value.equals(BigInteger.valueOf(-267498681L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].I + "' != '" + -267498681 + "'", value.equals(BigInteger.valueOf( -267498681L ) ) ); } else { value = value.longValue(); expected = -267498681L; @@ -105,9 +90,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].Q + "' != '" + 1403998854 + "'", - value.equals(BigInteger.valueOf(1403998854L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].Q + "' != '" + 1403998854 + "'", value.equals(BigInteger.valueOf( 1403998854L ) ) ); } else { value = value.longValue(); expected = 1403998854L; @@ -115,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -125,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -135,9 +114,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 64028 + "'", - value.equals(BigInteger.valueOf(64028L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 64028 + "'", value.equals(BigInteger.valueOf( 64028L ) ) ); } else { value = value.longValue(); expected = 64028L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingIqDepBTest.java b/java/test/auto_check_sbp_tracking_MsgTrackingIqDepBTest.java index 38a0416df8..bf172ca919 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingIqDepBTest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingIqDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIqDepB.yaml by generate.py. Do not modify -// by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIqDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingIqDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingIqDepBTest { @@ -30,45 +34,15 @@ public class auto_check_sbp_tracking_MsgTrackingIqDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingIqDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 45, - (byte) 188, - (byte) 183, - (byte) 72, - (byte) 185, - (byte) 157, - (byte) 15, - (byte) 187, - (byte) 249, - (byte) 101, - (byte) 24, - (byte) 135, - (byte) 146, - (byte) 180, - (byte) 224, - (byte) 123, - (byte) 235, - (byte) 142, - (byte) 208, - (byte) 102, - (byte) 112, - (byte) 25, - (byte) 21, - (byte) 177, - (byte) 96, - (byte) 116, - (byte) 68, - }; - SBPMessage sbp = new SBPMessage(0x6527, 0x2c, payload); - MsgTrackingIqDepB msg = new MsgTrackingIqDepB(sbp); + byte[] payload = new byte[] {(byte)45,(byte)188,(byte)183,(byte)72,(byte)185,(byte)157,(byte)15,(byte)187,(byte)249,(byte)101,(byte)24,(byte)135,(byte)146,(byte)180,(byte)224,(byte)123,(byte)235,(byte)142,(byte)208,(byte)102,(byte)112,(byte)25,(byte)21,(byte)177,(byte)96,(byte)116,(byte)68, }; + SBPMessage sbp = new SBPMessage( 0x6527, 0x2c, payload ); + MsgTrackingIqDepB msg = new MsgTrackingIqDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.channel; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.channel + "' != '" + 45 + "'", value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.channel + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -76,9 +50,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].I + "' != '" + 261994824 + "'", - value.equals(BigInteger.valueOf(261994824L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].I + "' != '" + 261994824 + "'", value.equals(BigInteger.valueOf( 261994824L ) ) ); } else { value = value.longValue(); expected = 261994824L; @@ -86,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].Q + "' != '" + 409336251 + "'", - value.equals(BigInteger.valueOf(409336251L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].Q + "' != '" + 409336251 + "'", value.equals(BigInteger.valueOf( 409336251L ) ) ); } else { value = value.longValue(); expected = 409336251L; @@ -96,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].I + "' != '" + -525036921 + "'", - value.equals(BigInteger.valueOf(-525036921L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].I + "' != '" + -525036921 + "'", value.equals(BigInteger.valueOf( -525036921L ) ) ); } else { value = value.longValue(); expected = -525036921L; @@ -106,9 +74,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].Q + "' != '" + -795939973 + "'", - value.equals(BigInteger.valueOf(-795939973L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].Q + "' != '" + -795939973 + "'", value.equals(BigInteger.valueOf( -795939973L ) ) ); } else { value = value.longValue(); expected = -795939973L; @@ -116,9 +82,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].I + "' != '" + 353988710 + "'", - value.equals(BigInteger.valueOf(353988710L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].I + "' != '" + 353988710 + "'", value.equals(BigInteger.valueOf( 353988710L ) ) ); } else { value = value.longValue(); expected = 353988710L; @@ -126,9 +90,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].Q + "' != '" + 1148477617 + "'", - value.equals(BigInteger.valueOf(1148477617L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].Q + "' != '" + 1148477617 + "'", value.equals(BigInteger.valueOf( 1148477617L ) ) ); } else { value = value.longValue(); expected = 1148477617L; @@ -136,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -146,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingIqTest.java b/java/test/auto_check_sbp_tracking_MsgTrackingIqTest.java index f187baccea..f6426ade39 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingIqTest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingIqTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIq.yaml -// by generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingIq.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingIq; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingIqTest { @@ -27,35 +32,17 @@ public class auto_check_sbp_tracking_MsgTrackingIqTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingIqTest.test1"); - byte[] payload = - new byte[] { - (byte) 145, - (byte) 121, - (byte) 203, - (byte) 47, - (byte) 217, - (byte) 239, - (byte) 55, - (byte) 45, - (byte) 38, - (byte) 189, - (byte) 88, - (byte) 159, - (byte) 19, - (byte) 208, - (byte) 12, - }; - SBPMessage sbp = new SBPMessage(0x5002, 0x2d, payload); - MsgTrackingIq msg = new MsgTrackingIq(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingIqTest.test1"); + byte[] payload = new byte[] {(byte)145,(byte)121,(byte)203,(byte)47,(byte)217,(byte)239,(byte)55,(byte)45,(byte)38,(byte)189,(byte)88,(byte)159,(byte)19,(byte)208,(byte)12, }; + SBPMessage sbp = new SBPMessage( 0x5002, 0x2d, payload ); + MsgTrackingIq msg = new MsgTrackingIq( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.channel; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.channel + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.channel + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -63,9 +50,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].I + "' != '" + -9937 + "'", - value.equals(BigInteger.valueOf(-9937L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].I + "' != '" + -9937 + "'", value.equals(BigInteger.valueOf( -9937L ) ) ); } else { value = value.longValue(); expected = -9937L; @@ -73,9 +58,7 @@ public void test1() throws Throwable { } value = msg.corrs[0].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[0].Q + "' != '" + 14319 + "'", - value.equals(BigInteger.valueOf(14319L))); + org.junit.Assert.assertTrue("'" + msg.corrs[0].Q + "' != '" + 14319 + "'", value.equals(BigInteger.valueOf( 14319L ) ) ); } else { value = value.longValue(); expected = 14319L; @@ -83,9 +66,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].I + "' != '" + 9773 + "'", - value.equals(BigInteger.valueOf(9773L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].I + "' != '" + 9773 + "'", value.equals(BigInteger.valueOf( 9773L ) ) ); } else { value = value.longValue(); expected = 9773L; @@ -93,9 +74,7 @@ public void test1() throws Throwable { } value = msg.corrs[1].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[1].Q + "' != '" + 22717 + "'", - value.equals(BigInteger.valueOf(22717L))); + org.junit.Assert.assertTrue("'" + msg.corrs[1].Q + "' != '" + 22717 + "'", value.equals(BigInteger.valueOf( 22717L ) ) ); } else { value = value.longValue(); expected = 22717L; @@ -103,9 +82,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].I; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].I + "' != '" + 5023 + "'", - value.equals(BigInteger.valueOf(5023L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].I + "' != '" + 5023 + "'", value.equals(BigInteger.valueOf( 5023L ) ) ); } else { value = value.longValue(); expected = 5023L; @@ -113,9 +90,7 @@ public void test1() throws Throwable { } value = msg.corrs[2].Q; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corrs[2].Q + "' != '" + 3280 + "'", - value.equals(BigInteger.valueOf(3280L))); + org.junit.Assert.assertTrue("'" + msg.corrs[2].Q + "' != '" + 3280 + "'", value.equals(BigInteger.valueOf( 3280L ) ) ); } else { value = value.longValue(); expected = 3280L; @@ -123,9 +98,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -133,9 +106,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingStateDepBTest.java b/java/test/auto_check_sbp_tracking_MsgTrackingStateDepBTest.java index 0e54fbe27d..4d8e1da406 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingStateDepBTest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingStateDepBTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDepB.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDepB.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingStateDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingStateDepBTest { @@ -30,272 +34,16 @@ public class auto_check_sbp_tracking_MsgTrackingStateDepBTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDepBTest.test1"); - byte[] payload = - new byte[] { - (byte) 115, - (byte) 183, - (byte) 227, - (byte) 63, - (byte) 68, - (byte) 154, - (byte) 1, - (byte) 183, - (byte) 69, - (byte) 255, - (byte) 175, - (byte) 121, - (byte) 43, - (byte) 222, - (byte) 51, - (byte) 67, - (byte) 35, - (byte) 69, - (byte) 78, - (byte) 240, - (byte) 5, - (byte) 53, - (byte) 20, - (byte) 51, - (byte) 211, - (byte) 54, - (byte) 69, - (byte) 153, - (byte) 130, - (byte) 237, - (byte) 66, - (byte) 155, - (byte) 51, - (byte) 227, - (byte) 71, - (byte) 69, - (byte) 53, - (byte) 242, - (byte) 136, - (byte) 161, - (byte) 190, - (byte) 205, - (byte) 188, - (byte) 6, - (byte) 70, - (byte) 153, - (byte) 125, - (byte) 255, - (byte) 142, - (byte) 149, - (byte) 154, - (byte) 217, - (byte) 184, - (byte) 69, - (byte) 248, - (byte) 102, - (byte) 95, - (byte) 31, - (byte) 76, - (byte) 154, - (byte) 33, - (byte) 169, - (byte) 69, - (byte) 131, - (byte) 115, - (byte) 141, - (byte) 27, - (byte) 12, - (byte) 154, - (byte) 225, - (byte) 200, - (byte) 69, - (byte) 208, - (byte) 44, - (byte) 147, - (byte) 39, - (byte) 23, - (byte) 51, - (byte) 3, - (byte) 66, - (byte) 69, - (byte) 237, - (byte) 159, - (byte) 251, - (byte) 49, - (byte) 203, - (byte) 51, - (byte) 99, - (byte) 102, - (byte) 69, - (byte) 70, - (byte) 214, - (byte) 87, - (byte) 128, - (byte) 206, - (byte) 154, - (byte) 121, - (byte) 186, - (byte) 69, - (byte) 14, - (byte) 206, - (byte) 111, - (byte) 218, - (byte) 19, - (byte) 154, - (byte) 121, - (byte) 169, - (byte) 69, - (byte) 216, - (byte) 98, - (byte) 209, - (byte) 54, - (byte) 2, - (byte) 154, - (byte) 25, - (byte) 219, - (byte) 67, - (byte) 200, - (byte) 133, - (byte) 99, - (byte) 7, - (byte) 34, - (byte) 102, - (byte) 198, - (byte) 232, - (byte) 68, - (byte) 155, - (byte) 43, - (byte) 85, - (byte) 135, - (byte) 46, - (byte) 154, - (byte) 177, - (byte) 170, - (byte) 69, - (byte) 155, - (byte) 3, - (byte) 83, - (byte) 171, - (byte) 201, - (byte) 154, - (byte) 241, - (byte) 232, - (byte) 69, - (byte) 121, - (byte) 43, - (byte) 197, - (byte) 16, - (byte) 19, - (byte) 154, - (byte) 241, - (byte) 222, - (byte) 69, - (byte) 128, - (byte) 245, - (byte) 53, - (byte) 63, - (byte) 176, - (byte) 51, - (byte) 115, - (byte) 66, - (byte) 69, - (byte) 36, - (byte) 20, - (byte) 61, - (byte) 153, - (byte) 51, - (byte) 154, - (byte) 73, - (byte) 134, - (byte) 69, - (byte) 46, - (byte) 82, - (byte) 116, - (byte) 140, - (byte) 22, - (byte) 51, - (byte) 147, - (byte) 37, - (byte) 69, - (byte) 177, - (byte) 67, - (byte) 146, - (byte) 96, - (byte) 143, - (byte) 205, - (byte) 76, - (byte) 107, - (byte) 68, - (byte) 220, - (byte) 51, - (byte) 160, - (byte) 201, - (byte) 251, - (byte) 102, - (byte) 102, - (byte) 192, - (byte) 68, - (byte) 168, - (byte) 194, - (byte) 2, - (byte) 161, - (byte) 220, - (byte) 102, - (byte) 102, - (byte) 180, - (byte) 68, - (byte) 69, - (byte) 8, - (byte) 9, - (byte) 125, - (byte) 178, - (byte) 102, - (byte) 70, - (byte) 134, - (byte) 68, - (byte) 185, - (byte) 20, - (byte) 135, - (byte) 186, - (byte) 171, - (byte) 51, - (byte) 163, - (byte) 4, - (byte) 69, - (byte) 18, - (byte) 124, - (byte) 155, - (byte) 85, - (byte) 170, - (byte) 205, - (byte) 208, - (byte) 13, - (byte) 70, - (byte) 57, - (byte) 244, - (byte) 206, - (byte) 255, - (byte) 186, - (byte) 154, - (byte) 105, - (byte) 149, - (byte) 69, - (byte) 165, - (byte) 199, - (byte) 93, - (byte) 181, - (byte) 175, - (byte) 51, - (byte) 67, - (byte) 64, - (byte) 69, - }; - SBPMessage sbp = new SBPMessage(0xf1f2, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)115,(byte)183,(byte)227,(byte)63,(byte)68,(byte)154,(byte)1,(byte)183,(byte)69,(byte)255,(byte)175,(byte)121,(byte)43,(byte)222,(byte)51,(byte)67,(byte)35,(byte)69,(byte)78,(byte)240,(byte)5,(byte)53,(byte)20,(byte)51,(byte)211,(byte)54,(byte)69,(byte)153,(byte)130,(byte)237,(byte)66,(byte)155,(byte)51,(byte)227,(byte)71,(byte)69,(byte)53,(byte)242,(byte)136,(byte)161,(byte)190,(byte)205,(byte)188,(byte)6,(byte)70,(byte)153,(byte)125,(byte)255,(byte)142,(byte)149,(byte)154,(byte)217,(byte)184,(byte)69,(byte)248,(byte)102,(byte)95,(byte)31,(byte)76,(byte)154,(byte)33,(byte)169,(byte)69,(byte)131,(byte)115,(byte)141,(byte)27,(byte)12,(byte)154,(byte)225,(byte)200,(byte)69,(byte)208,(byte)44,(byte)147,(byte)39,(byte)23,(byte)51,(byte)3,(byte)66,(byte)69,(byte)237,(byte)159,(byte)251,(byte)49,(byte)203,(byte)51,(byte)99,(byte)102,(byte)69,(byte)70,(byte)214,(byte)87,(byte)128,(byte)206,(byte)154,(byte)121,(byte)186,(byte)69,(byte)14,(byte)206,(byte)111,(byte)218,(byte)19,(byte)154,(byte)121,(byte)169,(byte)69,(byte)216,(byte)98,(byte)209,(byte)54,(byte)2,(byte)154,(byte)25,(byte)219,(byte)67,(byte)200,(byte)133,(byte)99,(byte)7,(byte)34,(byte)102,(byte)198,(byte)232,(byte)68,(byte)155,(byte)43,(byte)85,(byte)135,(byte)46,(byte)154,(byte)177,(byte)170,(byte)69,(byte)155,(byte)3,(byte)83,(byte)171,(byte)201,(byte)154,(byte)241,(byte)232,(byte)69,(byte)121,(byte)43,(byte)197,(byte)16,(byte)19,(byte)154,(byte)241,(byte)222,(byte)69,(byte)128,(byte)245,(byte)53,(byte)63,(byte)176,(byte)51,(byte)115,(byte)66,(byte)69,(byte)36,(byte)20,(byte)61,(byte)153,(byte)51,(byte)154,(byte)73,(byte)134,(byte)69,(byte)46,(byte)82,(byte)116,(byte)140,(byte)22,(byte)51,(byte)147,(byte)37,(byte)69,(byte)177,(byte)67,(byte)146,(byte)96,(byte)143,(byte)205,(byte)76,(byte)107,(byte)68,(byte)220,(byte)51,(byte)160,(byte)201,(byte)251,(byte)102,(byte)102,(byte)192,(byte)68,(byte)168,(byte)194,(byte)2,(byte)161,(byte)220,(byte)102,(byte)102,(byte)180,(byte)68,(byte)69,(byte)8,(byte)9,(byte)125,(byte)178,(byte)102,(byte)70,(byte)134,(byte)68,(byte)185,(byte)20,(byte)135,(byte)186,(byte)171,(byte)51,(byte)163,(byte)4,(byte)69,(byte)18,(byte)124,(byte)155,(byte)85,(byte)170,(byte)205,(byte)208,(byte)13,(byte)70,(byte)57,(byte)244,(byte)206,(byte)255,(byte)186,(byte)154,(byte)105,(byte)149,(byte)69,(byte)165,(byte)199,(byte)93,(byte)181,(byte)175,(byte)51,(byte)67,(byte)64,(byte)69, }; + SBPMessage sbp = new SBPMessage( 0xf1f2, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 5.85620019531250000e+03, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -303,9 +51,7 @@ public void test1() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -313,9 +59,7 @@ public void test1() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 58295 + "'", - value.equals(BigInteger.valueOf(58295L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 58295 + "'", value.equals(BigInteger.valueOf( 58295L ) ) ); } else { value = value.longValue(); expected = 58295L; @@ -323,9 +67,7 @@ public void test1() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -334,9 +76,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 2.61219995117187500e+03, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -344,9 +84,7 @@ public void test1() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -354,9 +92,7 @@ public void test1() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 31151 + "'", - value.equals(BigInteger.valueOf(31151L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 31151 + "'", value.equals(BigInteger.valueOf( 31151L ) ) ); } else { value = value.longValue(); expected = 31151L; @@ -364,9 +100,7 @@ public void test1() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -375,9 +109,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 2.92519995117187500e+03, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -385,9 +117,7 @@ public void test1() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -395,9 +125,7 @@ public void test1() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 1520 + "'", - value.equals(BigInteger.valueOf(1520L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 1520 + "'", value.equals(BigInteger.valueOf( 1520L ) ) ); } else { value = value.longValue(); expected = 1520L; @@ -405,9 +133,7 @@ public void test1() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 78 + "'", - value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -416,9 +142,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.19819995117187500e+03, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 66 + "'", - value.equals(BigInteger.valueOf(66L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 66 + "'", value.equals(BigInteger.valueOf( 66L ) ) ); } else { value = value.longValue(); expected = 66L; @@ -426,9 +150,7 @@ public void test1() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -436,9 +158,7 @@ public void test1() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 60802 + "'", - value.equals(BigInteger.valueOf(60802L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 60802 + "'", value.equals(BigInteger.valueOf( 60802L ) ) ); } else { value = value.longValue(); expected = 60802L; @@ -446,9 +166,7 @@ public void test1() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -457,9 +175,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 8.62320019531250000e+03, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -467,9 +183,7 @@ public void test1() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -477,9 +191,7 @@ public void test1() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 35058 + "'", - value.equals(BigInteger.valueOf(35058L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 35058 + "'", value.equals(BigInteger.valueOf( 35058L ) ) ); } else { value = value.longValue(); expected = 35058L; @@ -487,9 +199,7 @@ public void test1() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -498,9 +208,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 5.91520019531250000e+03, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -508,9 +216,7 @@ public void test1() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -518,9 +224,7 @@ public void test1() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 65405 + "'", - value.equals(BigInteger.valueOf(65405L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 65405 + "'", value.equals(BigInteger.valueOf( 65405L ) ) ); } else { value = value.longValue(); expected = 65405L; @@ -528,9 +232,7 @@ public void test1() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -539,9 +241,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 5.41220019531250000e+03, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -549,9 +249,7 @@ public void test1() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -559,9 +257,7 @@ public void test1() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 24422 + "'", - value.equals(BigInteger.valueOf(24422L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 24422 + "'", value.equals(BigInteger.valueOf( 24422L ) ) ); } else { value = value.longValue(); expected = 24422L; @@ -569,9 +265,7 @@ public void test1() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 248 + "'", - value.equals(BigInteger.valueOf(248L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 248 + "'", value.equals(BigInteger.valueOf( 248L ) ) ); } else { value = value.longValue(); expected = 248L; @@ -580,9 +274,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 6.42820019531250000e+03, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -590,9 +282,7 @@ public void test1() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -600,9 +290,7 @@ public void test1() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 36211 + "'", - value.equals(BigInteger.valueOf(36211L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 36211 + "'", value.equals(BigInteger.valueOf( 36211L ) ) ); } else { value = value.longValue(); expected = 36211L; @@ -610,9 +298,7 @@ public void test1() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -621,9 +307,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 3.10419995117187500e+03, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -631,9 +315,7 @@ public void test1() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -641,9 +323,7 @@ public void test1() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 37676 + "'", - value.equals(BigInteger.valueOf(37676L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 37676 + "'", value.equals(BigInteger.valueOf( 37676L ) ) ); } else { value = value.longValue(); expected = 37676L; @@ -651,9 +331,7 @@ public void test1() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -662,9 +340,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, 3.68619995117187500e+03, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -672,9 +348,7 @@ public void test1() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -682,9 +356,7 @@ public void test1() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 64415 + "'", - value.equals(BigInteger.valueOf(64415L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 64415 + "'", value.equals(BigInteger.valueOf( 64415L ) ) ); } else { value = value.longValue(); expected = 64415L; @@ -692,9 +364,7 @@ public void test1() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 237 + "'", - value.equals(BigInteger.valueOf(237L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 237 + "'", value.equals(BigInteger.valueOf( 237L ) ) ); } else { value = value.longValue(); expected = 237L; @@ -703,9 +373,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, 5.96720019531250000e+03, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -713,9 +381,7 @@ public void test1() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -723,9 +389,7 @@ public void test1() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 22486 + "'", - value.equals(BigInteger.valueOf(22486L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 22486 + "'", value.equals(BigInteger.valueOf( 22486L ) ) ); } else { value = value.longValue(); expected = 22486L; @@ -733,9 +397,7 @@ public void test1() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -744,9 +406,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[11].cn0, 5.42320019531250000e+03, DELTA); value = msg.states[11].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].sid.code + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[11].sid.code + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -754,9 +414,7 @@ public void test1() throws Throwable { } value = msg.states[11].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].sid.reserved + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.states[11].sid.reserved + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -764,9 +422,7 @@ public void test1() throws Throwable { } value = msg.states[11].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].sid.sat + "' != '" + 28622 + "'", - value.equals(BigInteger.valueOf(28622L))); + org.junit.Assert.assertTrue("'" + msg.states[11].sid.sat + "' != '" + 28622 + "'", value.equals(BigInteger.valueOf( 28622L ) ) ); } else { value = value.longValue(); expected = 28622L; @@ -774,9 +430,7 @@ public void test1() throws Throwable { } value = msg.states[11].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].state + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[11].state + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -785,9 +439,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[12].cn0, 4.38200012207031250e+02, DELTA); value = msg.states[12].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].sid.code + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.states[12].sid.code + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -795,9 +447,7 @@ public void test1() throws Throwable { } value = msg.states[12].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].sid.reserved + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[12].sid.reserved + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -805,9 +455,7 @@ public void test1() throws Throwable { } value = msg.states[12].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].sid.sat + "' != '" + 53602 + "'", - value.equals(BigInteger.valueOf(53602L))); + org.junit.Assert.assertTrue("'" + msg.states[12].sid.sat + "' != '" + 53602 + "'", value.equals(BigInteger.valueOf( 53602L ) ) ); } else { value = value.longValue(); expected = 53602L; @@ -815,9 +463,7 @@ public void test1() throws Throwable { } value = msg.states[12].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].state + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.states[12].state + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -826,9 +472,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[13].cn0, 1.86219995117187500e+03, DELTA); value = msg.states[13].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].sid.code + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.states[13].sid.code + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -836,9 +480,7 @@ public void test1() throws Throwable { } value = msg.states[13].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].sid.reserved + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.states[13].sid.reserved + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -846,9 +488,7 @@ public void test1() throws Throwable { } value = msg.states[13].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].sid.sat + "' != '" + 25477 + "'", - value.equals(BigInteger.valueOf(25477L))); + org.junit.Assert.assertTrue("'" + msg.states[13].sid.sat + "' != '" + 25477 + "'", value.equals(BigInteger.valueOf( 25477L ) ) ); } else { value = value.longValue(); expected = 25477L; @@ -856,9 +496,7 @@ public void test1() throws Throwable { } value = msg.states[13].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].state + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.states[13].state + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -867,9 +505,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[14].cn0, 5.46220019531250000e+03, DELTA); value = msg.states[14].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].sid.code + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.states[14].sid.code + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -877,9 +513,7 @@ public void test1() throws Throwable { } value = msg.states[14].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].sid.reserved + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.states[14].sid.reserved + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -887,9 +521,7 @@ public void test1() throws Throwable { } value = msg.states[14].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].sid.sat + "' != '" + 21803 + "'", - value.equals(BigInteger.valueOf(21803L))); + org.junit.Assert.assertTrue("'" + msg.states[14].sid.sat + "' != '" + 21803 + "'", value.equals(BigInteger.valueOf( 21803L ) ) ); } else { value = value.longValue(); expected = 21803L; @@ -897,9 +529,7 @@ public void test1() throws Throwable { } value = msg.states[14].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].state + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.states[14].state + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -908,9 +538,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[15].cn0, 7.45420019531250000e+03, DELTA); value = msg.states[15].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].sid.code + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.states[15].sid.code + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -918,9 +546,7 @@ public void test1() throws Throwable { } value = msg.states[15].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].sid.reserved + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.states[15].sid.reserved + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -928,9 +554,7 @@ public void test1() throws Throwable { } value = msg.states[15].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].sid.sat + "' != '" + 21251 + "'", - value.equals(BigInteger.valueOf(21251L))); + org.junit.Assert.assertTrue("'" + msg.states[15].sid.sat + "' != '" + 21251 + "'", value.equals(BigInteger.valueOf( 21251L ) ) ); } else { value = value.longValue(); expected = 21251L; @@ -938,9 +562,7 @@ public void test1() throws Throwable { } value = msg.states[15].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].state + "' != '" + 155 + "'", - value.equals(BigInteger.valueOf(155L))); + org.junit.Assert.assertTrue("'" + msg.states[15].state + "' != '" + 155 + "'", value.equals(BigInteger.valueOf( 155L ) ) ); } else { value = value.longValue(); expected = 155L; @@ -949,9 +571,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[16].cn0, 7.13420019531250000e+03, DELTA); value = msg.states[16].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].sid.code + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.states[16].sid.code + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -959,9 +579,7 @@ public void test1() throws Throwable { } value = msg.states[16].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].sid.reserved + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.states[16].sid.reserved + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -969,9 +587,7 @@ public void test1() throws Throwable { } value = msg.states[16].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].sid.sat + "' != '" + 50475 + "'", - value.equals(BigInteger.valueOf(50475L))); + org.junit.Assert.assertTrue("'" + msg.states[16].sid.sat + "' != '" + 50475 + "'", value.equals(BigInteger.valueOf( 50475L ) ) ); } else { value = value.longValue(); expected = 50475L; @@ -979,9 +595,7 @@ public void test1() throws Throwable { } value = msg.states[16].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].state + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.states[16].state + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -990,9 +604,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[17].cn0, 3.11119995117187500e+03, DELTA); value = msg.states[17].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].sid.code + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.states[17].sid.code + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -1000,9 +612,7 @@ public void test1() throws Throwable { } value = msg.states[17].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].sid.reserved + "' != '" + 176 + "'", - value.equals(BigInteger.valueOf(176L))); + org.junit.Assert.assertTrue("'" + msg.states[17].sid.reserved + "' != '" + 176 + "'", value.equals(BigInteger.valueOf( 176L ) ) ); } else { value = value.longValue(); expected = 176L; @@ -1010,9 +620,7 @@ public void test1() throws Throwable { } value = msg.states[17].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].sid.sat + "' != '" + 13813 + "'", - value.equals(BigInteger.valueOf(13813L))); + org.junit.Assert.assertTrue("'" + msg.states[17].sid.sat + "' != '" + 13813 + "'", value.equals(BigInteger.valueOf( 13813L ) ) ); } else { value = value.longValue(); expected = 13813L; @@ -1020,9 +628,7 @@ public void test1() throws Throwable { } value = msg.states[17].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].state + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.states[17].state + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1031,9 +637,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[18].cn0, 4.29720019531250000e+03, DELTA); value = msg.states[18].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].sid.code + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.states[18].sid.code + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -1041,9 +645,7 @@ public void test1() throws Throwable { } value = msg.states[18].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].sid.reserved + "' != '" + 51 + "'", - value.equals(BigInteger.valueOf(51L))); + org.junit.Assert.assertTrue("'" + msg.states[18].sid.reserved + "' != '" + 51 + "'", value.equals(BigInteger.valueOf( 51L ) ) ); } else { value = value.longValue(); expected = 51L; @@ -1051,9 +653,7 @@ public void test1() throws Throwable { } value = msg.states[18].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].sid.sat + "' != '" + 15636 + "'", - value.equals(BigInteger.valueOf(15636L))); + org.junit.Assert.assertTrue("'" + msg.states[18].sid.sat + "' != '" + 15636 + "'", value.equals(BigInteger.valueOf( 15636L ) ) ); } else { value = value.longValue(); expected = 15636L; @@ -1061,9 +661,7 @@ public void test1() throws Throwable { } value = msg.states[18].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].state + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.states[18].state + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -1072,9 +670,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[19].cn0, 2.64919995117187500e+03, DELTA); value = msg.states[19].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].sid.code + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.states[19].sid.code + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1082,9 +678,7 @@ public void test1() throws Throwable { } value = msg.states[19].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].sid.reserved + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.states[19].sid.reserved + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1092,9 +686,7 @@ public void test1() throws Throwable { } value = msg.states[19].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].sid.sat + "' != '" + 29778 + "'", - value.equals(BigInteger.valueOf(29778L))); + org.junit.Assert.assertTrue("'" + msg.states[19].sid.sat + "' != '" + 29778 + "'", value.equals(BigInteger.valueOf( 29778L ) ) ); } else { value = value.longValue(); expected = 29778L; @@ -1102,9 +694,7 @@ public void test1() throws Throwable { } value = msg.states[19].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].state + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.states[19].state + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -1113,9 +703,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[20].cn0, 9.41200012207031250e+02, DELTA); value = msg.states[20].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].sid.code + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.states[20].sid.code + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -1123,9 +711,7 @@ public void test1() throws Throwable { } value = msg.states[20].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].sid.reserved + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.states[20].sid.reserved + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1133,9 +719,7 @@ public void test1() throws Throwable { } value = msg.states[20].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].sid.sat + "' != '" + 37443 + "'", - value.equals(BigInteger.valueOf(37443L))); + org.junit.Assert.assertTrue("'" + msg.states[20].sid.sat + "' != '" + 37443 + "'", value.equals(BigInteger.valueOf( 37443L ) ) ); } else { value = value.longValue(); expected = 37443L; @@ -1143,9 +727,7 @@ public void test1() throws Throwable { } value = msg.states[20].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].state + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.states[20].state + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1154,9 +736,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[21].cn0, 1.53919995117187500e+03, DELTA); value = msg.states[21].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].sid.code + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.states[21].sid.code + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -1164,9 +744,7 @@ public void test1() throws Throwable { } value = msg.states[21].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].sid.reserved + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.states[21].sid.reserved + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -1174,9 +752,7 @@ public void test1() throws Throwable { } value = msg.states[21].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].sid.sat + "' != '" + 41011 + "'", - value.equals(BigInteger.valueOf(41011L))); + org.junit.Assert.assertTrue("'" + msg.states[21].sid.sat + "' != '" + 41011 + "'", value.equals(BigInteger.valueOf( 41011L ) ) ); } else { value = value.longValue(); expected = 41011L; @@ -1184,9 +760,7 @@ public void test1() throws Throwable { } value = msg.states[21].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].state + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[21].state + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1195,9 +769,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[22].cn0, 1.44319995117187500e+03, DELTA); value = msg.states[22].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].sid.code + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.states[22].sid.code + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -1205,9 +777,7 @@ public void test1() throws Throwable { } value = msg.states[22].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].sid.reserved + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[22].sid.reserved + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1215,9 +785,7 @@ public void test1() throws Throwable { } value = msg.states[22].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].sid.sat + "' != '" + 706 + "'", - value.equals(BigInteger.valueOf(706L))); + org.junit.Assert.assertTrue("'" + msg.states[22].sid.sat + "' != '" + 706 + "'", value.equals(BigInteger.valueOf( 706L ) ) ); } else { value = value.longValue(); expected = 706L; @@ -1225,9 +793,7 @@ public void test1() throws Throwable { } value = msg.states[22].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].state + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.states[22].state + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -1236,9 +802,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[23].cn0, 1.07419995117187500e+03, DELTA); value = msg.states[23].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].sid.code + "' != '" + 125 + "'", - value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.states[23].sid.code + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -1246,9 +810,7 @@ public void test1() throws Throwable { } value = msg.states[23].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].sid.reserved + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.states[23].sid.reserved + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1256,9 +818,7 @@ public void test1() throws Throwable { } value = msg.states[23].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].sid.sat + "' != '" + 2312 + "'", - value.equals(BigInteger.valueOf(2312L))); + org.junit.Assert.assertTrue("'" + msg.states[23].sid.sat + "' != '" + 2312 + "'", value.equals(BigInteger.valueOf( 2312L ) ) ); } else { value = value.longValue(); expected = 2312L; @@ -1266,9 +826,7 @@ public void test1() throws Throwable { } value = msg.states[23].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].state + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.states[23].state + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1277,9 +835,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[24].cn0, 2.12219995117187500e+03, DELTA); value = msg.states[24].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].sid.code + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.states[24].sid.code + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1287,9 +843,7 @@ public void test1() throws Throwable { } value = msg.states[24].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].sid.reserved + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.states[24].sid.reserved + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1297,9 +851,7 @@ public void test1() throws Throwable { } value = msg.states[24].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].sid.sat + "' != '" + 34580 + "'", - value.equals(BigInteger.valueOf(34580L))); + org.junit.Assert.assertTrue("'" + msg.states[24].sid.sat + "' != '" + 34580 + "'", value.equals(BigInteger.valueOf( 34580L ) ) ); } else { value = value.longValue(); expected = 34580L; @@ -1307,9 +859,7 @@ public void test1() throws Throwable { } value = msg.states[24].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].state + "' != '" + 185 + "'", - value.equals(BigInteger.valueOf(185L))); + org.junit.Assert.assertTrue("'" + msg.states[24].state + "' != '" + 185 + "'", value.equals(BigInteger.valueOf( 185L ) ) ); } else { value = value.longValue(); expected = 185L; @@ -1318,9 +868,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[25].cn0, 9.07620019531250000e+03, DELTA); value = msg.states[25].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].sid.code + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.states[25].sid.code + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; @@ -1328,9 +876,7 @@ public void test1() throws Throwable { } value = msg.states[25].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].sid.reserved + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.states[25].sid.reserved + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -1338,9 +884,7 @@ public void test1() throws Throwable { } value = msg.states[25].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].sid.sat + "' != '" + 39804 + "'", - value.equals(BigInteger.valueOf(39804L))); + org.junit.Assert.assertTrue("'" + msg.states[25].sid.sat + "' != '" + 39804 + "'", value.equals(BigInteger.valueOf( 39804L ) ) ); } else { value = value.longValue(); expected = 39804L; @@ -1348,9 +892,7 @@ public void test1() throws Throwable { } value = msg.states[25].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].state + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.states[25].state + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -1359,9 +901,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[26].cn0, 4.78120019531250000e+03, DELTA); value = msg.states[26].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].sid.code + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.states[26].sid.code + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1369,9 +909,7 @@ public void test1() throws Throwable { } value = msg.states[26].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].sid.reserved + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.states[26].sid.reserved + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1379,9 +917,7 @@ public void test1() throws Throwable { } value = msg.states[26].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].sid.sat + "' != '" + 52980 + "'", - value.equals(BigInteger.valueOf(52980L))); + org.junit.Assert.assertTrue("'" + msg.states[26].sid.sat + "' != '" + 52980 + "'", value.equals(BigInteger.valueOf( 52980L ) ) ); } else { value = value.longValue(); expected = 52980L; @@ -1389,9 +925,7 @@ public void test1() throws Throwable { } value = msg.states[26].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].state + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.states[26].state + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -1400,9 +934,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[27].cn0, 3.07619995117187500e+03, DELTA); value = msg.states[27].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].sid.code + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.states[27].sid.code + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1410,9 +942,7 @@ public void test1() throws Throwable { } value = msg.states[27].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].sid.reserved + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.states[27].sid.reserved + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -1420,9 +950,7 @@ public void test1() throws Throwable { } value = msg.states[27].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].sid.sat + "' != '" + 24007 + "'", - value.equals(BigInteger.valueOf(24007L))); + org.junit.Assert.assertTrue("'" + msg.states[27].sid.sat + "' != '" + 24007 + "'", value.equals(BigInteger.valueOf( 24007L ) ) ); } else { value = value.longValue(); expected = 24007L; @@ -1430,9 +958,7 @@ public void test1() throws Throwable { } value = msg.states[27].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].state + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.states[27].state + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.java b/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.java index 123a579803..2088e073fe 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDetailedDepA.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDetailedDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest { @@ -29,77 +33,16 @@ public class auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 46, - (byte) 31, - (byte) 180, - (byte) 38, - (byte) 219, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 133, - (byte) 100, - (byte) 71, - (byte) 94, - (byte) 192, - (byte) 2, - (byte) 160, - (byte) 207, - (byte) 212, - (byte) 255, - (byte) 135, - (byte) 139, - (byte) 62, - (byte) 62, - (byte) 179, - (byte) 83, - (byte) 227, - (byte) 245, - (byte) 134, - (byte) 160, - (byte) 204, - (byte) 78, - (byte) 95, - (byte) 255, - (byte) 38, - (byte) 59, - (byte) 161, - (byte) 15, - (byte) 255, - (byte) 86, - (byte) 189, - (byte) 248, - (byte) 31, - (byte) 191, - (byte) 136, - (byte) 194, - (byte) 124, - (byte) 23, - (byte) 15, - (byte) 91, - (byte) 249, - (byte) 117, - (byte) 142, - (byte) 90, - (byte) 219, - (byte) 67, - (byte) 25, - (byte) 83, - (byte) 62, - }; - SBPMessage sbp = new SBPMessage(0x6e9b, 0x21, payload); - MsgTrackingStateDetailedDepA msg = new MsgTrackingStateDetailedDepA(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepATest.test1"); + byte[] payload = new byte[] {(byte)46,(byte)31,(byte)180,(byte)38,(byte)219,(byte)0,(byte)0,(byte)0,(byte)133,(byte)100,(byte)71,(byte)94,(byte)192,(byte)2,(byte)160,(byte)207,(byte)212,(byte)255,(byte)135,(byte)139,(byte)62,(byte)62,(byte)179,(byte)83,(byte)227,(byte)245,(byte)134,(byte)160,(byte)204,(byte)78,(byte)95,(byte)255,(byte)38,(byte)59,(byte)161,(byte)15,(byte)255,(byte)86,(byte)189,(byte)248,(byte)31,(byte)191,(byte)136,(byte)194,(byte)124,(byte)23,(byte)15,(byte)91,(byte)249,(byte)117,(byte)142,(byte)90,(byte)219,(byte)67,(byte)25,(byte)83,(byte)62, }; + SBPMessage sbp = new SBPMessage( 0x6e9b, 0x21, payload ); + MsgTrackingStateDetailedDepA msg = new MsgTrackingStateDetailedDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 204 + "'", value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -107,9 +50,7 @@ public void test1() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + -1601767965 + "'", - value.equals(BigInteger.valueOf(-1601767965L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + -1601767965 + "'", value.equals(BigInteger.valueOf( -1601767965L ) ) ); } else { value = value.longValue(); expected = -1601767965L; @@ -117,9 +58,7 @@ public void test1() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 1044286343 + "'", - value.equals(BigInteger.valueOf(1044286343L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 1044286343 + "'", value.equals(BigInteger.valueOf( 1044286343L ) ) ); } else { value = value.longValue(); expected = 1044286343L; @@ -127,9 +66,7 @@ public void test1() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 21427 + "'", - value.equals(BigInteger.valueOf(21427L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 21427 + "'", value.equals(BigInteger.valueOf( 21427L ) ) ); } else { value = value.longValue(); expected = 21427L; @@ -137,9 +74,7 @@ public void test1() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + -114 + "'", - value.equals(BigInteger.valueOf(-114L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + -114 + "'", value.equals(BigInteger.valueOf( -114L ) ) ); } else { value = value.longValue(); expected = -114L; @@ -147,9 +82,7 @@ public void test1() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 23311 + "'", - value.equals(BigInteger.valueOf(23311L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 23311 + "'", value.equals(BigInteger.valueOf( 23311L ) ) ); } else { value = value.longValue(); expected = 23311L; @@ -157,9 +90,7 @@ public void test1() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 6012 + "'", - value.equals(BigInteger.valueOf(6012L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 6012 + "'", value.equals(BigInteger.valueOf( 6012L ) ) ); } else { value = value.longValue(); expected = 6012L; @@ -167,8 +98,7 @@ public void test1() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 78 + "'", value.equals(BigInteger.valueOf(78L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 78 + "'", value.equals(BigInteger.valueOf( 78L ) ) ); } else { value = value.longValue(); expected = 78L; @@ -176,9 +106,7 @@ public void test1() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 30201 + "'", - value.equals(BigInteger.valueOf(30201L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 30201 + "'", value.equals(BigInteger.valueOf( 30201L ) ) ); } else { value = value.longValue(); expected = 30201L; @@ -186,9 +114,7 @@ public void test1() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 1459556257 + "'", - value.equals(BigInteger.valueOf(1459556257L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 1459556257 + "'", value.equals(BigInteger.valueOf( 1459556257L ) ) ); } else { value = value.longValue(); expected = 1459556257L; @@ -196,9 +122,7 @@ public void test1() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 63677 + "'", - value.equals(BigInteger.valueOf(63677L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 63677 + "'", value.equals(BigInteger.valueOf( 63677L ) ) ); } else { value = value.longValue(); expected = 63677L; @@ -206,9 +130,7 @@ public void test1() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 65375 + "'", - value.equals(BigInteger.valueOf(65375L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 65375 + "'", value.equals(BigInteger.valueOf( 65375L ) ) ); } else { value = value.longValue(); expected = 65375L; @@ -216,9 +138,7 @@ public void test1() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -226,9 +146,7 @@ public void test1() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -236,9 +154,7 @@ public void test1() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -246,9 +162,7 @@ public void test1() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 941247176494L + "'", - value.equals(new BigInteger("941247176494"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 941247176494L + "'", value.equals( new BigInteger( "941247176494" ) ) ); } else { value = value.longValue(); expected = 941247176494L; @@ -256,9 +170,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -266,8 +178,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 38 + "'", value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -275,9 +186,7 @@ public void test1() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -285,9 +194,7 @@ public void test1() throws Throwable { } value = msg.tot.ns_residual; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.ns_residual + "' != '" + -811597120 + "'", - value.equals(BigInteger.valueOf(-811597120L))); + org.junit.Assert.assertTrue("'" + msg.tot.ns_residual + "' != '" + -811597120 + "'", value.equals(BigInteger.valueOf( -811597120L ) ) ); } else { value = value.longValue(); expected = -811597120L; @@ -295,9 +202,7 @@ public void test1() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 1581737093 + "'", - value.equals(BigInteger.valueOf(1581737093L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 1581737093 + "'", value.equals(BigInteger.valueOf( 1581737093L ) ) ); } else { value = value.longValue(); expected = 1581737093L; @@ -305,9 +210,7 @@ public void test1() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 65492 + "'", - value.equals(BigInteger.valueOf(65492L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 65492 + "'", value.equals(BigInteger.valueOf( 65492L ) ) ); } else { value = value.longValue(); expected = 65492L; @@ -315,9 +218,7 @@ public void test1() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -325,9 +226,7 @@ public void test1() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -335,9 +234,7 @@ public void test1() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 3263741727L + "'", - value.equals(new BigInteger("3263741727"))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 3263741727L + "'", value.equals( new BigInteger( "3263741727" ) ) ); } else { value = value.longValue(); expected = 3263741727L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.java b/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.java index 6e8b7e9bf4..e2a1836c2b 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDetailedDep.yaml by generate.py. Do -// not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingStateDetailedDep.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingStateDetailedDep; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest { @@ -29,75 +33,16 @@ public class auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest { @Test public void test1() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test1"); - byte[] payload = - new byte[] { - (byte) 163, - (byte) 151, - (byte) 112, - (byte) 215, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 39, - (byte) 5, - (byte) 0, - (byte) 0, - (byte) 169, - (byte) 177, - (byte) 208, - (byte) 54, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 85, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 39, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 0, - (byte) 108, - (byte) 1, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 0, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x673b, 0x11, payload); - MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test1"); + byte[] payload = new byte[] {(byte)163,(byte)151,(byte)112,(byte)215,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)39,(byte)5,(byte)0,(byte)0,(byte)169,(byte)177,(byte)208,(byte)54,(byte)15,(byte)0,(byte)0,(byte)0,(byte)85,(byte)61,(byte)0,(byte)0,(byte)39,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)108,(byte)1,(byte)0,(byte)11,(byte)0,(byte)0,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x673b, 0x11, payload ); + MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 169 + "'", value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -105,8 +50,7 @@ public void test1() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + 1319 + "'", value.equals(BigInteger.valueOf(1319L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + 1319 + "'", value.equals(BigInteger.valueOf( 1319L ) ) ); } else { value = value.longValue(); expected = 1319L; @@ -114,8 +58,7 @@ public void test1() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -123,8 +66,7 @@ public void test1() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -132,9 +74,7 @@ public void test1() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -142,9 +82,7 @@ public void test1() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -152,9 +90,7 @@ public void test1() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -162,8 +98,7 @@ public void test1() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 177 + "'", value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -171,9 +106,7 @@ public void test1() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -181,9 +114,7 @@ public void test1() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 15701 + "'", - value.equals(BigInteger.valueOf(15701L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 15701 + "'", value.equals(BigInteger.valueOf( 15701L ) ) ); } else { value = value.longValue(); expected = 15701L; @@ -191,9 +122,7 @@ public void test1() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -201,9 +130,7 @@ public void test1() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 14032 + "'", - value.equals(BigInteger.valueOf(14032L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 14032 + "'", value.equals(BigInteger.valueOf( 14032L ) ) ); } else { value = value.longValue(); expected = 14032L; @@ -211,9 +138,7 @@ public void test1() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -221,8 +146,7 @@ public void test1() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -230,9 +154,7 @@ public void test1() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -240,9 +162,7 @@ public void test1() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 7909447587L + "'", - value.equals(new BigInteger("7909447587"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 7909447587L + "'", value.equals( new BigInteger( "7909447587" ) ) ); } else { value = value.longValue(); expected = 7909447587L; @@ -250,8 +170,7 @@ public void test1() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -259,9 +178,7 @@ public void test1() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -269,8 +186,7 @@ public void test1() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -278,9 +194,7 @@ public void test1() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -288,8 +202,7 @@ public void test1() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -297,8 +210,7 @@ public void test1() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -306,8 +218,7 @@ public void test1() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -315,9 +226,7 @@ public void test1() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -325,8 +234,7 @@ public void test1() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -339,75 +247,16 @@ public void test1() throws Throwable { @Test public void test2() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test2"); - byte[] payload = - new byte[] { - (byte) 97, - (byte) 251, - (byte) 61, - (byte) 245, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 18, - (byte) 7, - (byte) 0, - (byte) 0, - (byte) 14, - (byte) 175, - (byte) 208, - (byte) 54, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 51, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 30, - (byte) 0, - (byte) 1, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 0, - (byte) 224, - (byte) 1, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 0, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x673b, 0x11, payload); - MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test2"); + byte[] payload = new byte[] {(byte)97,(byte)251,(byte)61,(byte)245,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)18,(byte)7,(byte)0,(byte)0,(byte)14,(byte)175,(byte)208,(byte)54,(byte)15,(byte)0,(byte)0,(byte)0,(byte)51,(byte)61,(byte)0,(byte)0,(byte)30,(byte)0,(byte)1,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)224,(byte)1,(byte)0,(byte)11,(byte)0,(byte)0,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x673b, 0x11, payload ); + MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 14 + "'", value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -415,8 +264,7 @@ public void test2() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + 1810 + "'", value.equals(BigInteger.valueOf(1810L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + 1810 + "'", value.equals(BigInteger.valueOf( 1810L ) ) ); } else { value = value.longValue(); expected = 1810L; @@ -424,8 +272,7 @@ public void test2() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -433,8 +280,7 @@ public void test2() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -442,9 +288,7 @@ public void test2() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + -32 + "'", - value.equals(BigInteger.valueOf(-32L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + -32 + "'", value.equals(BigInteger.valueOf( -32L ) ) ); } else { value = value.longValue(); expected = -32L; @@ -452,9 +296,7 @@ public void test2() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -462,9 +304,7 @@ public void test2() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -472,8 +312,7 @@ public void test2() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 175 + "'", value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -481,9 +320,7 @@ public void test2() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -491,9 +328,7 @@ public void test2() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 15667 + "'", - value.equals(BigInteger.valueOf(15667L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 15667 + "'", value.equals(BigInteger.valueOf( 15667L ) ) ); } else { value = value.longValue(); expected = 15667L; @@ -501,9 +336,7 @@ public void test2() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -511,9 +344,7 @@ public void test2() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 14032 + "'", - value.equals(BigInteger.valueOf(14032L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 14032 + "'", value.equals(BigInteger.valueOf( 14032L ) ) ); } else { value = value.longValue(); expected = 14032L; @@ -521,9 +352,7 @@ public void test2() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -531,8 +360,7 @@ public void test2() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -540,9 +368,7 @@ public void test2() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -550,9 +376,7 @@ public void test2() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 8409447265L + "'", - value.equals(new BigInteger("8409447265"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 8409447265L + "'", value.equals( new BigInteger( "8409447265" ) ) ); } else { value = value.longValue(); expected = 8409447265L; @@ -560,8 +384,7 @@ public void test2() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -569,9 +392,7 @@ public void test2() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -579,8 +400,7 @@ public void test2() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -588,9 +408,7 @@ public void test2() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -598,8 +416,7 @@ public void test2() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -607,8 +424,7 @@ public void test2() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -616,8 +432,7 @@ public void test2() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -625,9 +440,7 @@ public void test2() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -635,8 +448,7 @@ public void test2() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -649,75 +461,16 @@ public void test2() throws Throwable { @Test public void test3() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test3"); - byte[] payload = - new byte[] { - (byte) 139, - (byte) 218, - (byte) 236, - (byte) 18, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 250, - (byte) 8, - (byte) 0, - (byte) 0, - (byte) 8, - (byte) 179, - (byte) 208, - (byte) 54, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 67, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 22, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 0, - (byte) 27, - (byte) 1, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 2, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x673b, 0x11, payload); - MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test3"); + byte[] payload = new byte[] {(byte)139,(byte)218,(byte)236,(byte)18,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)250,(byte)8,(byte)0,(byte)0,(byte)8,(byte)179,(byte)208,(byte)54,(byte)15,(byte)0,(byte)0,(byte)0,(byte)67,(byte)61,(byte)0,(byte)0,(byte)22,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)27,(byte)1,(byte)0,(byte)11,(byte)0,(byte)2,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x673b, 0x11, payload ); + MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -725,8 +478,7 @@ public void test3() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + 2298 + "'", value.equals(BigInteger.valueOf(2298L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + 2298 + "'", value.equals(BigInteger.valueOf( 2298L ) ) ); } else { value = value.longValue(); expected = 2298L; @@ -734,8 +486,7 @@ public void test3() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -743,8 +494,7 @@ public void test3() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -752,9 +502,7 @@ public void test3() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + 27 + "'", - value.equals(BigInteger.valueOf(27L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + 27 + "'", value.equals(BigInteger.valueOf( 27L ) ) ); } else { value = value.longValue(); expected = 27L; @@ -762,9 +510,7 @@ public void test3() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -772,9 +518,7 @@ public void test3() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -782,8 +526,7 @@ public void test3() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 179 + "'", value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -791,9 +534,7 @@ public void test3() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -801,9 +542,7 @@ public void test3() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 15683 + "'", - value.equals(BigInteger.valueOf(15683L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 15683 + "'", value.equals(BigInteger.valueOf( 15683L ) ) ); } else { value = value.longValue(); expected = 15683L; @@ -811,9 +550,7 @@ public void test3() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -821,9 +558,7 @@ public void test3() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 14032 + "'", - value.equals(BigInteger.valueOf(14032L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 14032 + "'", value.equals(BigInteger.valueOf( 14032L ) ) ); } else { value = value.longValue(); expected = 14032L; @@ -831,9 +566,7 @@ public void test3() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -841,8 +574,7 @@ public void test3() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -850,9 +582,7 @@ public void test3() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -860,9 +590,7 @@ public void test3() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 8907446923L + "'", - value.equals(new BigInteger("8907446923"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 8907446923L + "'", value.equals( new BigInteger( "8907446923" ) ) ); } else { value = value.longValue(); expected = 8907446923L; @@ -870,8 +598,7 @@ public void test3() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -879,9 +606,7 @@ public void test3() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -889,8 +614,7 @@ public void test3() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -898,9 +622,7 @@ public void test3() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -908,8 +630,7 @@ public void test3() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -917,8 +638,7 @@ public void test3() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -926,8 +646,7 @@ public void test3() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -935,9 +654,7 @@ public void test3() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -945,8 +662,7 @@ public void test3() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -959,75 +675,16 @@ public void test3() throws Throwable { @Test public void test4() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test4"); - byte[] payload = - new byte[] { - (byte) 255, - (byte) 251, - (byte) 170, - (byte) 48, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 226, - (byte) 10, - (byte) 0, - (byte) 0, - (byte) 125, - (byte) 181, - (byte) 208, - (byte) 54, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 29, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 10, - (byte) 0, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 0, - (byte) 220, - (byte) 1, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 3, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x673b, 0x11, payload); - MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test4"); + byte[] payload = new byte[] {(byte)255,(byte)251,(byte)170,(byte)48,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)226,(byte)10,(byte)0,(byte)0,(byte)125,(byte)181,(byte)208,(byte)54,(byte)15,(byte)0,(byte)0,(byte)0,(byte)29,(byte)61,(byte)0,(byte)0,(byte)10,(byte)0,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)220,(byte)1,(byte)0,(byte)11,(byte)0,(byte)3,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x673b, 0x11, payload ); + MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 125 + "'", value.equals(BigInteger.valueOf(125L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 125 + "'", value.equals(BigInteger.valueOf( 125L ) ) ); } else { value = value.longValue(); expected = 125L; @@ -1035,8 +692,7 @@ public void test4() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + 2786 + "'", value.equals(BigInteger.valueOf(2786L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + 2786 + "'", value.equals(BigInteger.valueOf( 2786L ) ) ); } else { value = value.longValue(); expected = 2786L; @@ -1044,8 +700,7 @@ public void test4() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1053,8 +708,7 @@ public void test4() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1062,9 +716,7 @@ public void test4() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + -36 + "'", - value.equals(BigInteger.valueOf(-36L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + -36 + "'", value.equals(BigInteger.valueOf( -36L ) ) ); } else { value = value.longValue(); expected = -36L; @@ -1072,9 +724,7 @@ public void test4() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1082,9 +732,7 @@ public void test4() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1092,8 +740,7 @@ public void test4() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 181 + "'", value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1101,9 +748,7 @@ public void test4() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1111,9 +756,7 @@ public void test4() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 15645 + "'", - value.equals(BigInteger.valueOf(15645L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 15645 + "'", value.equals(BigInteger.valueOf( 15645L ) ) ); } else { value = value.longValue(); expected = 15645L; @@ -1121,9 +764,7 @@ public void test4() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -1131,9 +772,7 @@ public void test4() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 14032 + "'", - value.equals(BigInteger.valueOf(14032L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 14032 + "'", value.equals(BigInteger.valueOf( 14032L ) ) ); } else { value = value.longValue(); expected = 14032L; @@ -1141,9 +780,7 @@ public void test4() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1151,8 +788,7 @@ public void test4() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1160,9 +796,7 @@ public void test4() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1170,9 +804,7 @@ public void test4() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 9406446591L + "'", - value.equals(new BigInteger("9406446591"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 9406446591L + "'", value.equals( new BigInteger( "9406446591" ) ) ); } else { value = value.longValue(); expected = 9406446591L; @@ -1180,8 +812,7 @@ public void test4() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1189,9 +820,7 @@ public void test4() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1199,8 +828,7 @@ public void test4() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1208,9 +836,7 @@ public void test4() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1218,8 +844,7 @@ public void test4() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1227,8 +852,7 @@ public void test4() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1236,8 +860,7 @@ public void test4() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1245,9 +868,7 @@ public void test4() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1255,8 +876,7 @@ public void test4() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 2 + "'", value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1269,75 +889,16 @@ public void test4() throws Throwable { @Test public void test5() throws Throwable { if (debug) - System.out.format( - "%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test5"); - byte[] payload = - new byte[] { - (byte) 189, - (byte) 95, - (byte) 120, - (byte) 78, - (byte) 2, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 203, - (byte) 12, - (byte) 0, - (byte) 0, - (byte) 64, - (byte) 184, - (byte) 208, - (byte) 54, - (byte) 15, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 24, - (byte) 61, - (byte) 0, - (byte) 0, - (byte) 4, - (byte) 0, - (byte) 3, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 0, - (byte) 40, - (byte) 0, - (byte) 2, - (byte) 1, - (byte) 0, - (byte) 11, - (byte) 0, - (byte) 3, - (byte) 9, - }; - SBPMessage sbp = new SBPMessage(0x673b, 0x11, payload); - MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep(sbp); + System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateDetailedDepTest.test5"); + byte[] payload = new byte[] {(byte)189,(byte)95,(byte)120,(byte)78,(byte)2,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)203,(byte)12,(byte)0,(byte)0,(byte)64,(byte)184,(byte)208,(byte)54,(byte)15,(byte)0,(byte)0,(byte)0,(byte)24,(byte)61,(byte)0,(byte)0,(byte)4,(byte)0,(byte)3,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)40,(byte)0,(byte)2,(byte)1,(byte)0,(byte)11,(byte)0,(byte)3,(byte)9, }; + SBPMessage sbp = new SBPMessage( 0x673b, 0x11, payload ); + MsgTrackingStateDetailedDep msg = new MsgTrackingStateDetailedDep( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.L.f; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.f + "' != '" + 64 + "'", value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.L.f + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1345,8 +906,7 @@ public void test5() throws Throwable { } value = msg.L.i; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.L.i + "' != '" + 3275 + "'", value.equals(BigInteger.valueOf(3275L))); + org.junit.Assert.assertTrue("'" + msg.L.i + "' != '" + 3275 + "'", value.equals(BigInteger.valueOf( 3275L ) ) ); } else { value = value.longValue(); expected = 3275L; @@ -1354,8 +914,7 @@ public void test5() throws Throwable { } value = msg.P; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1363,8 +922,7 @@ public void test5() throws Throwable { } value = msg.P_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.P_std + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1372,9 +930,7 @@ public void test5() throws Throwable { } value = msg.acceleration; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.acceleration + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.acceleration + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1382,9 +938,7 @@ public void test5() throws Throwable { } value = msg.clock_drift; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_drift + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_drift + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1392,9 +946,7 @@ public void test5() throws Throwable { } value = msg.clock_offset; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.clock_offset + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.clock_offset + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1402,8 +954,7 @@ public void test5() throws Throwable { } value = msg.cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.cn0 + "' != '" + 184 + "'", value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.cn0 + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1411,9 +962,7 @@ public void test5() throws Throwable { } value = msg.corr_spacing; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.corr_spacing + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.corr_spacing + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1421,9 +970,7 @@ public void test5() throws Throwable { } value = msg.doppler; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler + "' != '" + 15640 + "'", - value.equals(BigInteger.valueOf(15640L))); + org.junit.Assert.assertTrue("'" + msg.doppler + "' != '" + 15640 + "'", value.equals(BigInteger.valueOf( 15640L ) ) ); } else { value = value.longValue(); expected = 15640L; @@ -1431,9 +978,7 @@ public void test5() throws Throwable { } value = msg.doppler_std; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.doppler_std + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.doppler_std + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1441,9 +986,7 @@ public void test5() throws Throwable { } value = msg.lock; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.lock + "' != '" + 14032 + "'", - value.equals(BigInteger.valueOf(14032L))); + org.junit.Assert.assertTrue("'" + msg.lock + "' != '" + 14032 + "'", value.equals(BigInteger.valueOf( 14032L ) ) ); } else { value = value.longValue(); expected = 14032L; @@ -1451,9 +994,7 @@ public void test5() throws Throwable { } value = msg.misc_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.misc_flags + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.misc_flags + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1461,8 +1002,7 @@ public void test5() throws Throwable { } value = msg.nav_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.nav_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1470,9 +1010,7 @@ public void test5() throws Throwable { } value = msg.pset_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.pset_flags + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.pset_flags + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1480,9 +1018,7 @@ public void test5() throws Throwable { } value = msg.recv_time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.recv_time + "' != '" + 9906446269L + "'", - value.equals(new BigInteger("9906446269"))); + org.junit.Assert.assertTrue("'" + msg.recv_time + "' != '" + 9906446269L + "'", value.equals( new BigInteger( "9906446269" ) ) ); } else { value = value.longValue(); expected = 9906446269L; @@ -1490,8 +1026,7 @@ public void test5() throws Throwable { } value = msg.sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1499,9 +1034,7 @@ public void test5() throws Throwable { } value = msg.sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1509,8 +1042,7 @@ public void test5() throws Throwable { } value = msg.sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1518,9 +1050,7 @@ public void test5() throws Throwable { } value = msg.sync_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.sync_flags + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.sync_flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1528,8 +1058,7 @@ public void test5() throws Throwable { } value = msg.tot.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.tow + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1537,8 +1066,7 @@ public void test5() throws Throwable { } value = msg.tot.wn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tot.wn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1546,8 +1074,7 @@ public void test5() throws Throwable { } value = msg.tow_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.tow_flags + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1555,9 +1082,7 @@ public void test5() throws Throwable { } value = msg.track_flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.track_flags + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.track_flags + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -1565,8 +1090,7 @@ public void test5() throws Throwable { } value = msg.uptime; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.uptime + "' != '" + 3 + "'", value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.uptime + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; diff --git a/java/test/auto_check_sbp_tracking_MsgTrackingStateTest.java b/java/test/auto_check_sbp_tracking_MsgTrackingStateTest.java index 8ff1cb3ece..76538b46b3 100644 --- a/java/test/auto_check_sbp_tracking_MsgTrackingStateTest.java +++ b/java/test/auto_check_sbp_tracking_MsgTrackingStateTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,19 +9,23 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingState.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgTrackingState.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingState; + import com.swiftnav.sbp.tracking.MsgTrackingStateDepB; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgTrackingStateTest { @@ -31,271 +36,15 @@ public class auto_check_sbp_tracking_MsgTrackingStateTest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test1"); - byte[] payload = - new byte[] { - (byte) 117, - (byte) 184, - (byte) 3, - (byte) 102, - (byte) 38, - (byte) 106, - (byte) 140, - (byte) 141, - (byte) 25, - (byte) 4, - (byte) 90, - (byte) 195, - (byte) 246, - (byte) 108, - (byte) 75, - (byte) 82, - (byte) 137, - (byte) 127, - (byte) 45, - (byte) 163, - (byte) 32, - (byte) 46, - (byte) 187, - (byte) 93, - (byte) 153, - (byte) 60, - (byte) 201, - (byte) 147, - (byte) 23, - (byte) 29, - (byte) 5, - (byte) 208, - (byte) 181, - (byte) 30, - (byte) 219, - (byte) 69, - (byte) 254, - (byte) 136, - (byte) 3, - (byte) 121, - (byte) 33, - (byte) 98, - (byte) 144, - (byte) 215, - (byte) 133, - (byte) 182, - (byte) 14, - (byte) 56, - (byte) 169, - (byte) 77, - (byte) 218, - (byte) 62, - (byte) 242, - (byte) 84, - (byte) 171, - (byte) 249, - (byte) 152, - (byte) 137, - (byte) 131, - (byte) 130, - (byte) 193, - (byte) 21, - (byte) 42, - (byte) 68, - (byte) 253, - (byte) 227, - (byte) 216, - (byte) 227, - (byte) 24, - (byte) 26, - (byte) 210, - (byte) 179, - (byte) 19, - (byte) 15, - (byte) 227, - (byte) 255, - (byte) 122, - (byte) 75, - (byte) 187, - (byte) 200, - (byte) 217, - (byte) 48, - (byte) 218, - (byte) 122, - (byte) 187, - (byte) 238, - (byte) 142, - (byte) 149, - (byte) 238, - (byte) 55, - (byte) 251, - (byte) 212, - (byte) 128, - (byte) 160, - (byte) 194, - (byte) 104, - (byte) 113, - (byte) 255, - (byte) 141, - (byte) 62, - (byte) 43, - (byte) 69, - (byte) 245, - (byte) 39, - (byte) 100, - (byte) 230, - (byte) 108, - (byte) 56, - (byte) 247, - (byte) 68, - (byte) 149, - (byte) 143, - (byte) 137, - (byte) 101, - (byte) 233, - (byte) 70, - (byte) 49, - (byte) 165, - (byte) 38, - (byte) 110, - (byte) 218, - (byte) 230, - (byte) 80, - (byte) 213, - (byte) 196, - (byte) 179, - (byte) 139, - (byte) 128, - (byte) 15, - (byte) 178, - (byte) 196, - (byte) 171, - (byte) 8, - (byte) 212, - (byte) 97, - (byte) 194, - (byte) 83, - (byte) 233, - (byte) 79, - (byte) 99, - (byte) 55, - (byte) 90, - (byte) 31, - (byte) 180, - (byte) 5, - (byte) 25, - (byte) 105, - (byte) 186, - (byte) 22, - (byte) 224, - (byte) 80, - (byte) 111, - (byte) 8, - (byte) 48, - (byte) 106, - (byte) 166, - (byte) 4, - (byte) 48, - (byte) 156, - (byte) 49, - (byte) 86, - (byte) 19, - (byte) 142, - (byte) 146, - (byte) 91, - (byte) 124, - (byte) 115, - (byte) 64, - (byte) 28, - (byte) 230, - (byte) 115, - (byte) 178, - (byte) 190, - (byte) 131, - (byte) 16, - (byte) 242, - (byte) 105, - (byte) 59, - (byte) 182, - (byte) 113, - (byte) 192, - (byte) 180, - (byte) 48, - (byte) 179, - (byte) 166, - (byte) 31, - (byte) 172, - (byte) 211, - (byte) 77, - (byte) 228, - (byte) 140, - (byte) 49, - (byte) 128, - (byte) 77, - (byte) 240, - (byte) 194, - (byte) 134, - (byte) 194, - (byte) 41, - (byte) 58, - (byte) 18, - (byte) 53, - (byte) 129, - (byte) 55, - (byte) 91, - (byte) 72, - (byte) 134, - (byte) 92, - (byte) 33, - (byte) 224, - (byte) 157, - (byte) 56, - (byte) 186, - (byte) 54, - (byte) 224, - (byte) 174, - (byte) 82, - (byte) 84, - (byte) 148, - (byte) 190, - (byte) 236, - (byte) 54, - (byte) 62, - (byte) 67, - (byte) 52, - (byte) 215, - (byte) 57, - (byte) 254, - (byte) 16, - (byte) 133, - (byte) 36, - (byte) 174, - (byte) 219, - (byte) 172, - (byte) 145, - (byte) 17, - (byte) 192, - (byte) 179, - (byte) 111, - (byte) 97, - (byte) 207, - (byte) 56, - (byte) 208, - (byte) 134, - (byte) 180, - (byte) 17, - (byte) 43, - (byte) 226, - (byte) 255, - (byte) 182, - (byte) 140, - (byte) 113, - }; - SBPMessage sbp = new SBPMessage(0x8137, 0x41, payload); - MsgTrackingState msg = new MsgTrackingState(sbp); + byte[] payload = new byte[] {(byte)117,(byte)184,(byte)3,(byte)102,(byte)38,(byte)106,(byte)140,(byte)141,(byte)25,(byte)4,(byte)90,(byte)195,(byte)246,(byte)108,(byte)75,(byte)82,(byte)137,(byte)127,(byte)45,(byte)163,(byte)32,(byte)46,(byte)187,(byte)93,(byte)153,(byte)60,(byte)201,(byte)147,(byte)23,(byte)29,(byte)5,(byte)208,(byte)181,(byte)30,(byte)219,(byte)69,(byte)254,(byte)136,(byte)3,(byte)121,(byte)33,(byte)98,(byte)144,(byte)215,(byte)133,(byte)182,(byte)14,(byte)56,(byte)169,(byte)77,(byte)218,(byte)62,(byte)242,(byte)84,(byte)171,(byte)249,(byte)152,(byte)137,(byte)131,(byte)130,(byte)193,(byte)21,(byte)42,(byte)68,(byte)253,(byte)227,(byte)216,(byte)227,(byte)24,(byte)26,(byte)210,(byte)179,(byte)19,(byte)15,(byte)227,(byte)255,(byte)122,(byte)75,(byte)187,(byte)200,(byte)217,(byte)48,(byte)218,(byte)122,(byte)187,(byte)238,(byte)142,(byte)149,(byte)238,(byte)55,(byte)251,(byte)212,(byte)128,(byte)160,(byte)194,(byte)104,(byte)113,(byte)255,(byte)141,(byte)62,(byte)43,(byte)69,(byte)245,(byte)39,(byte)100,(byte)230,(byte)108,(byte)56,(byte)247,(byte)68,(byte)149,(byte)143,(byte)137,(byte)101,(byte)233,(byte)70,(byte)49,(byte)165,(byte)38,(byte)110,(byte)218,(byte)230,(byte)80,(byte)213,(byte)196,(byte)179,(byte)139,(byte)128,(byte)15,(byte)178,(byte)196,(byte)171,(byte)8,(byte)212,(byte)97,(byte)194,(byte)83,(byte)233,(byte)79,(byte)99,(byte)55,(byte)90,(byte)31,(byte)180,(byte)5,(byte)25,(byte)105,(byte)186,(byte)22,(byte)224,(byte)80,(byte)111,(byte)8,(byte)48,(byte)106,(byte)166,(byte)4,(byte)48,(byte)156,(byte)49,(byte)86,(byte)19,(byte)142,(byte)146,(byte)91,(byte)124,(byte)115,(byte)64,(byte)28,(byte)230,(byte)115,(byte)178,(byte)190,(byte)131,(byte)16,(byte)242,(byte)105,(byte)59,(byte)182,(byte)113,(byte)192,(byte)180,(byte)48,(byte)179,(byte)166,(byte)31,(byte)172,(byte)211,(byte)77,(byte)228,(byte)140,(byte)49,(byte)128,(byte)77,(byte)240,(byte)194,(byte)134,(byte)194,(byte)41,(byte)58,(byte)18,(byte)53,(byte)129,(byte)55,(byte)91,(byte)72,(byte)134,(byte)92,(byte)33,(byte)224,(byte)157,(byte)56,(byte)186,(byte)54,(byte)224,(byte)174,(byte)82,(byte)84,(byte)148,(byte)190,(byte)236,(byte)54,(byte)62,(byte)67,(byte)52,(byte)215,(byte)57,(byte)254,(byte)16,(byte)133,(byte)36,(byte)174,(byte)219,(byte)172,(byte)145,(byte)17,(byte)192,(byte)179,(byte)111,(byte)97,(byte)207,(byte)56,(byte)208,(byte)134,(byte)180,(byte)17,(byte)43,(byte)226,(byte)255,(byte)182,(byte)140,(byte)113, }; + SBPMessage sbp = new SBPMessage( 0x8137, 0x41, payload ); + MsgTrackingState msg = new MsgTrackingState( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.states[0].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].cn0 + "' != '" + 102 + "'", - value.equals(BigInteger.valueOf(102L))); + org.junit.Assert.assertTrue("'" + msg.states[0].cn0 + "' != '" + 102 + "'", value.equals(BigInteger.valueOf( 102L ) ) ); } else { value = value.longValue(); expected = 102L; @@ -303,9 +52,7 @@ public void test1() throws Throwable { } value = msg.states[0].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].fcn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[0].fcn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -313,9 +60,7 @@ public void test1() throws Throwable { } value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -323,9 +68,7 @@ public void test1() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 117 + "'", - value.equals(BigInteger.valueOf(117L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 117 + "'", value.equals(BigInteger.valueOf( 117L ) ) ); } else { value = value.longValue(); expected = 117L; @@ -333,9 +76,7 @@ public void test1() throws Throwable { } value = msg.states[1].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].cn0 + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.states[1].cn0 + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -343,9 +84,7 @@ public void test1() throws Throwable { } value = msg.states[1].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].fcn + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.states[1].fcn + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -353,9 +92,7 @@ public void test1() throws Throwable { } value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -363,9 +100,7 @@ public void test1() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -373,9 +108,7 @@ public void test1() throws Throwable { } value = msg.states[2].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].cn0 + "' != '" + 195 + "'", - value.equals(BigInteger.valueOf(195L))); + org.junit.Assert.assertTrue("'" + msg.states[2].cn0 + "' != '" + 195 + "'", value.equals(BigInteger.valueOf( 195L ) ) ); } else { value = value.longValue(); expected = 195L; @@ -383,9 +116,7 @@ public void test1() throws Throwable { } value = msg.states[2].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].fcn + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.states[2].fcn + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -393,9 +124,7 @@ public void test1() throws Throwable { } value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -403,9 +132,7 @@ public void test1() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -413,9 +140,7 @@ public void test1() throws Throwable { } value = msg.states[3].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].cn0 + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.states[3].cn0 + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -423,9 +148,7 @@ public void test1() throws Throwable { } value = msg.states[3].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].fcn + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.states[3].fcn + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -433,9 +156,7 @@ public void test1() throws Throwable { } value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -443,9 +164,7 @@ public void test1() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -453,9 +172,7 @@ public void test1() throws Throwable { } value = msg.states[4].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].cn0 + "' != '" + 163 + "'", - value.equals(BigInteger.valueOf(163L))); + org.junit.Assert.assertTrue("'" + msg.states[4].cn0 + "' != '" + 163 + "'", value.equals(BigInteger.valueOf( 163L ) ) ); } else { value = value.longValue(); expected = 163L; @@ -463,9 +180,7 @@ public void test1() throws Throwable { } value = msg.states[4].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].fcn + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.states[4].fcn + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -473,9 +188,7 @@ public void test1() throws Throwable { } value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -483,9 +196,7 @@ public void test1() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -493,9 +204,7 @@ public void test1() throws Throwable { } value = msg.states[5].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].cn0 + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.states[5].cn0 + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -503,9 +212,7 @@ public void test1() throws Throwable { } value = msg.states[5].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].fcn + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.states[5].fcn + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -513,9 +220,7 @@ public void test1() throws Throwable { } value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 46 + "'", - value.equals(BigInteger.valueOf(46L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 46 + "'", value.equals(BigInteger.valueOf( 46L ) ) ); } else { value = value.longValue(); expected = 46L; @@ -523,9 +228,7 @@ public void test1() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 32 + "'", - value.equals(BigInteger.valueOf(32L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 32 + "'", value.equals(BigInteger.valueOf( 32L ) ) ); } else { value = value.longValue(); expected = 32L; @@ -533,9 +236,7 @@ public void test1() throws Throwable { } value = msg.states[6].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].cn0 + "' != '" + 147 + "'", - value.equals(BigInteger.valueOf(147L))); + org.junit.Assert.assertTrue("'" + msg.states[6].cn0 + "' != '" + 147 + "'", value.equals(BigInteger.valueOf( 147L ) ) ); } else { value = value.longValue(); expected = 147L; @@ -543,9 +244,7 @@ public void test1() throws Throwable { } value = msg.states[6].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].fcn + "' != '" + 201 + "'", - value.equals(BigInteger.valueOf(201L))); + org.junit.Assert.assertTrue("'" + msg.states[6].fcn + "' != '" + 201 + "'", value.equals(BigInteger.valueOf( 201L ) ) ); } else { value = value.longValue(); expected = 201L; @@ -553,9 +252,7 @@ public void test1() throws Throwable { } value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 60 + "'", - value.equals(BigInteger.valueOf(60L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 60 + "'", value.equals(BigInteger.valueOf( 60L ) ) ); } else { value = value.longValue(); expected = 60L; @@ -563,9 +260,7 @@ public void test1() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 153 + "'", - value.equals(BigInteger.valueOf(153L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 153 + "'", value.equals(BigInteger.valueOf( 153L ) ) ); } else { value = value.longValue(); expected = 153L; @@ -573,9 +268,7 @@ public void test1() throws Throwable { } value = msg.states[7].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].cn0 + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[7].cn0 + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -583,9 +276,7 @@ public void test1() throws Throwable { } value = msg.states[7].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].fcn + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.states[7].fcn + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -593,9 +284,7 @@ public void test1() throws Throwable { } value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 29 + "'", - value.equals(BigInteger.valueOf(29L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 29 + "'", value.equals(BigInteger.valueOf( 29L ) ) ); } else { value = value.longValue(); expected = 29L; @@ -603,9 +292,7 @@ public void test1() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -613,9 +300,7 @@ public void test1() throws Throwable { } value = msg.states[8].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].cn0 + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.states[8].cn0 + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -623,9 +308,7 @@ public void test1() throws Throwable { } value = msg.states[8].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].fcn + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.states[8].fcn + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -633,9 +316,7 @@ public void test1() throws Throwable { } value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -643,9 +324,7 @@ public void test1() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -653,9 +332,7 @@ public void test1() throws Throwable { } value = msg.states[9].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].cn0 + "' != '" + 121 + "'", - value.equals(BigInteger.valueOf(121L))); + org.junit.Assert.assertTrue("'" + msg.states[9].cn0 + "' != '" + 121 + "'", value.equals(BigInteger.valueOf( 121L ) ) ); } else { value = value.longValue(); expected = 121L; @@ -663,9 +340,7 @@ public void test1() throws Throwable { } value = msg.states[9].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].fcn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[9].fcn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -673,9 +348,7 @@ public void test1() throws Throwable { } value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -683,9 +356,7 @@ public void test1() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -693,9 +364,7 @@ public void test1() throws Throwable { } value = msg.states[10].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].cn0 + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.states[10].cn0 + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -703,9 +372,7 @@ public void test1() throws Throwable { } value = msg.states[10].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].fcn + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.states[10].fcn + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -713,9 +380,7 @@ public void test1() throws Throwable { } value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -723,9 +388,7 @@ public void test1() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -733,9 +396,7 @@ public void test1() throws Throwable { } value = msg.states[11].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].cn0 + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.states[11].cn0 + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -743,9 +404,7 @@ public void test1() throws Throwable { } value = msg.states[11].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].fcn + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.states[11].fcn + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -753,9 +412,7 @@ public void test1() throws Throwable { } value = msg.states[11].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].sid.code + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.states[11].sid.code + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -763,9 +420,7 @@ public void test1() throws Throwable { } value = msg.states[11].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[11].sid.sat + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.states[11].sid.sat + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -773,9 +428,7 @@ public void test1() throws Throwable { } value = msg.states[12].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].cn0 + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.states[12].cn0 + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -783,9 +436,7 @@ public void test1() throws Throwable { } value = msg.states[12].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].fcn + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[12].fcn + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -793,9 +444,7 @@ public void test1() throws Throwable { } value = msg.states[12].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].sid.code + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.states[12].sid.code + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -803,9 +452,7 @@ public void test1() throws Throwable { } value = msg.states[12].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[12].sid.sat + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.states[12].sid.sat + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -813,9 +460,7 @@ public void test1() throws Throwable { } value = msg.states[13].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].cn0 + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.states[13].cn0 + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -823,9 +468,7 @@ public void test1() throws Throwable { } value = msg.states[13].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].fcn + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.states[13].fcn + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -833,9 +476,7 @@ public void test1() throws Throwable { } value = msg.states[13].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].sid.code + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.states[13].sid.code + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -843,9 +484,7 @@ public void test1() throws Throwable { } value = msg.states[13].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[13].sid.sat + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.states[13].sid.sat + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -853,9 +492,7 @@ public void test1() throws Throwable { } value = msg.states[14].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].cn0 + "' != '" + 130 + "'", - value.equals(BigInteger.valueOf(130L))); + org.junit.Assert.assertTrue("'" + msg.states[14].cn0 + "' != '" + 130 + "'", value.equals(BigInteger.valueOf( 130L ) ) ); } else { value = value.longValue(); expected = 130L; @@ -863,9 +500,7 @@ public void test1() throws Throwable { } value = msg.states[14].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].fcn + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.states[14].fcn + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -873,9 +508,7 @@ public void test1() throws Throwable { } value = msg.states[14].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].sid.code + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.states[14].sid.code + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -883,9 +516,7 @@ public void test1() throws Throwable { } value = msg.states[14].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[14].sid.sat + "' != '" + 152 + "'", - value.equals(BigInteger.valueOf(152L))); + org.junit.Assert.assertTrue("'" + msg.states[14].sid.sat + "' != '" + 152 + "'", value.equals(BigInteger.valueOf( 152L ) ) ); } else { value = value.longValue(); expected = 152L; @@ -893,9 +524,7 @@ public void test1() throws Throwable { } value = msg.states[15].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].cn0 + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.states[15].cn0 + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -903,9 +532,7 @@ public void test1() throws Throwable { } value = msg.states[15].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].fcn + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.states[15].fcn + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -913,9 +540,7 @@ public void test1() throws Throwable { } value = msg.states[15].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].sid.code + "' != '" + 21 + "'", - value.equals(BigInteger.valueOf(21L))); + org.junit.Assert.assertTrue("'" + msg.states[15].sid.code + "' != '" + 21 + "'", value.equals(BigInteger.valueOf( 21L ) ) ); } else { value = value.longValue(); expected = 21L; @@ -923,9 +548,7 @@ public void test1() throws Throwable { } value = msg.states[15].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[15].sid.sat + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.states[15].sid.sat + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -933,9 +556,7 @@ public void test1() throws Throwable { } value = msg.states[16].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].cn0 + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.states[16].cn0 + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -943,9 +564,7 @@ public void test1() throws Throwable { } value = msg.states[16].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].fcn + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.states[16].fcn + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -953,9 +572,7 @@ public void test1() throws Throwable { } value = msg.states[16].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].sid.code + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.states[16].sid.code + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -963,9 +580,7 @@ public void test1() throws Throwable { } value = msg.states[16].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[16].sid.sat + "' != '" + 253 + "'", - value.equals(BigInteger.valueOf(253L))); + org.junit.Assert.assertTrue("'" + msg.states[16].sid.sat + "' != '" + 253 + "'", value.equals(BigInteger.valueOf( 253L ) ) ); } else { value = value.longValue(); expected = 253L; @@ -973,9 +588,7 @@ public void test1() throws Throwable { } value = msg.states[17].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].cn0 + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.states[17].cn0 + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -983,9 +596,7 @@ public void test1() throws Throwable { } value = msg.states[17].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].fcn + "' != '" + 210 + "'", - value.equals(BigInteger.valueOf(210L))); + org.junit.Assert.assertTrue("'" + msg.states[17].fcn + "' != '" + 210 + "'", value.equals(BigInteger.valueOf( 210L ) ) ); } else { value = value.longValue(); expected = 210L; @@ -993,9 +604,7 @@ public void test1() throws Throwable { } value = msg.states[17].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].sid.code + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.states[17].sid.code + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1003,9 +612,7 @@ public void test1() throws Throwable { } value = msg.states[17].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[17].sid.sat + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.states[17].sid.sat + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -1013,9 +620,7 @@ public void test1() throws Throwable { } value = msg.states[18].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].cn0 + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.states[18].cn0 + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1023,9 +628,7 @@ public void test1() throws Throwable { } value = msg.states[18].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].fcn + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.states[18].fcn + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1033,9 +636,7 @@ public void test1() throws Throwable { } value = msg.states[18].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].sid.code + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.states[18].sid.code + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1043,9 +644,7 @@ public void test1() throws Throwable { } value = msg.states[18].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[18].sid.sat + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.states[18].sid.sat + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1053,9 +652,7 @@ public void test1() throws Throwable { } value = msg.states[19].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].cn0 + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.states[19].cn0 + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -1063,9 +660,7 @@ public void test1() throws Throwable { } value = msg.states[19].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].fcn + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.states[19].fcn + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1073,9 +668,7 @@ public void test1() throws Throwable { } value = msg.states[19].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].sid.code + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.states[19].sid.code + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -1083,9 +676,7 @@ public void test1() throws Throwable { } value = msg.states[19].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[19].sid.sat + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.states[19].sid.sat + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1093,9 +684,7 @@ public void test1() throws Throwable { } value = msg.states[20].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].cn0 + "' != '" + 122 + "'", - value.equals(BigInteger.valueOf(122L))); + org.junit.Assert.assertTrue("'" + msg.states[20].cn0 + "' != '" + 122 + "'", value.equals(BigInteger.valueOf( 122L ) ) ); } else { value = value.longValue(); expected = 122L; @@ -1103,9 +692,7 @@ public void test1() throws Throwable { } value = msg.states[20].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].fcn + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[20].fcn + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1113,9 +700,7 @@ public void test1() throws Throwable { } value = msg.states[20].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].sid.code + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.states[20].sid.code + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1123,9 +708,7 @@ public void test1() throws Throwable { } value = msg.states[20].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[20].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[20].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -1133,9 +716,7 @@ public void test1() throws Throwable { } value = msg.states[21].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].cn0 + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.states[21].cn0 + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1143,9 +724,7 @@ public void test1() throws Throwable { } value = msg.states[21].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].fcn + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.states[21].fcn + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1153,9 +732,7 @@ public void test1() throws Throwable { } value = msg.states[21].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].sid.code + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.states[21].sid.code + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1163,9 +740,7 @@ public void test1() throws Throwable { } value = msg.states[21].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[21].sid.sat + "' != '" + 187 + "'", - value.equals(BigInteger.valueOf(187L))); + org.junit.Assert.assertTrue("'" + msg.states[21].sid.sat + "' != '" + 187 + "'", value.equals(BigInteger.valueOf( 187L ) ) ); } else { value = value.longValue(); expected = 187L; @@ -1173,9 +748,7 @@ public void test1() throws Throwable { } value = msg.states[22].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].cn0 + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[22].cn0 + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1183,9 +756,7 @@ public void test1() throws Throwable { } value = msg.states[22].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].fcn + "' != '" + 251 + "'", - value.equals(BigInteger.valueOf(251L))); + org.junit.Assert.assertTrue("'" + msg.states[22].fcn + "' != '" + 251 + "'", value.equals(BigInteger.valueOf( 251L ) ) ); } else { value = value.longValue(); expected = 251L; @@ -1193,9 +764,7 @@ public void test1() throws Throwable { } value = msg.states[22].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].sid.code + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.states[22].sid.code + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1203,9 +772,7 @@ public void test1() throws Throwable { } value = msg.states[22].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[22].sid.sat + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.states[22].sid.sat + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1213,9 +780,7 @@ public void test1() throws Throwable { } value = msg.states[23].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].cn0 + "' != '" + 104 + "'", - value.equals(BigInteger.valueOf(104L))); + org.junit.Assert.assertTrue("'" + msg.states[23].cn0 + "' != '" + 104 + "'", value.equals(BigInteger.valueOf( 104L ) ) ); } else { value = value.longValue(); expected = 104L; @@ -1223,9 +788,7 @@ public void test1() throws Throwable { } value = msg.states[23].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].fcn + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.states[23].fcn + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1233,9 +796,7 @@ public void test1() throws Throwable { } value = msg.states[23].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].sid.code + "' != '" + 160 + "'", - value.equals(BigInteger.valueOf(160L))); + org.junit.Assert.assertTrue("'" + msg.states[23].sid.code + "' != '" + 160 + "'", value.equals(BigInteger.valueOf( 160L ) ) ); } else { value = value.longValue(); expected = 160L; @@ -1243,9 +804,7 @@ public void test1() throws Throwable { } value = msg.states[23].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[23].sid.sat + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.states[23].sid.sat + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1253,9 +812,7 @@ public void test1() throws Throwable { } value = msg.states[24].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].cn0 + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.states[24].cn0 + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -1263,9 +820,7 @@ public void test1() throws Throwable { } value = msg.states[24].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].fcn + "' != '" + 141 + "'", - value.equals(BigInteger.valueOf(141L))); + org.junit.Assert.assertTrue("'" + msg.states[24].fcn + "' != '" + 141 + "'", value.equals(BigInteger.valueOf( 141L ) ) ); } else { value = value.longValue(); expected = 141L; @@ -1273,9 +828,7 @@ public void test1() throws Throwable { } value = msg.states[24].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].sid.code + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.states[24].sid.code + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -1283,9 +836,7 @@ public void test1() throws Throwable { } value = msg.states[24].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[24].sid.sat + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.states[24].sid.sat + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -1293,9 +844,7 @@ public void test1() throws Throwable { } value = msg.states[25].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].cn0 + "' != '" + 39 + "'", - value.equals(BigInteger.valueOf(39L))); + org.junit.Assert.assertTrue("'" + msg.states[25].cn0 + "' != '" + 39 + "'", value.equals(BigInteger.valueOf( 39L ) ) ); } else { value = value.longValue(); expected = 39L; @@ -1303,9 +852,7 @@ public void test1() throws Throwable { } value = msg.states[25].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].fcn + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.states[25].fcn + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -1313,9 +860,7 @@ public void test1() throws Throwable { } value = msg.states[25].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].sid.code + "' != '" + 69 + "'", - value.equals(BigInteger.valueOf(69L))); + org.junit.Assert.assertTrue("'" + msg.states[25].sid.code + "' != '" + 69 + "'", value.equals(BigInteger.valueOf( 69L ) ) ); } else { value = value.longValue(); expected = 69L; @@ -1323,9 +868,7 @@ public void test1() throws Throwable { } value = msg.states[25].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[25].sid.sat + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.states[25].sid.sat + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -1333,9 +876,7 @@ public void test1() throws Throwable { } value = msg.states[26].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].cn0 + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.states[26].cn0 + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -1343,9 +884,7 @@ public void test1() throws Throwable { } value = msg.states[26].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].fcn + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.states[26].fcn + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1353,9 +892,7 @@ public void test1() throws Throwable { } value = msg.states[26].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].sid.code + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.states[26].sid.code + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1363,9 +900,7 @@ public void test1() throws Throwable { } value = msg.states[26].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[26].sid.sat + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.states[26].sid.sat + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -1373,9 +908,7 @@ public void test1() throws Throwable { } value = msg.states[27].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].cn0 + "' != '" + 143 + "'", - value.equals(BigInteger.valueOf(143L))); + org.junit.Assert.assertTrue("'" + msg.states[27].cn0 + "' != '" + 143 + "'", value.equals(BigInteger.valueOf( 143L ) ) ); } else { value = value.longValue(); expected = 143L; @@ -1383,9 +916,7 @@ public void test1() throws Throwable { } value = msg.states[27].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].fcn + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.states[27].fcn + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -1393,9 +924,7 @@ public void test1() throws Throwable { } value = msg.states[27].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].sid.code + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.states[27].sid.code + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -1403,9 +932,7 @@ public void test1() throws Throwable { } value = msg.states[27].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[27].sid.sat + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.states[27].sid.sat + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1413,9 +940,7 @@ public void test1() throws Throwable { } value = msg.states[28].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].cn0 + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.states[28].cn0 + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -1423,9 +948,7 @@ public void test1() throws Throwable { } value = msg.states[28].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].fcn + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.states[28].fcn + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1433,9 +956,7 @@ public void test1() throws Throwable { } value = msg.states[28].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].sid.code + "' != '" + 101 + "'", - value.equals(BigInteger.valueOf(101L))); + org.junit.Assert.assertTrue("'" + msg.states[28].sid.code + "' != '" + 101 + "'", value.equals(BigInteger.valueOf( 101L ) ) ); } else { value = value.longValue(); expected = 101L; @@ -1443,9 +964,7 @@ public void test1() throws Throwable { } value = msg.states[28].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[28].sid.sat + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.states[28].sid.sat + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -1453,9 +972,7 @@ public void test1() throws Throwable { } value = msg.states[29].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].cn0 + "' != '" + 110 + "'", - value.equals(BigInteger.valueOf(110L))); + org.junit.Assert.assertTrue("'" + msg.states[29].cn0 + "' != '" + 110 + "'", value.equals(BigInteger.valueOf( 110L ) ) ); } else { value = value.longValue(); expected = 110L; @@ -1463,9 +980,7 @@ public void test1() throws Throwable { } value = msg.states[29].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].fcn + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.states[29].fcn + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -1473,9 +988,7 @@ public void test1() throws Throwable { } value = msg.states[29].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].sid.code + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.states[29].sid.code + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1483,9 +996,7 @@ public void test1() throws Throwable { } value = msg.states[29].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[29].sid.sat + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.states[29].sid.sat + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1493,9 +1004,7 @@ public void test1() throws Throwable { } value = msg.states[30].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].cn0 + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.states[30].cn0 + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1503,9 +1012,7 @@ public void test1() throws Throwable { } value = msg.states[30].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].fcn + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.states[30].fcn + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -1513,9 +1020,7 @@ public void test1() throws Throwable { } value = msg.states[30].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].sid.code + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.states[30].sid.code + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -1523,9 +1028,7 @@ public void test1() throws Throwable { } value = msg.states[30].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[30].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[30].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -1533,9 +1036,7 @@ public void test1() throws Throwable { } value = msg.states[31].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].cn0 + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.states[31].cn0 + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1543,9 +1044,7 @@ public void test1() throws Throwable { } value = msg.states[31].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].fcn + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.states[31].fcn + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -1553,9 +1052,7 @@ public void test1() throws Throwable { } value = msg.states[31].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].sid.code + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.states[31].sid.code + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -1563,9 +1060,7 @@ public void test1() throws Throwable { } value = msg.states[31].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[31].sid.sat + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.states[31].sid.sat + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1573,9 +1068,7 @@ public void test1() throws Throwable { } value = msg.states[32].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].cn0 + "' != '" + 171 + "'", - value.equals(BigInteger.valueOf(171L))); + org.junit.Assert.assertTrue("'" + msg.states[32].cn0 + "' != '" + 171 + "'", value.equals(BigInteger.valueOf( 171L ) ) ); } else { value = value.longValue(); expected = 171L; @@ -1583,9 +1076,7 @@ public void test1() throws Throwable { } value = msg.states[32].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].fcn + "' != '" + 196 + "'", - value.equals(BigInteger.valueOf(196L))); + org.junit.Assert.assertTrue("'" + msg.states[32].fcn + "' != '" + 196 + "'", value.equals(BigInteger.valueOf( 196L ) ) ); } else { value = value.longValue(); expected = 196L; @@ -1593,9 +1084,7 @@ public void test1() throws Throwable { } value = msg.states[32].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].sid.code + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.states[32].sid.code + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1603,9 +1092,7 @@ public void test1() throws Throwable { } value = msg.states[32].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[32].sid.sat + "' != '" + 15 + "'", - value.equals(BigInteger.valueOf(15L))); + org.junit.Assert.assertTrue("'" + msg.states[32].sid.sat + "' != '" + 15 + "'", value.equals(BigInteger.valueOf( 15L ) ) ); } else { value = value.longValue(); expected = 15L; @@ -1613,9 +1100,7 @@ public void test1() throws Throwable { } value = msg.states[33].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].cn0 + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.states[33].cn0 + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1623,9 +1108,7 @@ public void test1() throws Throwable { } value = msg.states[33].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].fcn + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.states[33].fcn + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1633,9 +1116,7 @@ public void test1() throws Throwable { } value = msg.states[33].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].sid.code + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[33].sid.code + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1643,9 +1124,7 @@ public void test1() throws Throwable { } value = msg.states[33].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[33].sid.sat + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.states[33].sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1653,9 +1132,7 @@ public void test1() throws Throwable { } value = msg.states[34].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].cn0 + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.states[34].cn0 + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -1663,9 +1140,7 @@ public void test1() throws Throwable { } value = msg.states[34].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].fcn + "' != '" + 79 + "'", - value.equals(BigInteger.valueOf(79L))); + org.junit.Assert.assertTrue("'" + msg.states[34].fcn + "' != '" + 79 + "'", value.equals(BigInteger.valueOf( 79L ) ) ); } else { value = value.longValue(); expected = 79L; @@ -1673,9 +1148,7 @@ public void test1() throws Throwable { } value = msg.states[34].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].sid.code + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.states[34].sid.code + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1683,9 +1156,7 @@ public void test1() throws Throwable { } value = msg.states[34].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[34].sid.sat + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.states[34].sid.sat + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -1693,9 +1164,7 @@ public void test1() throws Throwable { } value = msg.states[35].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].cn0 + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.states[35].cn0 + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1703,9 +1172,7 @@ public void test1() throws Throwable { } value = msg.states[35].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].fcn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[35].fcn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -1713,9 +1180,7 @@ public void test1() throws Throwable { } value = msg.states[35].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].sid.code + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.states[35].sid.code + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -1723,9 +1188,7 @@ public void test1() throws Throwable { } value = msg.states[35].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[35].sid.sat + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.states[35].sid.sat + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1733,9 +1196,7 @@ public void test1() throws Throwable { } value = msg.states[36].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].cn0 + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.states[36].cn0 + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -1743,9 +1204,7 @@ public void test1() throws Throwable { } value = msg.states[36].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].fcn + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.states[36].fcn + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -1753,9 +1212,7 @@ public void test1() throws Throwable { } value = msg.states[36].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].sid.code + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.states[36].sid.code + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -1763,9 +1220,7 @@ public void test1() throws Throwable { } value = msg.states[36].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[36].sid.sat + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.states[36].sid.sat + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -1773,9 +1228,7 @@ public void test1() throws Throwable { } value = msg.states[37].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].cn0 + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.states[37].cn0 + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -1783,9 +1236,7 @@ public void test1() throws Throwable { } value = msg.states[37].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].fcn + "' != '" + 80 + "'", - value.equals(BigInteger.valueOf(80L))); + org.junit.Assert.assertTrue("'" + msg.states[37].fcn + "' != '" + 80 + "'", value.equals(BigInteger.valueOf( 80L ) ) ); } else { value = value.longValue(); expected = 80L; @@ -1793,9 +1244,7 @@ public void test1() throws Throwable { } value = msg.states[37].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].sid.code + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.states[37].sid.code + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -1803,9 +1252,7 @@ public void test1() throws Throwable { } value = msg.states[37].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[37].sid.sat + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.states[37].sid.sat + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -1813,9 +1260,7 @@ public void test1() throws Throwable { } value = msg.states[38].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].cn0 + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.states[38].cn0 + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -1823,9 +1268,7 @@ public void test1() throws Throwable { } value = msg.states[38].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].fcn + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.states[38].fcn + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -1833,9 +1276,7 @@ public void test1() throws Throwable { } value = msg.states[38].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].sid.code + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.states[38].sid.code + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1843,9 +1284,7 @@ public void test1() throws Throwable { } value = msg.states[38].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[38].sid.sat + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.states[38].sid.sat + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -1853,9 +1292,7 @@ public void test1() throws Throwable { } value = msg.states[39].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].cn0 + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.states[39].cn0 + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -1863,9 +1300,7 @@ public void test1() throws Throwable { } value = msg.states[39].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].fcn + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.states[39].fcn + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1873,9 +1308,7 @@ public void test1() throws Throwable { } value = msg.states[39].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].sid.code + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.states[39].sid.code + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -1883,9 +1316,7 @@ public void test1() throws Throwable { } value = msg.states[39].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[39].sid.sat + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.states[39].sid.sat + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1893,9 +1324,7 @@ public void test1() throws Throwable { } value = msg.states[40].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].cn0 + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.states[40].cn0 + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -1903,9 +1332,7 @@ public void test1() throws Throwable { } value = msg.states[40].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].fcn + "' != '" + 142 + "'", - value.equals(BigInteger.valueOf(142L))); + org.junit.Assert.assertTrue("'" + msg.states[40].fcn + "' != '" + 142 + "'", value.equals(BigInteger.valueOf( 142L ) ) ); } else { value = value.longValue(); expected = 142L; @@ -1913,9 +1340,7 @@ public void test1() throws Throwable { } value = msg.states[40].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].sid.code + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.states[40].sid.code + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -1923,9 +1348,7 @@ public void test1() throws Throwable { } value = msg.states[40].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[40].sid.sat + "' != '" + 86 + "'", - value.equals(BigInteger.valueOf(86L))); + org.junit.Assert.assertTrue("'" + msg.states[40].sid.sat + "' != '" + 86 + "'", value.equals(BigInteger.valueOf( 86L ) ) ); } else { value = value.longValue(); expected = 86L; @@ -1933,9 +1356,7 @@ public void test1() throws Throwable { } value = msg.states[41].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].cn0 + "' != '" + 64 + "'", - value.equals(BigInteger.valueOf(64L))); + org.junit.Assert.assertTrue("'" + msg.states[41].cn0 + "' != '" + 64 + "'", value.equals(BigInteger.valueOf( 64L ) ) ); } else { value = value.longValue(); expected = 64L; @@ -1943,9 +1364,7 @@ public void test1() throws Throwable { } value = msg.states[41].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].fcn + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.states[41].fcn + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1953,9 +1372,7 @@ public void test1() throws Throwable { } value = msg.states[41].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].sid.code + "' != '" + 124 + "'", - value.equals(BigInteger.valueOf(124L))); + org.junit.Assert.assertTrue("'" + msg.states[41].sid.code + "' != '" + 124 + "'", value.equals(BigInteger.valueOf( 124L ) ) ); } else { value = value.longValue(); expected = 124L; @@ -1963,9 +1380,7 @@ public void test1() throws Throwable { } value = msg.states[41].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[41].sid.sat + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.states[41].sid.sat + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -1973,9 +1388,7 @@ public void test1() throws Throwable { } value = msg.states[42].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].cn0 + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.states[42].cn0 + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -1983,9 +1396,7 @@ public void test1() throws Throwable { } value = msg.states[42].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].fcn + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.states[42].fcn + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -1993,9 +1404,7 @@ public void test1() throws Throwable { } value = msg.states[42].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].sid.code + "' != '" + 230 + "'", - value.equals(BigInteger.valueOf(230L))); + org.junit.Assert.assertTrue("'" + msg.states[42].sid.code + "' != '" + 230 + "'", value.equals(BigInteger.valueOf( 230L ) ) ); } else { value = value.longValue(); expected = 230L; @@ -2003,9 +1412,7 @@ public void test1() throws Throwable { } value = msg.states[42].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[42].sid.sat + "' != '" + 28 + "'", - value.equals(BigInteger.valueOf(28L))); + org.junit.Assert.assertTrue("'" + msg.states[42].sid.sat + "' != '" + 28 + "'", value.equals(BigInteger.valueOf( 28L ) ) ); } else { value = value.longValue(); expected = 28L; @@ -2013,9 +1420,7 @@ public void test1() throws Throwable { } value = msg.states[43].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].cn0 + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.states[43].cn0 + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -2023,9 +1428,7 @@ public void test1() throws Throwable { } value = msg.states[43].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].fcn + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.states[43].fcn + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -2033,9 +1436,7 @@ public void test1() throws Throwable { } value = msg.states[43].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].sid.code + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.states[43].sid.code + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -2043,9 +1444,7 @@ public void test1() throws Throwable { } value = msg.states[43].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[43].sid.sat + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.states[43].sid.sat + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -2053,9 +1452,7 @@ public void test1() throws Throwable { } value = msg.states[44].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].cn0 + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.states[44].cn0 + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2063,9 +1460,7 @@ public void test1() throws Throwable { } value = msg.states[44].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].fcn + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.states[44].fcn + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -2073,9 +1468,7 @@ public void test1() throws Throwable { } value = msg.states[44].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].sid.code + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.states[44].sid.code + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2083,9 +1476,7 @@ public void test1() throws Throwable { } value = msg.states[44].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[44].sid.sat + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.states[44].sid.sat + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -2093,9 +1484,7 @@ public void test1() throws Throwable { } value = msg.states[45].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].cn0 + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.states[45].cn0 + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -2103,9 +1492,7 @@ public void test1() throws Throwable { } value = msg.states[45].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].fcn + "' != '" + 48 + "'", - value.equals(BigInteger.valueOf(48L))); + org.junit.Assert.assertTrue("'" + msg.states[45].fcn + "' != '" + 48 + "'", value.equals(BigInteger.valueOf( 48L ) ) ); } else { value = value.longValue(); expected = 48L; @@ -2113,9 +1500,7 @@ public void test1() throws Throwable { } value = msg.states[45].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].sid.code + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.states[45].sid.code + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2123,9 +1508,7 @@ public void test1() throws Throwable { } value = msg.states[45].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[45].sid.sat + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.states[45].sid.sat + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -2133,9 +1516,7 @@ public void test1() throws Throwable { } value = msg.states[46].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].cn0 + "' != '" + 211 + "'", - value.equals(BigInteger.valueOf(211L))); + org.junit.Assert.assertTrue("'" + msg.states[46].cn0 + "' != '" + 211 + "'", value.equals(BigInteger.valueOf( 211L ) ) ); } else { value = value.longValue(); expected = 211L; @@ -2143,9 +1524,7 @@ public void test1() throws Throwable { } value = msg.states[46].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].fcn + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.states[46].fcn + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -2153,9 +1532,7 @@ public void test1() throws Throwable { } value = msg.states[46].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].sid.code + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[46].sid.code + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -2163,9 +1540,7 @@ public void test1() throws Throwable { } value = msg.states[46].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[46].sid.sat + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.states[46].sid.sat + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -2173,9 +1548,7 @@ public void test1() throws Throwable { } value = msg.states[47].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].cn0 + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.states[47].cn0 + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -2183,9 +1556,7 @@ public void test1() throws Throwable { } value = msg.states[47].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].fcn + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.states[47].fcn + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -2193,9 +1564,7 @@ public void test1() throws Throwable { } value = msg.states[47].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].sid.code + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.states[47].sid.code + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -2203,9 +1572,7 @@ public void test1() throws Throwable { } value = msg.states[47].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[47].sid.sat + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.states[47].sid.sat + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2213,9 +1580,7 @@ public void test1() throws Throwable { } value = msg.states[48].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].cn0 + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.states[48].cn0 + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2223,9 +1588,7 @@ public void test1() throws Throwable { } value = msg.states[48].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].fcn + "' != '" + 240 + "'", - value.equals(BigInteger.valueOf(240L))); + org.junit.Assert.assertTrue("'" + msg.states[48].fcn + "' != '" + 240 + "'", value.equals(BigInteger.valueOf( 240L ) ) ); } else { value = value.longValue(); expected = 240L; @@ -2233,9 +1596,7 @@ public void test1() throws Throwable { } value = msg.states[48].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].sid.code + "' != '" + 77 + "'", - value.equals(BigInteger.valueOf(77L))); + org.junit.Assert.assertTrue("'" + msg.states[48].sid.code + "' != '" + 77 + "'", value.equals(BigInteger.valueOf( 77L ) ) ); } else { value = value.longValue(); expected = 77L; @@ -2243,9 +1604,7 @@ public void test1() throws Throwable { } value = msg.states[48].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[48].sid.sat + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.states[48].sid.sat + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -2253,9 +1612,7 @@ public void test1() throws Throwable { } value = msg.states[49].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].cn0 + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.states[49].cn0 + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -2263,9 +1620,7 @@ public void test1() throws Throwable { } value = msg.states[49].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].fcn + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.states[49].fcn + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -2273,9 +1628,7 @@ public void test1() throws Throwable { } value = msg.states[49].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].sid.code + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.states[49].sid.code + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -2283,9 +1636,7 @@ public void test1() throws Throwable { } value = msg.states[49].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[49].sid.sat + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.states[49].sid.sat + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2293,9 +1644,7 @@ public void test1() throws Throwable { } value = msg.states[50].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].cn0 + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.states[50].cn0 + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -2303,9 +1652,7 @@ public void test1() throws Throwable { } value = msg.states[50].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].fcn + "' != '" + 129 + "'", - value.equals(BigInteger.valueOf(129L))); + org.junit.Assert.assertTrue("'" + msg.states[50].fcn + "' != '" + 129 + "'", value.equals(BigInteger.valueOf( 129L ) ) ); } else { value = value.longValue(); expected = 129L; @@ -2313,9 +1660,7 @@ public void test1() throws Throwable { } value = msg.states[50].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].sid.code + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.states[50].sid.code + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -2323,9 +1668,7 @@ public void test1() throws Throwable { } value = msg.states[50].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[50].sid.sat + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.states[50].sid.sat + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2333,9 +1676,7 @@ public void test1() throws Throwable { } value = msg.states[51].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].cn0 + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.states[51].cn0 + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2343,9 +1684,7 @@ public void test1() throws Throwable { } value = msg.states[51].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].fcn + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.states[51].fcn + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2353,9 +1692,7 @@ public void test1() throws Throwable { } value = msg.states[51].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].sid.code + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.states[51].sid.code + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2363,9 +1700,7 @@ public void test1() throws Throwable { } value = msg.states[51].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[51].sid.sat + "' != '" + 91 + "'", - value.equals(BigInteger.valueOf(91L))); + org.junit.Assert.assertTrue("'" + msg.states[51].sid.sat + "' != '" + 91 + "'", value.equals(BigInteger.valueOf( 91L ) ) ); } else { value = value.longValue(); expected = 91L; @@ -2373,9 +1708,7 @@ public void test1() throws Throwable { } value = msg.states[52].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].cn0 + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.states[52].cn0 + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2383,9 +1716,7 @@ public void test1() throws Throwable { } value = msg.states[52].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].fcn + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.states[52].fcn + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -2393,9 +1724,7 @@ public void test1() throws Throwable { } value = msg.states[52].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].sid.code + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.states[52].sid.code + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -2403,9 +1732,7 @@ public void test1() throws Throwable { } value = msg.states[52].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[52].sid.sat + "' != '" + 33 + "'", - value.equals(BigInteger.valueOf(33L))); + org.junit.Assert.assertTrue("'" + msg.states[52].sid.sat + "' != '" + 33 + "'", value.equals(BigInteger.valueOf( 33L ) ) ); } else { value = value.longValue(); expected = 33L; @@ -2413,9 +1740,7 @@ public void test1() throws Throwable { } value = msg.states[53].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].cn0 + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.states[53].cn0 + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2423,9 +1748,7 @@ public void test1() throws Throwable { } value = msg.states[53].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].fcn + "' != '" + 224 + "'", - value.equals(BigInteger.valueOf(224L))); + org.junit.Assert.assertTrue("'" + msg.states[53].fcn + "' != '" + 224 + "'", value.equals(BigInteger.valueOf( 224L ) ) ); } else { value = value.longValue(); expected = 224L; @@ -2433,9 +1756,7 @@ public void test1() throws Throwable { } value = msg.states[53].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].sid.code + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.states[53].sid.code + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -2443,9 +1764,7 @@ public void test1() throws Throwable { } value = msg.states[53].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[53].sid.sat + "' != '" + 186 + "'", - value.equals(BigInteger.valueOf(186L))); + org.junit.Assert.assertTrue("'" + msg.states[53].sid.sat + "' != '" + 186 + "'", value.equals(BigInteger.valueOf( 186L ) ) ); } else { value = value.longValue(); expected = 186L; @@ -2453,9 +1772,7 @@ public void test1() throws Throwable { } value = msg.states[54].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].cn0 + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.states[54].cn0 + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -2463,9 +1780,7 @@ public void test1() throws Throwable { } value = msg.states[54].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].fcn + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.states[54].fcn + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2473,9 +1788,7 @@ public void test1() throws Throwable { } value = msg.states[54].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].sid.code + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.states[54].sid.code + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -2483,9 +1796,7 @@ public void test1() throws Throwable { } value = msg.states[54].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[54].sid.sat + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.states[54].sid.sat + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -2493,9 +1804,7 @@ public void test1() throws Throwable { } value = msg.states[55].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].cn0 + "' != '" + 67 + "'", - value.equals(BigInteger.valueOf(67L))); + org.junit.Assert.assertTrue("'" + msg.states[55].cn0 + "' != '" + 67 + "'", value.equals(BigInteger.valueOf( 67L ) ) ); } else { value = value.longValue(); expected = 67L; @@ -2503,9 +1812,7 @@ public void test1() throws Throwable { } value = msg.states[55].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].fcn + "' != '" + 62 + "'", - value.equals(BigInteger.valueOf(62L))); + org.junit.Assert.assertTrue("'" + msg.states[55].fcn + "' != '" + 62 + "'", value.equals(BigInteger.valueOf( 62L ) ) ); } else { value = value.longValue(); expected = 62L; @@ -2513,9 +1820,7 @@ public void test1() throws Throwable { } value = msg.states[55].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].sid.code + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.states[55].sid.code + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -2523,9 +1828,7 @@ public void test1() throws Throwable { } value = msg.states[55].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[55].sid.sat + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.states[55].sid.sat + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -2533,9 +1836,7 @@ public void test1() throws Throwable { } value = msg.states[56].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].cn0 + "' != '" + 254 + "'", - value.equals(BigInteger.valueOf(254L))); + org.junit.Assert.assertTrue("'" + msg.states[56].cn0 + "' != '" + 254 + "'", value.equals(BigInteger.valueOf( 254L ) ) ); } else { value = value.longValue(); expected = 254L; @@ -2543,9 +1844,7 @@ public void test1() throws Throwable { } value = msg.states[56].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].fcn + "' != '" + 57 + "'", - value.equals(BigInteger.valueOf(57L))); + org.junit.Assert.assertTrue("'" + msg.states[56].fcn + "' != '" + 57 + "'", value.equals(BigInteger.valueOf( 57L ) ) ); } else { value = value.longValue(); expected = 57L; @@ -2553,9 +1852,7 @@ public void test1() throws Throwable { } value = msg.states[56].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].sid.code + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.states[56].sid.code + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2563,9 +1860,7 @@ public void test1() throws Throwable { } value = msg.states[56].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[56].sid.sat + "' != '" + 52 + "'", - value.equals(BigInteger.valueOf(52L))); + org.junit.Assert.assertTrue("'" + msg.states[56].sid.sat + "' != '" + 52 + "'", value.equals(BigInteger.valueOf( 52L ) ) ); } else { value = value.longValue(); expected = 52L; @@ -2573,9 +1868,7 @@ public void test1() throws Throwable { } value = msg.states[57].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].cn0 + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.states[57].cn0 + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2583,9 +1876,7 @@ public void test1() throws Throwable { } value = msg.states[57].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].fcn + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.states[57].fcn + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -2593,9 +1884,7 @@ public void test1() throws Throwable { } value = msg.states[57].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].sid.code + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.states[57].sid.code + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -2603,9 +1892,7 @@ public void test1() throws Throwable { } value = msg.states[57].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[57].sid.sat + "' != '" + 16 + "'", - value.equals(BigInteger.valueOf(16L))); + org.junit.Assert.assertTrue("'" + msg.states[57].sid.sat + "' != '" + 16 + "'", value.equals(BigInteger.valueOf( 16L ) ) ); } else { value = value.longValue(); expected = 16L; @@ -2613,9 +1900,7 @@ public void test1() throws Throwable { } value = msg.states[58].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].cn0 + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.states[58].cn0 + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2623,9 +1908,7 @@ public void test1() throws Throwable { } value = msg.states[58].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].fcn + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.states[58].fcn + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2633,9 +1916,7 @@ public void test1() throws Throwable { } value = msg.states[58].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].sid.code + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.states[58].sid.code + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -2643,9 +1924,7 @@ public void test1() throws Throwable { } value = msg.states[58].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[58].sid.sat + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.states[58].sid.sat + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -2653,9 +1932,7 @@ public void test1() throws Throwable { } value = msg.states[59].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].cn0 + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.states[59].cn0 + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -2663,9 +1940,7 @@ public void test1() throws Throwable { } value = msg.states[59].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].fcn + "' != '" + 111 + "'", - value.equals(BigInteger.valueOf(111L))); + org.junit.Assert.assertTrue("'" + msg.states[59].fcn + "' != '" + 111 + "'", value.equals(BigInteger.valueOf( 111L ) ) ); } else { value = value.longValue(); expected = 111L; @@ -2673,9 +1948,7 @@ public void test1() throws Throwable { } value = msg.states[59].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].sid.code + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.states[59].sid.code + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -2683,9 +1956,7 @@ public void test1() throws Throwable { } value = msg.states[59].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[59].sid.sat + "' != '" + 192 + "'", - value.equals(BigInteger.valueOf(192L))); + org.junit.Assert.assertTrue("'" + msg.states[59].sid.sat + "' != '" + 192 + "'", value.equals(BigInteger.valueOf( 192L ) ) ); } else { value = value.longValue(); expected = 192L; @@ -2693,9 +1964,7 @@ public void test1() throws Throwable { } value = msg.states[60].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].cn0 + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.states[60].cn0 + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2703,9 +1972,7 @@ public void test1() throws Throwable { } value = msg.states[60].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].fcn + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[60].fcn + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -2713,9 +1980,7 @@ public void test1() throws Throwable { } value = msg.states[60].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].sid.code + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.states[60].sid.code + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2723,9 +1988,7 @@ public void test1() throws Throwable { } value = msg.states[60].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[60].sid.sat + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.states[60].sid.sat + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -2733,9 +1996,7 @@ public void test1() throws Throwable { } value = msg.states[61].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].cn0 + "' != '" + 226 + "'", - value.equals(BigInteger.valueOf(226L))); + org.junit.Assert.assertTrue("'" + msg.states[61].cn0 + "' != '" + 226 + "'", value.equals(BigInteger.valueOf( 226L ) ) ); } else { value = value.longValue(); expected = 226L; @@ -2743,9 +2004,7 @@ public void test1() throws Throwable { } value = msg.states[61].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].fcn + "' != '" + 43 + "'", - value.equals(BigInteger.valueOf(43L))); + org.junit.Assert.assertTrue("'" + msg.states[61].fcn + "' != '" + 43 + "'", value.equals(BigInteger.valueOf( 43L ) ) ); } else { value = value.longValue(); expected = 43L; @@ -2753,9 +2012,7 @@ public void test1() throws Throwable { } value = msg.states[61].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].sid.code + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.states[61].sid.code + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2763,9 +2020,7 @@ public void test1() throws Throwable { } value = msg.states[61].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[61].sid.sat + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.states[61].sid.sat + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -2773,9 +2028,7 @@ public void test1() throws Throwable { } value = msg.states[62].cn0; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].cn0 + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.states[62].cn0 + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -2783,9 +2036,7 @@ public void test1() throws Throwable { } value = msg.states[62].fcn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].fcn + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.states[62].fcn + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -2793,9 +2044,7 @@ public void test1() throws Throwable { } value = msg.states[62].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].sid.code + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.states[62].sid.code + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -2803,9 +2052,7 @@ public void test1() throws Throwable { } value = msg.states[62].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[62].sid.sat + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.states[62].sid.sat + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -2819,35 +2066,16 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test2"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 202, (byte) 0, (byte) 0, (byte) 0, (byte) 197, (byte) 253, - (byte) 28, (byte) 66, (byte) 1, (byte) 203, (byte) 0, (byte) 0, (byte) 0, - (byte) 231, (byte) 99, (byte) 16, (byte) 66, (byte) 1, (byte) 208, (byte) 0, - (byte) 0, (byte) 0, (byte) 212, (byte) 129, (byte) 22, (byte) 66, (byte) 1, - (byte) 212, (byte) 0, (byte) 0, (byte) 0, (byte) 58, (byte) 21, (byte) 28, - (byte) 66, (byte) 1, (byte) 217, (byte) 0, (byte) 0, (byte) 0, (byte) 178, - (byte) 33, (byte) 40, (byte) 66, (byte) 1, (byte) 218, (byte) 0, (byte) 0, - (byte) 0, (byte) 235, (byte) 189, (byte) 21, (byte) 66, (byte) 1, (byte) 220, - (byte) 0, (byte) 0, (byte) 0, (byte) 29, (byte) 177, (byte) 25, (byte) 66, - (byte) 1, (byte) 222, (byte) 0, (byte) 0, (byte) 0, (byte) 43, (byte) 169, - (byte) 27, (byte) 66, (byte) 1, (byte) 225, (byte) 0, (byte) 0, (byte) 0, - (byte) 137, (byte) 125, (byte) 42, (byte) 66, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)202,(byte)0,(byte)0,(byte)0,(byte)197,(byte)253,(byte)28,(byte)66,(byte)1,(byte)203,(byte)0,(byte)0,(byte)0,(byte)231,(byte)99,(byte)16,(byte)66,(byte)1,(byte)208,(byte)0,(byte)0,(byte)0,(byte)212,(byte)129,(byte)22,(byte)66,(byte)1,(byte)212,(byte)0,(byte)0,(byte)0,(byte)58,(byte)21,(byte)28,(byte)66,(byte)1,(byte)217,(byte)0,(byte)0,(byte)0,(byte)178,(byte)33,(byte)40,(byte)66,(byte)1,(byte)218,(byte)0,(byte)0,(byte)0,(byte)235,(byte)189,(byte)21,(byte)66,(byte)1,(byte)220,(byte)0,(byte)0,(byte)0,(byte)29,(byte)177,(byte)25,(byte)66,(byte)1,(byte)222,(byte)0,(byte)0,(byte)0,(byte)43,(byte)169,(byte)27,(byte)66,(byte)1,(byte)225,(byte)0,(byte)0,(byte)0,(byte)137,(byte)125,(byte)42,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.92478218078613281e+01, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2855,9 +2083,7 @@ public void test2() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2865,9 +2091,7 @@ public void test2() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -2875,9 +2099,7 @@ public void test2() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2886,9 +2108,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 3.60975608825683594e+01, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2896,9 +2116,7 @@ public void test2() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2906,9 +2124,7 @@ public void test2() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -2916,9 +2132,7 @@ public void test2() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2927,9 +2141,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 3.76267852783203125e+01, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2937,9 +2149,7 @@ public void test2() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2947,9 +2157,7 @@ public void test2() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -2957,9 +2165,7 @@ public void test2() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -2968,9 +2174,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.90207290649414062e+01, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2978,9 +2182,7 @@ public void test2() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2988,9 +2190,7 @@ public void test2() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2998,9 +2198,7 @@ public void test2() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3009,9 +2207,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 4.20329055786132812e+01, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3019,9 +2215,7 @@ public void test2() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3029,9 +2223,7 @@ public void test2() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -3039,9 +2231,7 @@ public void test2() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3050,9 +2240,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 3.74354667663574219e+01, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3060,9 +2248,7 @@ public void test2() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3070,9 +2256,7 @@ public void test2() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -3080,9 +2264,7 @@ public void test2() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3091,9 +2273,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 3.84229621887207031e+01, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3101,9 +2281,7 @@ public void test2() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3111,9 +2289,7 @@ public void test2() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -3121,9 +2297,7 @@ public void test2() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3132,9 +2306,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 3.89152030944824219e+01, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3142,9 +2314,7 @@ public void test2() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3152,9 +2322,7 @@ public void test2() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -3162,9 +2330,7 @@ public void test2() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3173,9 +2339,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 4.26225929260253906e+01, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3183,9 +2347,7 @@ public void test2() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3193,9 +2355,7 @@ public void test2() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -3203,9 +2363,7 @@ public void test2() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3214,9 +2372,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3224,9 +2380,7 @@ public void test2() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3234,9 +2388,7 @@ public void test2() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3244,9 +2396,7 @@ public void test2() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3255,9 +2405,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3265,9 +2413,7 @@ public void test2() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3275,9 +2421,7 @@ public void test2() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3285,9 +2429,7 @@ public void test2() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3301,35 +2443,16 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test3"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 202, (byte) 0, (byte) 0, (byte) 0, (byte) 250, (byte) 249, - (byte) 27, (byte) 66, (byte) 1, (byte) 203, (byte) 0, (byte) 0, (byte) 0, - (byte) 40, (byte) 143, (byte) 11, (byte) 66, (byte) 1, (byte) 208, (byte) 0, - (byte) 0, (byte) 0, (byte) 190, (byte) 200, (byte) 21, (byte) 66, (byte) 1, - (byte) 212, (byte) 0, (byte) 0, (byte) 0, (byte) 251, (byte) 233, (byte) 26, - (byte) 66, (byte) 1, (byte) 217, (byte) 0, (byte) 0, (byte) 0, (byte) 209, - (byte) 238, (byte) 39, (byte) 66, (byte) 1, (byte) 218, (byte) 0, (byte) 0, - (byte) 0, (byte) 162, (byte) 219, (byte) 21, (byte) 66, (byte) 1, (byte) 220, - (byte) 0, (byte) 0, (byte) 0, (byte) 162, (byte) 197, (byte) 25, (byte) 66, - (byte) 1, (byte) 222, (byte) 0, (byte) 0, (byte) 0, (byte) 14, (byte) 35, - (byte) 28, (byte) 66, (byte) 1, (byte) 225, (byte) 0, (byte) 0, (byte) 0, - (byte) 9, (byte) 153, (byte) 43, (byte) 66, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)202,(byte)0,(byte)0,(byte)0,(byte)250,(byte)249,(byte)27,(byte)66,(byte)1,(byte)203,(byte)0,(byte)0,(byte)0,(byte)40,(byte)143,(byte)11,(byte)66,(byte)1,(byte)208,(byte)0,(byte)0,(byte)0,(byte)190,(byte)200,(byte)21,(byte)66,(byte)1,(byte)212,(byte)0,(byte)0,(byte)0,(byte)251,(byte)233,(byte)26,(byte)66,(byte)1,(byte)217,(byte)0,(byte)0,(byte)0,(byte)209,(byte)238,(byte)39,(byte)66,(byte)1,(byte)218,(byte)0,(byte)0,(byte)0,(byte)162,(byte)219,(byte)21,(byte)66,(byte)1,(byte)220,(byte)0,(byte)0,(byte)0,(byte)162,(byte)197,(byte)25,(byte)66,(byte)1,(byte)222,(byte)0,(byte)0,(byte)0,(byte)14,(byte)35,(byte)28,(byte)66,(byte)1,(byte)225,(byte)0,(byte)0,(byte)0,(byte)9,(byte)153,(byte)43,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.89941177368164062e+01, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3337,9 +2460,7 @@ public void test3() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3347,9 +2468,7 @@ public void test3() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -3357,9 +2476,7 @@ public void test3() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3368,9 +2485,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 3.48898010253906250e+01, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3378,9 +2493,7 @@ public void test3() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3388,9 +2501,7 @@ public void test3() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -3398,9 +2509,7 @@ public void test3() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3409,9 +2518,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 3.74460372924804688e+01, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3419,9 +2526,7 @@ public void test3() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3429,9 +2534,7 @@ public void test3() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -3439,9 +2542,7 @@ public void test3() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3450,9 +2551,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.87284965515136719e+01, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3460,9 +2559,7 @@ public void test3() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3470,9 +2567,7 @@ public void test3() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -3480,9 +2575,7 @@ public void test3() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3491,9 +2584,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 4.19832191467285156e+01, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3501,9 +2592,7 @@ public void test3() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3511,9 +2600,7 @@ public void test3() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -3521,9 +2608,7 @@ public void test3() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3532,9 +2617,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 3.74644851684570312e+01, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3542,9 +2625,7 @@ public void test3() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3552,9 +2633,7 @@ public void test3() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -3562,9 +2641,7 @@ public void test3() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3573,9 +2650,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 3.84430007934570312e+01, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3583,9 +2658,7 @@ public void test3() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3593,9 +2666,7 @@ public void test3() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -3603,9 +2674,7 @@ public void test3() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3614,9 +2683,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 3.90342330932617188e+01, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3624,9 +2691,7 @@ public void test3() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3634,9 +2699,7 @@ public void test3() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -3644,9 +2707,7 @@ public void test3() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3655,9 +2716,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 4.28994483947753906e+01, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3665,9 +2724,7 @@ public void test3() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3675,9 +2732,7 @@ public void test3() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -3685,9 +2740,7 @@ public void test3() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3696,9 +2749,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3706,9 +2757,7 @@ public void test3() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3716,9 +2765,7 @@ public void test3() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3726,9 +2773,7 @@ public void test3() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3737,9 +2782,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3747,9 +2790,7 @@ public void test3() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3757,9 +2798,7 @@ public void test3() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3767,9 +2806,7 @@ public void test3() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3783,35 +2820,16 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test4"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 202, (byte) 0, (byte) 0, (byte) 0, (byte) 123, (byte) 209, - (byte) 27, (byte) 66, (byte) 1, (byte) 203, (byte) 0, (byte) 0, (byte) 0, - (byte) 214, (byte) 64, (byte) 15, (byte) 66, (byte) 1, (byte) 208, (byte) 0, - (byte) 0, (byte) 0, (byte) 56, (byte) 55, (byte) 22, (byte) 66, (byte) 1, - (byte) 212, (byte) 0, (byte) 0, (byte) 0, (byte) 91, (byte) 142, (byte) 27, - (byte) 66, (byte) 1, (byte) 217, (byte) 0, (byte) 0, (byte) 0, (byte) 253, - (byte) 154, (byte) 41, (byte) 66, (byte) 1, (byte) 218, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 142, (byte) 22, (byte) 66, (byte) 1, (byte) 220, - (byte) 0, (byte) 0, (byte) 0, (byte) 17, (byte) 174, (byte) 23, (byte) 66, - (byte) 1, (byte) 222, (byte) 0, (byte) 0, (byte) 0, (byte) 155, (byte) 2, - (byte) 29, (byte) 66, (byte) 1, (byte) 225, (byte) 0, (byte) 0, (byte) 0, - (byte) 162, (byte) 100, (byte) 42, (byte) 66, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)202,(byte)0,(byte)0,(byte)0,(byte)123,(byte)209,(byte)27,(byte)66,(byte)1,(byte)203,(byte)0,(byte)0,(byte)0,(byte)214,(byte)64,(byte)15,(byte)66,(byte)1,(byte)208,(byte)0,(byte)0,(byte)0,(byte)56,(byte)55,(byte)22,(byte)66,(byte)1,(byte)212,(byte)0,(byte)0,(byte)0,(byte)91,(byte)142,(byte)27,(byte)66,(byte)1,(byte)217,(byte)0,(byte)0,(byte)0,(byte)253,(byte)154,(byte)41,(byte)66,(byte)1,(byte)218,(byte)0,(byte)0,(byte)0,(byte)128,(byte)142,(byte)22,(byte)66,(byte)1,(byte)220,(byte)0,(byte)0,(byte)0,(byte)17,(byte)174,(byte)23,(byte)66,(byte)1,(byte)222,(byte)0,(byte)0,(byte)0,(byte)155,(byte)2,(byte)29,(byte)66,(byte)1,(byte)225,(byte)0,(byte)0,(byte)0,(byte)162,(byte)100,(byte)42,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.89545707702636719e+01, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3819,9 +2837,7 @@ public void test4() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3829,9 +2845,7 @@ public void test4() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -3839,9 +2853,7 @@ public void test4() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3850,9 +2862,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 3.58133163452148438e+01, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3860,9 +2870,7 @@ public void test4() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3870,9 +2878,7 @@ public void test4() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -3880,9 +2886,7 @@ public void test4() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3891,9 +2895,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 3.75539245605468750e+01, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3901,9 +2903,7 @@ public void test4() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3911,9 +2911,7 @@ public void test4() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -3921,9 +2919,7 @@ public void test4() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3932,9 +2928,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.88890190124511719e+01, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3942,9 +2936,7 @@ public void test4() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3952,9 +2944,7 @@ public void test4() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -3962,9 +2952,7 @@ public void test4() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -3973,9 +2961,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 4.24013557434082031e+01, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3983,9 +2969,7 @@ public void test4() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -3993,9 +2977,7 @@ public void test4() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -4003,9 +2985,7 @@ public void test4() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4014,9 +2994,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 3.76391601562500000e+01, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4024,9 +3002,7 @@ public void test4() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4034,9 +3010,7 @@ public void test4() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -4044,9 +3018,7 @@ public void test4() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4055,9 +3027,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 3.79199867248535156e+01, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4065,9 +3035,7 @@ public void test4() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4075,9 +3043,7 @@ public void test4() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -4085,9 +3051,7 @@ public void test4() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4096,9 +3060,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 3.92525444030761719e+01, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4106,9 +3068,7 @@ public void test4() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4116,9 +3076,7 @@ public void test4() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -4126,9 +3084,7 @@ public void test4() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4137,9 +3093,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 4.25982742309570312e+01, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4147,9 +3101,7 @@ public void test4() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4157,9 +3109,7 @@ public void test4() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -4167,9 +3117,7 @@ public void test4() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4178,9 +3126,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4188,9 +3134,7 @@ public void test4() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4198,9 +3142,7 @@ public void test4() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4208,9 +3150,7 @@ public void test4() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4219,9 +3159,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4229,9 +3167,7 @@ public void test4() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4239,9 +3175,7 @@ public void test4() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4249,9 +3183,7 @@ public void test4() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4265,35 +3197,16 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test5"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 202, (byte) 0, (byte) 0, (byte) 0, (byte) 120, (byte) 122, - (byte) 29, (byte) 66, (byte) 1, (byte) 203, (byte) 0, (byte) 0, (byte) 0, - (byte) 66, (byte) 22, (byte) 18, (byte) 66, (byte) 1, (byte) 208, (byte) 0, - (byte) 0, (byte) 0, (byte) 153, (byte) 163, (byte) 24, (byte) 66, (byte) 1, - (byte) 212, (byte) 0, (byte) 0, (byte) 0, (byte) 178, (byte) 204, (byte) 28, - (byte) 66, (byte) 1, (byte) 217, (byte) 0, (byte) 0, (byte) 0, (byte) 220, - (byte) 59, (byte) 38, (byte) 66, (byte) 1, (byte) 218, (byte) 0, (byte) 0, - (byte) 0, (byte) 161, (byte) 27, (byte) 20, (byte) 66, (byte) 1, (byte) 220, - (byte) 0, (byte) 0, (byte) 0, (byte) 125, (byte) 107, (byte) 24, (byte) 66, - (byte) 1, (byte) 222, (byte) 0, (byte) 0, (byte) 0, (byte) 242, (byte) 46, - (byte) 28, (byte) 66, (byte) 1, (byte) 225, (byte) 0, (byte) 0, (byte) 0, - (byte) 231, (byte) 130, (byte) 41, (byte) 66, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)202,(byte)0,(byte)0,(byte)0,(byte)120,(byte)122,(byte)29,(byte)66,(byte)1,(byte)203,(byte)0,(byte)0,(byte)0,(byte)66,(byte)22,(byte)18,(byte)66,(byte)1,(byte)208,(byte)0,(byte)0,(byte)0,(byte)153,(byte)163,(byte)24,(byte)66,(byte)1,(byte)212,(byte)0,(byte)0,(byte)0,(byte)178,(byte)204,(byte)28,(byte)66,(byte)1,(byte)217,(byte)0,(byte)0,(byte)0,(byte)220,(byte)59,(byte)38,(byte)66,(byte)1,(byte)218,(byte)0,(byte)0,(byte)0,(byte)161,(byte)27,(byte)20,(byte)66,(byte)1,(byte)220,(byte)0,(byte)0,(byte)0,(byte)125,(byte)107,(byte)24,(byte)66,(byte)1,(byte)222,(byte)0,(byte)0,(byte)0,(byte)242,(byte)46,(byte)28,(byte)66,(byte)1,(byte)225,(byte)0,(byte)0,(byte)0,(byte)231,(byte)130,(byte)41,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.93695983886718750e+01, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4301,9 +3214,7 @@ public void test5() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4311,9 +3222,7 @@ public void test5() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -4321,9 +3230,7 @@ public void test5() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4332,9 +3239,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 3.65217361450195312e+01, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4342,9 +3247,7 @@ public void test5() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4352,9 +3255,7 @@ public void test5() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -4362,9 +3263,7 @@ public void test5() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4373,9 +3272,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 3.81597633361816406e+01, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4383,9 +3280,7 @@ public void test5() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4393,9 +3288,7 @@ public void test5() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -4403,9 +3296,7 @@ public void test5() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4414,9 +3305,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.91998977661132812e+01, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4424,9 +3313,7 @@ public void test5() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4434,9 +3321,7 @@ public void test5() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -4444,9 +3329,7 @@ public void test5() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4455,9 +3338,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 4.15584564208984375e+01, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4465,9 +3346,7 @@ public void test5() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4475,9 +3354,7 @@ public void test5() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -4485,9 +3362,7 @@ public void test5() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4496,9 +3371,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 3.70269813537597656e+01, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4506,9 +3379,7 @@ public void test5() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4516,9 +3387,7 @@ public void test5() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -4526,9 +3395,7 @@ public void test5() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4537,9 +3404,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 3.81049690246582031e+01, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4547,9 +3412,7 @@ public void test5() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4557,9 +3420,7 @@ public void test5() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -4567,9 +3428,7 @@ public void test5() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4578,9 +3437,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 3.90458450317382812e+01, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4588,9 +3445,7 @@ public void test5() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4598,9 +3453,7 @@ public void test5() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -4608,9 +3461,7 @@ public void test5() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4619,9 +3470,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 4.23778343200683594e+01, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4629,9 +3478,7 @@ public void test5() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4639,9 +3486,7 @@ public void test5() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -4649,9 +3494,7 @@ public void test5() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4660,9 +3503,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4670,9 +3511,7 @@ public void test5() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4680,9 +3519,7 @@ public void test5() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4690,9 +3527,7 @@ public void test5() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4701,9 +3536,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4711,9 +3544,7 @@ public void test5() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4721,9 +3552,7 @@ public void test5() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4731,9 +3560,7 @@ public void test5() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4747,35 +3574,16 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgTrackingStateTest.test6"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 202, (byte) 0, (byte) 0, (byte) 0, (byte) 103, (byte) 208, - (byte) 30, (byte) 66, (byte) 1, (byte) 203, (byte) 0, (byte) 0, (byte) 0, - (byte) 117, (byte) 24, (byte) 18, (byte) 66, (byte) 1, (byte) 208, (byte) 0, - (byte) 0, (byte) 0, (byte) 200, (byte) 173, (byte) 20, (byte) 66, (byte) 1, - (byte) 212, (byte) 0, (byte) 0, (byte) 0, (byte) 137, (byte) 68, (byte) 27, - (byte) 66, (byte) 1, (byte) 217, (byte) 0, (byte) 0, (byte) 0, (byte) 243, - (byte) 51, (byte) 40, (byte) 66, (byte) 1, (byte) 218, (byte) 0, (byte) 0, - (byte) 0, (byte) 225, (byte) 58, (byte) 23, (byte) 66, (byte) 1, (byte) 220, - (byte) 0, (byte) 0, (byte) 0, (byte) 132, (byte) 221, (byte) 22, (byte) 66, - (byte) 1, (byte) 222, (byte) 0, (byte) 0, (byte) 0, (byte) 157, (byte) 29, - (byte) 26, (byte) 66, (byte) 1, (byte) 225, (byte) 0, (byte) 0, (byte) 0, - (byte) 133, (byte) 21, (byte) 41, (byte) 66, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0xd7f6, 0x13, payload); - MsgTrackingStateDepB msg = new MsgTrackingStateDepB(sbp); + byte[] payload = new byte[] {(byte)1,(byte)202,(byte)0,(byte)0,(byte)0,(byte)103,(byte)208,(byte)30,(byte)66,(byte)1,(byte)203,(byte)0,(byte)0,(byte)0,(byte)117,(byte)24,(byte)18,(byte)66,(byte)1,(byte)208,(byte)0,(byte)0,(byte)0,(byte)200,(byte)173,(byte)20,(byte)66,(byte)1,(byte)212,(byte)0,(byte)0,(byte)0,(byte)137,(byte)68,(byte)27,(byte)66,(byte)1,(byte)217,(byte)0,(byte)0,(byte)0,(byte)243,(byte)51,(byte)40,(byte)66,(byte)1,(byte)218,(byte)0,(byte)0,(byte)0,(byte)225,(byte)58,(byte)23,(byte)66,(byte)1,(byte)220,(byte)0,(byte)0,(byte)0,(byte)132,(byte)221,(byte)22,(byte)66,(byte)1,(byte)222,(byte)0,(byte)0,(byte)0,(byte)157,(byte)29,(byte)26,(byte)66,(byte)1,(byte)225,(byte)0,(byte)0,(byte)0,(byte)133,(byte)21,(byte)41,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0xd7f6, 0x13, payload ); + MsgTrackingStateDepB msg = new MsgTrackingStateDepB( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.97035179138183594e+01, DELTA); value = msg.states[0].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4783,9 +3591,7 @@ public void test6() throws Throwable { } value = msg.states[0].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4793,9 +3599,7 @@ public void test6() throws Throwable { } value = msg.states[0].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].sid.sat + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.states[0].sid.sat + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -4803,9 +3607,7 @@ public void test6() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4814,9 +3616,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 3.65238838195800781e+01, DELTA); value = msg.states[1].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4824,9 +3624,7 @@ public void test6() throws Throwable { } value = msg.states[1].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4834,9 +3632,7 @@ public void test6() throws Throwable { } value = msg.states[1].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].sid.sat + "' != '" + 203 + "'", - value.equals(BigInteger.valueOf(203L))); + org.junit.Assert.assertTrue("'" + msg.states[1].sid.sat + "' != '" + 203 + "'", value.equals(BigInteger.valueOf( 203L ) ) ); } else { value = value.longValue(); expected = 203L; @@ -4844,9 +3640,7 @@ public void test6() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4855,9 +3649,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 3.71697082519531250e+01, DELTA); value = msg.states[2].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4865,9 +3657,7 @@ public void test6() throws Throwable { } value = msg.states[2].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4875,9 +3665,7 @@ public void test6() throws Throwable { } value = msg.states[2].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].sid.sat + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.states[2].sid.sat + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -4885,9 +3673,7 @@ public void test6() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4896,9 +3682,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 3.88169288635253906e+01, DELTA); value = msg.states[3].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4906,9 +3690,7 @@ public void test6() throws Throwable { } value = msg.states[3].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4916,9 +3698,7 @@ public void test6() throws Throwable { } value = msg.states[3].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].sid.sat + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.states[3].sid.sat + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -4926,9 +3706,7 @@ public void test6() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4937,9 +3715,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 4.20507316589355469e+01, DELTA); value = msg.states[4].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4947,9 +3723,7 @@ public void test6() throws Throwable { } value = msg.states[4].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4957,9 +3731,7 @@ public void test6() throws Throwable { } value = msg.states[4].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].sid.sat + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.states[4].sid.sat + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -4967,9 +3739,7 @@ public void test6() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -4978,9 +3748,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 3.78074989318847656e+01, DELTA); value = msg.states[5].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4988,9 +3756,7 @@ public void test6() throws Throwable { } value = msg.states[5].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -4998,9 +3764,7 @@ public void test6() throws Throwable { } value = msg.states[5].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].sid.sat + "' != '" + 218 + "'", - value.equals(BigInteger.valueOf(218L))); + org.junit.Assert.assertTrue("'" + msg.states[5].sid.sat + "' != '" + 218 + "'", value.equals(BigInteger.valueOf( 218L ) ) ); } else { value = value.longValue(); expected = 218L; @@ -5008,9 +3772,7 @@ public void test6() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -5019,9 +3781,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 3.77163238525390625e+01, DELTA); value = msg.states[6].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5029,9 +3789,7 @@ public void test6() throws Throwable { } value = msg.states[6].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5039,9 +3797,7 @@ public void test6() throws Throwable { } value = msg.states[6].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].sid.sat + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.states[6].sid.sat + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -5049,9 +3805,7 @@ public void test6() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -5060,9 +3814,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 3.85289192199707031e+01, DELTA); value = msg.states[7].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5070,9 +3822,7 @@ public void test6() throws Throwable { } value = msg.states[7].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5080,9 +3830,7 @@ public void test6() throws Throwable { } value = msg.states[7].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].sid.sat + "' != '" + 222 + "'", - value.equals(BigInteger.valueOf(222L))); + org.junit.Assert.assertTrue("'" + msg.states[7].sid.sat + "' != '" + 222 + "'", value.equals(BigInteger.valueOf( 222L ) ) ); } else { value = value.longValue(); expected = 222L; @@ -5090,9 +3838,7 @@ public void test6() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -5101,9 +3847,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 4.22710151672363281e+01, DELTA); value = msg.states[8].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5111,9 +3855,7 @@ public void test6() throws Throwable { } value = msg.states[8].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5121,9 +3863,7 @@ public void test6() throws Throwable { } value = msg.states[8].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].sid.sat + "' != '" + 225 + "'", - value.equals(BigInteger.valueOf(225L))); + org.junit.Assert.assertTrue("'" + msg.states[8].sid.sat + "' != '" + 225 + "'", value.equals(BigInteger.valueOf( 225L ) ) ); } else { value = value.longValue(); expected = 225L; @@ -5131,9 +3871,7 @@ public void test6() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -5142,9 +3880,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5152,9 +3888,7 @@ public void test6() throws Throwable { } value = msg.states[9].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5162,9 +3896,7 @@ public void test6() throws Throwable { } value = msg.states[9].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5172,9 +3904,7 @@ public void test6() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5183,9 +3913,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].sid.code; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.code + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.code + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5193,9 +3921,7 @@ public void test6() throws Throwable { } value = msg.states[10].sid.reserved; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.reserved + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5203,9 +3929,7 @@ public void test6() throws Throwable { } value = msg.states[10].sid.sat; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].sid.sat + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].sid.sat + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -5213,9 +3937,7 @@ public void test6() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_tracking_MsgtrackingStateDepATest.java b/java/test/auto_check_sbp_tracking_MsgtrackingStateDepATest.java index 70ba89487a..19fdb65564 100644 --- a/java/test/auto_check_sbp_tracking_MsgtrackingStateDepATest.java +++ b/java/test/auto_check_sbp_tracking_MsgtrackingStateDepATest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,18 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_MsgtrackingStateDepA.yaml by generate.py. Do not -// modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_MsgtrackingStateDepA.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.tracking.MsgTrackingStateDepA; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_tracking_MsgtrackingStateDepATest { @@ -30,30 +34,16 @@ public class auto_check_sbp_tracking_MsgtrackingStateDepATest { public void test1() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test1"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 204, (byte) 177, (byte) 51, (byte) 65, (byte) 1, - (byte) 2, (byte) 198, (byte) 4, (byte) 39, (byte) 65, (byte) 1, (byte) 3, - (byte) 219, (byte) 182, (byte) 27, (byte) 65, (byte) 1, (byte) 7, (byte) 132, - (byte) 120, (byte) 101, (byte) 65, (byte) 1, (byte) 10, (byte) 91, (byte) 91, - (byte) 251, (byte) 64, (byte) 1, (byte) 13, (byte) 42, (byte) 37, (byte) 163, - (byte) 64, (byte) 1, (byte) 22, (byte) 130, (byte) 184, (byte) 215, (byte) 64, - (byte) 1, (byte) 30, (byte) 115, (byte) 53, (byte) 75, (byte) 65, (byte) 1, - (byte) 31, (byte) 16, (byte) 74, (byte) 126, (byte) 65, (byte) 1, (byte) 25, - (byte) 132, (byte) 196, (byte) 135, (byte) 64, (byte) 1, (byte) 6, (byte) 100, - (byte) 59, (byte) 223, (byte) 64, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)204,(byte)177,(byte)51,(byte)65,(byte)1,(byte)2,(byte)198,(byte)4,(byte)39,(byte)65,(byte)1,(byte)3,(byte)219,(byte)182,(byte)27,(byte)65,(byte)1,(byte)7,(byte)132,(byte)120,(byte)101,(byte)65,(byte)1,(byte)10,(byte)91,(byte)91,(byte)251,(byte)64,(byte)1,(byte)13,(byte)42,(byte)37,(byte)163,(byte)64,(byte)1,(byte)22,(byte)130,(byte)184,(byte)215,(byte)64,(byte)1,(byte)30,(byte)115,(byte)53,(byte)75,(byte)65,(byte)1,(byte)31,(byte)16,(byte)74,(byte)126,(byte)65,(byte)1,(byte)25,(byte)132,(byte)196,(byte)135,(byte)64,(byte)1,(byte)6,(byte)100,(byte)59,(byte)223,(byte)64, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 1.12309074401855469e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -61,9 +51,7 @@ public void test1() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -72,9 +60,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 1.04386653900146484e+01, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -82,9 +68,7 @@ public void test1() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -93,9 +77,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 9.73214244842529297e+00, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -103,9 +85,7 @@ public void test1() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -114,9 +94,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 1.43419227600097656e+01, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -124,9 +102,7 @@ public void test1() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -135,9 +111,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 7.85490179061889648e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -145,9 +119,7 @@ public void test1() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -156,9 +128,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 5.09828662872314453e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -166,9 +136,7 @@ public void test1() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -177,9 +145,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 6.74127292633056641e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -187,9 +153,7 @@ public void test1() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -198,9 +162,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 1.27005491256713867e+01, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -208,9 +170,7 @@ public void test1() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -219,9 +179,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 1.58930816650390625e+01, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -229,9 +187,7 @@ public void test1() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -240,9 +196,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, 4.24273872375488281e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -250,9 +204,7 @@ public void test1() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -261,9 +213,7 @@ public void test1() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, 6.97599983215332031e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -271,9 +221,7 @@ public void test1() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -287,30 +235,16 @@ public void test1() throws Throwable { public void test2() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test2"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 216, (byte) 57, (byte) 48, (byte) 65, (byte) 1, - (byte) 2, (byte) 145, (byte) 41, (byte) 46, (byte) 65, (byte) 1, (byte) 3, - (byte) 4, (byte) 26, (byte) 34, (byte) 65, (byte) 1, (byte) 7, (byte) 177, - (byte) 67, (byte) 109, (byte) 65, (byte) 1, (byte) 10, (byte) 61, (byte) 80, - (byte) 249, (byte) 64, (byte) 1, (byte) 13, (byte) 250, (byte) 199, (byte) 155, - (byte) 64, (byte) 1, (byte) 22, (byte) 55, (byte) 19, (byte) 215, (byte) 64, - (byte) 1, (byte) 30, (byte) 138, (byte) 138, (byte) 79, (byte) 65, (byte) 1, - (byte) 31, (byte) 214, (byte) 179, (byte) 119, (byte) 65, (byte) 1, (byte) 25, - (byte) 53, (byte) 138, (byte) 120, (byte) 64, (byte) 1, (byte) 6, (byte) 183, - (byte) 247, (byte) 129, (byte) 64, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)216,(byte)57,(byte)48,(byte)65,(byte)1,(byte)2,(byte)145,(byte)41,(byte)46,(byte)65,(byte)1,(byte)3,(byte)4,(byte)26,(byte)34,(byte)65,(byte)1,(byte)7,(byte)177,(byte)67,(byte)109,(byte)65,(byte)1,(byte)10,(byte)61,(byte)80,(byte)249,(byte)64,(byte)1,(byte)13,(byte)250,(byte)199,(byte)155,(byte)64,(byte)1,(byte)22,(byte)55,(byte)19,(byte)215,(byte)64,(byte)1,(byte)30,(byte)138,(byte)138,(byte)79,(byte)65,(byte)1,(byte)31,(byte)214,(byte)179,(byte)119,(byte)65,(byte)1,(byte)25,(byte)53,(byte)138,(byte)120,(byte)64,(byte)1,(byte)6,(byte)183,(byte)247,(byte)129,(byte)64, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 1.10141220092773438e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -318,9 +252,7 @@ public void test2() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -329,9 +261,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 1.08851480484008789e+01, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -339,9 +269,7 @@ public void test2() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -350,9 +278,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 1.01313514709472656e+01, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -360,9 +286,7 @@ public void test2() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -371,9 +295,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 1.48290262222290039e+01, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -381,9 +303,7 @@ public void test2() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -392,9 +312,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 7.79104471206665039e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -402,9 +320,7 @@ public void test2() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -413,9 +329,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 4.86816120147705078e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -423,9 +337,7 @@ public void test2() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -434,9 +346,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 6.72109556198120117e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -444,9 +354,7 @@ public void test2() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -455,9 +363,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 1.29713230133056641e+01, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -465,9 +371,7 @@ public void test2() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -476,9 +380,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 1.54814052581787109e+01, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -486,9 +388,7 @@ public void test2() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -497,9 +397,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, 3.88343548774719238e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -507,9 +405,7 @@ public void test2() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -518,9 +414,7 @@ public void test2() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, 4.06148862838745117e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -528,9 +422,7 @@ public void test2() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -544,30 +436,16 @@ public void test2() throws Throwable { public void test3() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test3"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 141, (byte) 76, (byte) 60, (byte) 65, (byte) 1, - (byte) 2, (byte) 69, (byte) 139, (byte) 46, (byte) 65, (byte) 1, (byte) 3, - (byte) 146, (byte) 27, (byte) 30, (byte) 65, (byte) 1, (byte) 7, (byte) 235, - (byte) 56, (byte) 97, (byte) 65, (byte) 1, (byte) 10, (byte) 141, (byte) 213, - (byte) 243, (byte) 64, (byte) 1, (byte) 13, (byte) 250, (byte) 170, (byte) 166, - (byte) 64, (byte) 1, (byte) 22, (byte) 17, (byte) 101, (byte) 201, (byte) 64, - (byte) 1, (byte) 30, (byte) 172, (byte) 183, (byte) 83, (byte) 65, (byte) 1, - (byte) 31, (byte) 238, (byte) 193, (byte) 120, (byte) 65, (byte) 1, (byte) 25, - (byte) 220, (byte) 48, (byte) 132, (byte) 64, (byte) 1, (byte) 6, (byte) 49, - (byte) 214, (byte) 54, (byte) 64, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)141,(byte)76,(byte)60,(byte)65,(byte)1,(byte)2,(byte)69,(byte)139,(byte)46,(byte)65,(byte)1,(byte)3,(byte)146,(byte)27,(byte)30,(byte)65,(byte)1,(byte)7,(byte)235,(byte)56,(byte)97,(byte)65,(byte)1,(byte)10,(byte)141,(byte)213,(byte)243,(byte)64,(byte)1,(byte)13,(byte)250,(byte)170,(byte)166,(byte)64,(byte)1,(byte)22,(byte)17,(byte)101,(byte)201,(byte)64,(byte)1,(byte)30,(byte)172,(byte)183,(byte)83,(byte)65,(byte)1,(byte)31,(byte)238,(byte)193,(byte)120,(byte)65,(byte)1,(byte)25,(byte)220,(byte)48,(byte)132,(byte)64,(byte)1,(byte)6,(byte)49,(byte)214,(byte)54,(byte)64, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 1.17686891555786133e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -575,9 +453,7 @@ public void test3() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -586,9 +462,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 1.09090013504028320e+01, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -596,9 +470,7 @@ public void test3() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -607,9 +479,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 9.88173103332519531e+00, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -617,9 +487,7 @@ public void test3() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -628,9 +496,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, 1.40763959884643555e+01, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 7 + "'", - value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; @@ -638,9 +504,7 @@ public void test3() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -649,9 +513,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, 7.61981821060180664e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 10 + "'", - value.equals(BigInteger.valueOf(10L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 10 + "'", value.equals(BigInteger.valueOf( 10L ) ) ); } else { value = value.longValue(); expected = 10L; @@ -659,9 +521,7 @@ public void test3() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -670,9 +530,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, 5.20837116241455078e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 13 + "'", - value.equals(BigInteger.valueOf(13L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 13 + "'", value.equals(BigInteger.valueOf( 13L ) ) ); } else { value = value.longValue(); expected = 13L; @@ -680,9 +538,7 @@ public void test3() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -691,9 +547,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, 6.29358720779418945e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 22 + "'", - value.equals(BigInteger.valueOf(22L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 22 + "'", value.equals(BigInteger.valueOf( 22L ) ) ); } else { value = value.longValue(); expected = 22L; @@ -701,9 +555,7 @@ public void test3() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -712,9 +564,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, 1.32323417663574219e+01, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -722,9 +572,7 @@ public void test3() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -733,9 +581,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, 1.55473461151123047e+01, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -743,9 +589,7 @@ public void test3() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -754,9 +598,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, 4.13096427917480469e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -764,9 +606,7 @@ public void test3() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -775,9 +615,7 @@ public void test3() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, 2.85682320594787598e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -785,9 +623,7 @@ public void test3() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -801,30 +637,16 @@ public void test3() throws Throwable { public void test4() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test4"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 55, (byte) 143, (byte) 120, (byte) 66, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)55,(byte)143,(byte)120,(byte)66,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 6.21398582458496094e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -832,9 +654,7 @@ public void test4() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -843,9 +663,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -853,9 +671,7 @@ public void test4() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -864,9 +680,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -874,9 +688,7 @@ public void test4() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -885,9 +697,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -895,9 +705,7 @@ public void test4() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -906,9 +714,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -916,9 +722,7 @@ public void test4() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -927,9 +731,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -937,9 +739,7 @@ public void test4() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -948,9 +748,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -958,9 +756,7 @@ public void test4() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -969,9 +765,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -979,9 +773,7 @@ public void test4() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -990,9 +782,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1000,9 +790,7 @@ public void test4() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1011,9 +799,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1021,9 +807,7 @@ public void test4() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1032,9 +816,7 @@ public void test4() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1042,9 +824,7 @@ public void test4() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1058,30 +838,16 @@ public void test4() throws Throwable { public void test5() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test5"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 218, (byte) 14, (byte) 19, (byte) 66, (byte) 1, - (byte) 2, (byte) 210, (byte) 3, (byte) 21, (byte) 65, (byte) 1, (byte) 3, - (byte) 234, (byte) 214, (byte) 134, (byte) 65, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)218,(byte)14,(byte)19,(byte)66,(byte)1,(byte)2,(byte)210,(byte)3,(byte)21,(byte)65,(byte)1,(byte)3,(byte)234,(byte)214,(byte)134,(byte)65,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 3.67645034790039062e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1089,9 +855,7 @@ public void test5() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1100,9 +864,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 9.31343269348144531e+00, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1110,9 +872,7 @@ public void test5() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1121,9 +881,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 1.68549385070800781e+01, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1131,9 +889,7 @@ public void test5() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1142,9 +898,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1152,9 +906,7 @@ public void test5() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1163,9 +915,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1173,9 +923,7 @@ public void test5() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1184,9 +932,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1194,9 +940,7 @@ public void test5() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1205,9 +949,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1215,9 +957,7 @@ public void test5() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1226,9 +966,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1236,9 +974,7 @@ public void test5() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1247,9 +983,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1257,9 +991,7 @@ public void test5() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1268,9 +1000,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1278,9 +1008,7 @@ public void test5() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1289,9 +1017,7 @@ public void test5() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1299,9 +1025,7 @@ public void test5() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1315,30 +1039,16 @@ public void test5() throws Throwable { public void test6() throws Throwable { if (debug) System.out.format("%n%s%n", "auto_check_sbp_tracking_MsgtrackingStateDepATest.test6"); - byte[] payload = - new byte[] { - (byte) 1, (byte) 0, (byte) 98, (byte) 39, (byte) 219, (byte) 65, (byte) 1, - (byte) 2, (byte) 0, (byte) 0, (byte) 56, (byte) 64, (byte) 1, (byte) 3, - (byte) 121, (byte) 123, (byte) 7, (byte) 65, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, - (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, - (byte) 191, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, - (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, - (byte) 0, (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, - (byte) 0, (byte) 0, (byte) 128, (byte) 191, (byte) 0, (byte) 0, (byte) 0, - (byte) 0, (byte) 128, (byte) 191, - }; - SBPMessage sbp = new SBPMessage(0x4c3, 0x16, payload); - MsgTrackingStateDepA msg = new MsgTrackingStateDepA(sbp); + byte[] payload = new byte[] {(byte)1,(byte)0,(byte)98,(byte)39,(byte)219,(byte)65,(byte)1,(byte)2,(byte)0,(byte)0,(byte)56,(byte)64,(byte)1,(byte)3,(byte)121,(byte)123,(byte)7,(byte)65,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191,(byte)0,(byte)0,(byte)0,(byte)0,(byte)128,(byte)191, }; + SBPMessage sbp = new SBPMessage( 0x4c3, 0x16, payload ); + MsgTrackingStateDepA msg = new MsgTrackingStateDepA( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; org.junit.Assert.assertEquals(msg.states[0].cn0, 2.73942298889160156e+01, DELTA); value = msg.states[0].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[0].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1346,9 +1056,7 @@ public void test6() throws Throwable { } value = msg.states[0].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[0].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[0].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1357,9 +1065,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[1].cn0, 2.87500000000000000e+00, DELTA); value = msg.states[1].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].prn + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.states[1].prn + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1367,9 +1073,7 @@ public void test6() throws Throwable { } value = msg.states[1].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[1].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[1].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1378,9 +1082,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[2].cn0, 8.46764469146728516e+00, DELTA); value = msg.states[2].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].prn + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.states[2].prn + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -1388,9 +1090,7 @@ public void test6() throws Throwable { } value = msg.states[2].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[2].state + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.states[2].state + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -1399,9 +1099,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[3].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[3].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1409,9 +1107,7 @@ public void test6() throws Throwable { } value = msg.states[3].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[3].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[3].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1420,9 +1116,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[4].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[4].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1430,9 +1124,7 @@ public void test6() throws Throwable { } value = msg.states[4].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[4].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[4].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1441,9 +1133,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[5].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[5].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1451,9 +1141,7 @@ public void test6() throws Throwable { } value = msg.states[5].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[5].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[5].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1462,9 +1150,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[6].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[6].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1472,9 +1158,7 @@ public void test6() throws Throwable { } value = msg.states[6].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[6].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[6].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1483,9 +1167,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[7].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[7].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1493,9 +1175,7 @@ public void test6() throws Throwable { } value = msg.states[7].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[7].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[7].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1504,9 +1184,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[8].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[8].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1514,9 +1192,7 @@ public void test6() throws Throwable { } value = msg.states[8].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[8].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[8].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1525,9 +1201,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[9].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[9].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1535,9 +1209,7 @@ public void test6() throws Throwable { } value = msg.states[9].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[9].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[9].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1546,9 +1218,7 @@ public void test6() throws Throwable { org.junit.Assert.assertEquals(msg.states[10].cn0, -1.00000000000000000e+00, DELTA); value = msg.states[10].prn; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].prn + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].prn + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1556,9 +1226,7 @@ public void test6() throws Throwable { } value = msg.states[10].state; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.states[10].state + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.states[10].state + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; diff --git a/java/test/auto_check_sbp_tracking_tracking_structsTest.java b/java/test/auto_check_sbp_tracking_tracking_structsTest.java index 882019dd1f..a90969bc88 100644 --- a/java/test/auto_check_sbp_tracking_tracking_structsTest.java +++ b/java/test/auto_check_sbp_tracking_tracking_structsTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,11 +9,19 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from -// spec/tests/yaml/swiftnav/sbp/tracking/test_tracking_structs.yaml by generate.py. Do not modify by -// hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/tracking/test_tracking_structs.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; + +import org.json.JSONObject; + +import com.swiftnav.sbp.SBPMessage; + public class auto_check_sbp_tracking_tracking_structsTest { diff --git a/java/test/auto_check_sbp_user_MsgUserDataTest.java b/java/test/auto_check_sbp_user_MsgUserDataTest.java index c2320a329e..66abba75ab 100644 --- a/java/test/auto_check_sbp_user_MsgUserDataTest.java +++ b/java/test/auto_check_sbp_user_MsgUserDataTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/user/test_MsgUserData.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/user/test_MsgUserData.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.user.MsgUserData; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_user_MsgUserDataTest { @@ -27,275 +32,17 @@ public class auto_check_sbp_user_MsgUserDataTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_user_MsgUserDataTest.test1"); - byte[] payload = - new byte[] { - (byte) 53, - (byte) 5, - (byte) 172, - (byte) 138, - (byte) 50, - (byte) 49, - (byte) 206, - (byte) 234, - (byte) 149, - (byte) 204, - (byte) 113, - (byte) 31, - (byte) 108, - (byte) 188, - (byte) 179, - (byte) 154, - (byte) 156, - (byte) 167, - (byte) 145, - (byte) 139, - (byte) 42, - (byte) 207, - (byte) 126, - (byte) 242, - (byte) 193, - (byte) 9, - (byte) 58, - (byte) 75, - (byte) 8, - (byte) 135, - (byte) 11, - (byte) 92, - (byte) 131, - (byte) 245, - (byte) 24, - (byte) 90, - (byte) 255, - (byte) 30, - (byte) 58, - (byte) 31, - (byte) 109, - (byte) 148, - (byte) 56, - (byte) 178, - (byte) 140, - (byte) 30, - (byte) 159, - (byte) 70, - (byte) 17, - (byte) 170, - (byte) 50, - (byte) 148, - (byte) 1, - (byte) 99, - (byte) 112, - (byte) 88, - (byte) 217, - (byte) 36, - (byte) 84, - (byte) 34, - (byte) 234, - (byte) 82, - (byte) 144, - (byte) 144, - (byte) 97, - (byte) 96, - (byte) 75, - (byte) 174, - (byte) 58, - (byte) 219, - (byte) 180, - (byte) 148, - (byte) 247, - (byte) 59, - (byte) 2, - (byte) 116, - (byte) 214, - (byte) 114, - (byte) 55, - (byte) 134, - (byte) 54, - (byte) 119, - (byte) 108, - (byte) 128, - (byte) 73, - (byte) 181, - (byte) 20, - (byte) 233, - (byte) 23, - (byte) 23, - (byte) 73, - (byte) 119, - (byte) 136, - (byte) 231, - (byte) 189, - (byte) 26, - (byte) 174, - (byte) 128, - (byte) 93, - (byte) 30, - (byte) 76, - (byte) 45, - (byte) 109, - (byte) 134, - (byte) 81, - (byte) 0, - (byte) 116, - (byte) 158, - (byte) 127, - (byte) 40, - (byte) 133, - (byte) 208, - (byte) 134, - (byte) 127, - (byte) 140, - (byte) 232, - (byte) 183, - (byte) 184, - (byte) 108, - (byte) 6, - (byte) 228, - (byte) 54, - (byte) 238, - (byte) 59, - (byte) 220, - (byte) 30, - (byte) 228, - (byte) 212, - (byte) 50, - (byte) 182, - (byte) 97, - (byte) 20, - (byte) 41, - (byte) 76, - (byte) 227, - (byte) 88, - (byte) 12, - (byte) 95, - (byte) 112, - (byte) 209, - (byte) 183, - (byte) 127, - (byte) 4, - (byte) 165, - (byte) 189, - (byte) 44, - (byte) 239, - (byte) 232, - (byte) 132, - (byte) 9, - (byte) 114, - (byte) 184, - (byte) 249, - (byte) 208, - (byte) 246, - (byte) 194, - (byte) 250, - (byte) 2, - (byte) 97, - (byte) 173, - (byte) 157, - (byte) 202, - (byte) 172, - (byte) 180, - (byte) 150, - (byte) 213, - (byte) 193, - (byte) 177, - (byte) 209, - (byte) 156, - (byte) 20, - (byte) 174, - (byte) 18, - (byte) 73, - (byte) 132, - (byte) 215, - (byte) 115, - (byte) 128, - (byte) 175, - (byte) 169, - (byte) 116, - (byte) 132, - (byte) 100, - (byte) 72, - (byte) 45, - (byte) 25, - (byte) 14, - (byte) 205, - (byte) 213, - (byte) 145, - (byte) 68, - (byte) 137, - (byte) 249, - (byte) 54, - (byte) 40, - (byte) 174, - (byte) 215, - (byte) 148, - (byte) 166, - (byte) 190, - (byte) 63, - (byte) 118, - (byte) 6, - (byte) 165, - (byte) 212, - (byte) 74, - (byte) 68, - (byte) 200, - (byte) 38, - (byte) 139, - (byte) 212, - (byte) 112, - (byte) 45, - (byte) 167, - (byte) 236, - (byte) 255, - (byte) 106, - (byte) 92, - (byte) 132, - (byte) 59, - (byte) 61, - (byte) 233, - (byte) 3, - (byte) 246, - (byte) 158, - (byte) 83, - (byte) 134, - (byte) 246, - (byte) 154, - (byte) 17, - (byte) 0, - (byte) 6, - (byte) 56, - (byte) 216, - (byte) 19, - (byte) 216, - (byte) 70, - (byte) 71, - (byte) 161, - (byte) 184, - (byte) 5, - (byte) 177, - (byte) 45, - (byte) 37, - (byte) 98, - (byte) 56, - (byte) 149, - (byte) 0, - (byte) 73, - (byte) 221, - (byte) 105, - (byte) 239, - (byte) 168, - (byte) 205, - (byte) 85, - }; - SBPMessage sbp = new SBPMessage(0x217e, 0x800, payload); - MsgUserData msg = new MsgUserData(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_user_MsgUserDataTest.test1"); + byte[] payload = new byte[] {(byte)53,(byte)5,(byte)172,(byte)138,(byte)50,(byte)49,(byte)206,(byte)234,(byte)149,(byte)204,(byte)113,(byte)31,(byte)108,(byte)188,(byte)179,(byte)154,(byte)156,(byte)167,(byte)145,(byte)139,(byte)42,(byte)207,(byte)126,(byte)242,(byte)193,(byte)9,(byte)58,(byte)75,(byte)8,(byte)135,(byte)11,(byte)92,(byte)131,(byte)245,(byte)24,(byte)90,(byte)255,(byte)30,(byte)58,(byte)31,(byte)109,(byte)148,(byte)56,(byte)178,(byte)140,(byte)30,(byte)159,(byte)70,(byte)17,(byte)170,(byte)50,(byte)148,(byte)1,(byte)99,(byte)112,(byte)88,(byte)217,(byte)36,(byte)84,(byte)34,(byte)234,(byte)82,(byte)144,(byte)144,(byte)97,(byte)96,(byte)75,(byte)174,(byte)58,(byte)219,(byte)180,(byte)148,(byte)247,(byte)59,(byte)2,(byte)116,(byte)214,(byte)114,(byte)55,(byte)134,(byte)54,(byte)119,(byte)108,(byte)128,(byte)73,(byte)181,(byte)20,(byte)233,(byte)23,(byte)23,(byte)73,(byte)119,(byte)136,(byte)231,(byte)189,(byte)26,(byte)174,(byte)128,(byte)93,(byte)30,(byte)76,(byte)45,(byte)109,(byte)134,(byte)81,(byte)0,(byte)116,(byte)158,(byte)127,(byte)40,(byte)133,(byte)208,(byte)134,(byte)127,(byte)140,(byte)232,(byte)183,(byte)184,(byte)108,(byte)6,(byte)228,(byte)54,(byte)238,(byte)59,(byte)220,(byte)30,(byte)228,(byte)212,(byte)50,(byte)182,(byte)97,(byte)20,(byte)41,(byte)76,(byte)227,(byte)88,(byte)12,(byte)95,(byte)112,(byte)209,(byte)183,(byte)127,(byte)4,(byte)165,(byte)189,(byte)44,(byte)239,(byte)232,(byte)132,(byte)9,(byte)114,(byte)184,(byte)249,(byte)208,(byte)246,(byte)194,(byte)250,(byte)2,(byte)97,(byte)173,(byte)157,(byte)202,(byte)172,(byte)180,(byte)150,(byte)213,(byte)193,(byte)177,(byte)209,(byte)156,(byte)20,(byte)174,(byte)18,(byte)73,(byte)132,(byte)215,(byte)115,(byte)128,(byte)175,(byte)169,(byte)116,(byte)132,(byte)100,(byte)72,(byte)45,(byte)25,(byte)14,(byte)205,(byte)213,(byte)145,(byte)68,(byte)137,(byte)249,(byte)54,(byte)40,(byte)174,(byte)215,(byte)148,(byte)166,(byte)190,(byte)63,(byte)118,(byte)6,(byte)165,(byte)212,(byte)74,(byte)68,(byte)200,(byte)38,(byte)139,(byte)212,(byte)112,(byte)45,(byte)167,(byte)236,(byte)255,(byte)106,(byte)92,(byte)132,(byte)59,(byte)61,(byte)233,(byte)3,(byte)246,(byte)158,(byte)83,(byte)134,(byte)246,(byte)154,(byte)17,(byte)0,(byte)6,(byte)56,(byte)216,(byte)19,(byte)216,(byte)70,(byte)71,(byte)161,(byte)184,(byte)5,(byte)177,(byte)45,(byte)37,(byte)98,(byte)56,(byte)149,(byte)0,(byte)73,(byte)221,(byte)105,(byte)239,(byte)168,(byte)205,(byte)85, }; + SBPMessage sbp = new SBPMessage( 0x217e, 0x800, payload ); + MsgUserData msg = new MsgUserData( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.contents[0]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[0] + "' != '" + 53 + "'", - value.equals(BigInteger.valueOf(53L))); + org.junit.Assert.assertTrue("'" + msg.contents[0] + "' != '" + 53 + "'", value.equals(BigInteger.valueOf( 53L ) ) ); } else { value = value.longValue(); expected = 53L; @@ -303,9 +50,7 @@ public void test1() throws Throwable { } value = msg.contents[1]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[1] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.contents[1] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -313,9 +58,7 @@ public void test1() throws Throwable { } value = msg.contents[2]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[2] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.contents[2] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -323,9 +66,7 @@ public void test1() throws Throwable { } value = msg.contents[3]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[3] + "' != '" + 138 + "'", - value.equals(BigInteger.valueOf(138L))); + org.junit.Assert.assertTrue("'" + msg.contents[3] + "' != '" + 138 + "'", value.equals(BigInteger.valueOf( 138L ) ) ); } else { value = value.longValue(); expected = 138L; @@ -333,9 +74,7 @@ public void test1() throws Throwable { } value = msg.contents[4]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[4] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.contents[4] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -343,9 +82,7 @@ public void test1() throws Throwable { } value = msg.contents[5]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[5] + "' != '" + 49 + "'", - value.equals(BigInteger.valueOf(49L))); + org.junit.Assert.assertTrue("'" + msg.contents[5] + "' != '" + 49 + "'", value.equals(BigInteger.valueOf( 49L ) ) ); } else { value = value.longValue(); expected = 49L; @@ -353,9 +90,7 @@ public void test1() throws Throwable { } value = msg.contents[6]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[6] + "' != '" + 206 + "'", - value.equals(BigInteger.valueOf(206L))); + org.junit.Assert.assertTrue("'" + msg.contents[6] + "' != '" + 206 + "'", value.equals(BigInteger.valueOf( 206L ) ) ); } else { value = value.longValue(); expected = 206L; @@ -363,9 +98,7 @@ public void test1() throws Throwable { } value = msg.contents[7]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[7] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.contents[7] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -373,9 +106,7 @@ public void test1() throws Throwable { } value = msg.contents[8]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[8] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.contents[8] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -383,9 +114,7 @@ public void test1() throws Throwable { } value = msg.contents[9]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[9] + "' != '" + 204 + "'", - value.equals(BigInteger.valueOf(204L))); + org.junit.Assert.assertTrue("'" + msg.contents[9] + "' != '" + 204 + "'", value.equals(BigInteger.valueOf( 204L ) ) ); } else { value = value.longValue(); expected = 204L; @@ -393,9 +122,7 @@ public void test1() throws Throwable { } value = msg.contents[10]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[10] + "' != '" + 113 + "'", - value.equals(BigInteger.valueOf(113L))); + org.junit.Assert.assertTrue("'" + msg.contents[10] + "' != '" + 113 + "'", value.equals(BigInteger.valueOf( 113L ) ) ); } else { value = value.longValue(); expected = 113L; @@ -403,9 +130,7 @@ public void test1() throws Throwable { } value = msg.contents[11]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[11] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.contents[11] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -413,9 +138,7 @@ public void test1() throws Throwable { } value = msg.contents[12]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[12] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.contents[12] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -423,9 +146,7 @@ public void test1() throws Throwable { } value = msg.contents[13]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[13] + "' != '" + 188 + "'", - value.equals(BigInteger.valueOf(188L))); + org.junit.Assert.assertTrue("'" + msg.contents[13] + "' != '" + 188 + "'", value.equals(BigInteger.valueOf( 188L ) ) ); } else { value = value.longValue(); expected = 188L; @@ -433,9 +154,7 @@ public void test1() throws Throwable { } value = msg.contents[14]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[14] + "' != '" + 179 + "'", - value.equals(BigInteger.valueOf(179L))); + org.junit.Assert.assertTrue("'" + msg.contents[14] + "' != '" + 179 + "'", value.equals(BigInteger.valueOf( 179L ) ) ); } else { value = value.longValue(); expected = 179L; @@ -443,9 +162,7 @@ public void test1() throws Throwable { } value = msg.contents[15]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[15] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.contents[15] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -453,9 +170,7 @@ public void test1() throws Throwable { } value = msg.contents[16]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[16] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.contents[16] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -463,9 +178,7 @@ public void test1() throws Throwable { } value = msg.contents[17]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[17] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.contents[17] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -473,9 +186,7 @@ public void test1() throws Throwable { } value = msg.contents[18]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[18] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.contents[18] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -483,9 +194,7 @@ public void test1() throws Throwable { } value = msg.contents[19]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[19] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.contents[19] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -493,9 +202,7 @@ public void test1() throws Throwable { } value = msg.contents[20]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[20] + "' != '" + 42 + "'", - value.equals(BigInteger.valueOf(42L))); + org.junit.Assert.assertTrue("'" + msg.contents[20] + "' != '" + 42 + "'", value.equals(BigInteger.valueOf( 42L ) ) ); } else { value = value.longValue(); expected = 42L; @@ -503,9 +210,7 @@ public void test1() throws Throwable { } value = msg.contents[21]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[21] + "' != '" + 207 + "'", - value.equals(BigInteger.valueOf(207L))); + org.junit.Assert.assertTrue("'" + msg.contents[21] + "' != '" + 207 + "'", value.equals(BigInteger.valueOf( 207L ) ) ); } else { value = value.longValue(); expected = 207L; @@ -513,9 +218,7 @@ public void test1() throws Throwable { } value = msg.contents[22]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[22] + "' != '" + 126 + "'", - value.equals(BigInteger.valueOf(126L))); + org.junit.Assert.assertTrue("'" + msg.contents[22] + "' != '" + 126 + "'", value.equals(BigInteger.valueOf( 126L ) ) ); } else { value = value.longValue(); expected = 126L; @@ -523,9 +226,7 @@ public void test1() throws Throwable { } value = msg.contents[23]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[23] + "' != '" + 242 + "'", - value.equals(BigInteger.valueOf(242L))); + org.junit.Assert.assertTrue("'" + msg.contents[23] + "' != '" + 242 + "'", value.equals(BigInteger.valueOf( 242L ) ) ); } else { value = value.longValue(); expected = 242L; @@ -533,9 +234,7 @@ public void test1() throws Throwable { } value = msg.contents[24]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[24] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.contents[24] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -543,9 +242,7 @@ public void test1() throws Throwable { } value = msg.contents[25]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[25] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.contents[25] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -553,9 +250,7 @@ public void test1() throws Throwable { } value = msg.contents[26]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[26] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.contents[26] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -563,9 +258,7 @@ public void test1() throws Throwable { } value = msg.contents[27]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[27] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.contents[27] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -573,9 +266,7 @@ public void test1() throws Throwable { } value = msg.contents[28]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[28] + "' != '" + 8 + "'", - value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.contents[28] + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -583,9 +274,7 @@ public void test1() throws Throwable { } value = msg.contents[29]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[29] + "' != '" + 135 + "'", - value.equals(BigInteger.valueOf(135L))); + org.junit.Assert.assertTrue("'" + msg.contents[29] + "' != '" + 135 + "'", value.equals(BigInteger.valueOf( 135L ) ) ); } else { value = value.longValue(); expected = 135L; @@ -593,9 +282,7 @@ public void test1() throws Throwable { } value = msg.contents[30]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[30] + "' != '" + 11 + "'", - value.equals(BigInteger.valueOf(11L))); + org.junit.Assert.assertTrue("'" + msg.contents[30] + "' != '" + 11 + "'", value.equals(BigInteger.valueOf( 11L ) ) ); } else { value = value.longValue(); expected = 11L; @@ -603,9 +290,7 @@ public void test1() throws Throwable { } value = msg.contents[31]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[31] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.contents[31] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -613,9 +298,7 @@ public void test1() throws Throwable { } value = msg.contents[32]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[32] + "' != '" + 131 + "'", - value.equals(BigInteger.valueOf(131L))); + org.junit.Assert.assertTrue("'" + msg.contents[32] + "' != '" + 131 + "'", value.equals(BigInteger.valueOf( 131L ) ) ); } else { value = value.longValue(); expected = 131L; @@ -623,9 +306,7 @@ public void test1() throws Throwable { } value = msg.contents[33]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[33] + "' != '" + 245 + "'", - value.equals(BigInteger.valueOf(245L))); + org.junit.Assert.assertTrue("'" + msg.contents[33] + "' != '" + 245 + "'", value.equals(BigInteger.valueOf( 245L ) ) ); } else { value = value.longValue(); expected = 245L; @@ -633,9 +314,7 @@ public void test1() throws Throwable { } value = msg.contents[34]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[34] + "' != '" + 24 + "'", - value.equals(BigInteger.valueOf(24L))); + org.junit.Assert.assertTrue("'" + msg.contents[34] + "' != '" + 24 + "'", value.equals(BigInteger.valueOf( 24L ) ) ); } else { value = value.longValue(); expected = 24L; @@ -643,9 +322,7 @@ public void test1() throws Throwable { } value = msg.contents[35]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[35] + "' != '" + 90 + "'", - value.equals(BigInteger.valueOf(90L))); + org.junit.Assert.assertTrue("'" + msg.contents[35] + "' != '" + 90 + "'", value.equals(BigInteger.valueOf( 90L ) ) ); } else { value = value.longValue(); expected = 90L; @@ -653,9 +330,7 @@ public void test1() throws Throwable { } value = msg.contents[36]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[36] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.contents[36] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -663,9 +338,7 @@ public void test1() throws Throwable { } value = msg.contents[37]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[37] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.contents[37] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -673,9 +346,7 @@ public void test1() throws Throwable { } value = msg.contents[38]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[38] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.contents[38] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -683,9 +354,7 @@ public void test1() throws Throwable { } value = msg.contents[39]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[39] + "' != '" + 31 + "'", - value.equals(BigInteger.valueOf(31L))); + org.junit.Assert.assertTrue("'" + msg.contents[39] + "' != '" + 31 + "'", value.equals(BigInteger.valueOf( 31L ) ) ); } else { value = value.longValue(); expected = 31L; @@ -693,9 +362,7 @@ public void test1() throws Throwable { } value = msg.contents[40]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[40] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.contents[40] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -703,9 +370,7 @@ public void test1() throws Throwable { } value = msg.contents[41]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[41] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.contents[41] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -713,9 +378,7 @@ public void test1() throws Throwable { } value = msg.contents[42]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[42] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.contents[42] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -723,9 +386,7 @@ public void test1() throws Throwable { } value = msg.contents[43]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[43] + "' != '" + 178 + "'", - value.equals(BigInteger.valueOf(178L))); + org.junit.Assert.assertTrue("'" + msg.contents[43] + "' != '" + 178 + "'", value.equals(BigInteger.valueOf( 178L ) ) ); } else { value = value.longValue(); expected = 178L; @@ -733,9 +394,7 @@ public void test1() throws Throwable { } value = msg.contents[44]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[44] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.contents[44] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -743,9 +402,7 @@ public void test1() throws Throwable { } value = msg.contents[45]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[45] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.contents[45] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -753,9 +410,7 @@ public void test1() throws Throwable { } value = msg.contents[46]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[46] + "' != '" + 159 + "'", - value.equals(BigInteger.valueOf(159L))); + org.junit.Assert.assertTrue("'" + msg.contents[46] + "' != '" + 159 + "'", value.equals(BigInteger.valueOf( 159L ) ) ); } else { value = value.longValue(); expected = 159L; @@ -763,9 +418,7 @@ public void test1() throws Throwable { } value = msg.contents[47]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[47] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.contents[47] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -773,9 +426,7 @@ public void test1() throws Throwable { } value = msg.contents[48]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[48] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.contents[48] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -783,9 +434,7 @@ public void test1() throws Throwable { } value = msg.contents[49]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[49] + "' != '" + 170 + "'", - value.equals(BigInteger.valueOf(170L))); + org.junit.Assert.assertTrue("'" + msg.contents[49] + "' != '" + 170 + "'", value.equals(BigInteger.valueOf( 170L ) ) ); } else { value = value.longValue(); expected = 170L; @@ -793,9 +442,7 @@ public void test1() throws Throwable { } value = msg.contents[50]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[50] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.contents[50] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -803,9 +450,7 @@ public void test1() throws Throwable { } value = msg.contents[51]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[51] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.contents[51] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -813,9 +458,7 @@ public void test1() throws Throwable { } value = msg.contents[52]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[52] + "' != '" + 1 + "'", - value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.contents[52] + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -823,9 +466,7 @@ public void test1() throws Throwable { } value = msg.contents[53]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[53] + "' != '" + 99 + "'", - value.equals(BigInteger.valueOf(99L))); + org.junit.Assert.assertTrue("'" + msg.contents[53] + "' != '" + 99 + "'", value.equals(BigInteger.valueOf( 99L ) ) ); } else { value = value.longValue(); expected = 99L; @@ -833,9 +474,7 @@ public void test1() throws Throwable { } value = msg.contents[54]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[54] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.contents[54] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -843,9 +482,7 @@ public void test1() throws Throwable { } value = msg.contents[55]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[55] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.contents[55] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -853,9 +490,7 @@ public void test1() throws Throwable { } value = msg.contents[56]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[56] + "' != '" + 217 + "'", - value.equals(BigInteger.valueOf(217L))); + org.junit.Assert.assertTrue("'" + msg.contents[56] + "' != '" + 217 + "'", value.equals(BigInteger.valueOf( 217L ) ) ); } else { value = value.longValue(); expected = 217L; @@ -863,9 +498,7 @@ public void test1() throws Throwable { } value = msg.contents[57]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[57] + "' != '" + 36 + "'", - value.equals(BigInteger.valueOf(36L))); + org.junit.Assert.assertTrue("'" + msg.contents[57] + "' != '" + 36 + "'", value.equals(BigInteger.valueOf( 36L ) ) ); } else { value = value.longValue(); expected = 36L; @@ -873,9 +506,7 @@ public void test1() throws Throwable { } value = msg.contents[58]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[58] + "' != '" + 84 + "'", - value.equals(BigInteger.valueOf(84L))); + org.junit.Assert.assertTrue("'" + msg.contents[58] + "' != '" + 84 + "'", value.equals(BigInteger.valueOf( 84L ) ) ); } else { value = value.longValue(); expected = 84L; @@ -883,9 +514,7 @@ public void test1() throws Throwable { } value = msg.contents[59]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[59] + "' != '" + 34 + "'", - value.equals(BigInteger.valueOf(34L))); + org.junit.Assert.assertTrue("'" + msg.contents[59] + "' != '" + 34 + "'", value.equals(BigInteger.valueOf( 34L ) ) ); } else { value = value.longValue(); expected = 34L; @@ -893,9 +522,7 @@ public void test1() throws Throwable { } value = msg.contents[60]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[60] + "' != '" + 234 + "'", - value.equals(BigInteger.valueOf(234L))); + org.junit.Assert.assertTrue("'" + msg.contents[60] + "' != '" + 234 + "'", value.equals(BigInteger.valueOf( 234L ) ) ); } else { value = value.longValue(); expected = 234L; @@ -903,9 +530,7 @@ public void test1() throws Throwable { } value = msg.contents[61]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[61] + "' != '" + 82 + "'", - value.equals(BigInteger.valueOf(82L))); + org.junit.Assert.assertTrue("'" + msg.contents[61] + "' != '" + 82 + "'", value.equals(BigInteger.valueOf( 82L ) ) ); } else { value = value.longValue(); expected = 82L; @@ -913,9 +538,7 @@ public void test1() throws Throwable { } value = msg.contents[62]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[62] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.contents[62] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -923,9 +546,7 @@ public void test1() throws Throwable { } value = msg.contents[63]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[63] + "' != '" + 144 + "'", - value.equals(BigInteger.valueOf(144L))); + org.junit.Assert.assertTrue("'" + msg.contents[63] + "' != '" + 144 + "'", value.equals(BigInteger.valueOf( 144L ) ) ); } else { value = value.longValue(); expected = 144L; @@ -933,9 +554,7 @@ public void test1() throws Throwable { } value = msg.contents[64]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[64] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.contents[64] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -943,9 +562,7 @@ public void test1() throws Throwable { } value = msg.contents[65]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[65] + "' != '" + 96 + "'", - value.equals(BigInteger.valueOf(96L))); + org.junit.Assert.assertTrue("'" + msg.contents[65] + "' != '" + 96 + "'", value.equals(BigInteger.valueOf( 96L ) ) ); } else { value = value.longValue(); expected = 96L; @@ -953,9 +570,7 @@ public void test1() throws Throwable { } value = msg.contents[66]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[66] + "' != '" + 75 + "'", - value.equals(BigInteger.valueOf(75L))); + org.junit.Assert.assertTrue("'" + msg.contents[66] + "' != '" + 75 + "'", value.equals(BigInteger.valueOf( 75L ) ) ); } else { value = value.longValue(); expected = 75L; @@ -963,9 +578,7 @@ public void test1() throws Throwable { } value = msg.contents[67]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[67] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.contents[67] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -973,9 +586,7 @@ public void test1() throws Throwable { } value = msg.contents[68]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[68] + "' != '" + 58 + "'", - value.equals(BigInteger.valueOf(58L))); + org.junit.Assert.assertTrue("'" + msg.contents[68] + "' != '" + 58 + "'", value.equals(BigInteger.valueOf( 58L ) ) ); } else { value = value.longValue(); expected = 58L; @@ -983,9 +594,7 @@ public void test1() throws Throwable { } value = msg.contents[69]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[69] + "' != '" + 219 + "'", - value.equals(BigInteger.valueOf(219L))); + org.junit.Assert.assertTrue("'" + msg.contents[69] + "' != '" + 219 + "'", value.equals(BigInteger.valueOf( 219L ) ) ); } else { value = value.longValue(); expected = 219L; @@ -993,9 +602,7 @@ public void test1() throws Throwable { } value = msg.contents[70]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[70] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.contents[70] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1003,9 +610,7 @@ public void test1() throws Throwable { } value = msg.contents[71]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[71] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.contents[71] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -1013,9 +618,7 @@ public void test1() throws Throwable { } value = msg.contents[72]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[72] + "' != '" + 247 + "'", - value.equals(BigInteger.valueOf(247L))); + org.junit.Assert.assertTrue("'" + msg.contents[72] + "' != '" + 247 + "'", value.equals(BigInteger.valueOf( 247L ) ) ); } else { value = value.longValue(); expected = 247L; @@ -1023,9 +626,7 @@ public void test1() throws Throwable { } value = msg.contents[73]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[73] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.contents[73] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1033,9 +634,7 @@ public void test1() throws Throwable { } value = msg.contents[74]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[74] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.contents[74] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1043,9 +642,7 @@ public void test1() throws Throwable { } value = msg.contents[75]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[75] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[75] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1053,9 +650,7 @@ public void test1() throws Throwable { } value = msg.contents[76]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[76] + "' != '" + 214 + "'", - value.equals(BigInteger.valueOf(214L))); + org.junit.Assert.assertTrue("'" + msg.contents[76] + "' != '" + 214 + "'", value.equals(BigInteger.valueOf( 214L ) ) ); } else { value = value.longValue(); expected = 214L; @@ -1063,9 +658,7 @@ public void test1() throws Throwable { } value = msg.contents[77]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[77] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.contents[77] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1073,9 +666,7 @@ public void test1() throws Throwable { } value = msg.contents[78]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[78] + "' != '" + 55 + "'", - value.equals(BigInteger.valueOf(55L))); + org.junit.Assert.assertTrue("'" + msg.contents[78] + "' != '" + 55 + "'", value.equals(BigInteger.valueOf( 55L ) ) ); } else { value = value.longValue(); expected = 55L; @@ -1083,9 +674,7 @@ public void test1() throws Throwable { } value = msg.contents[79]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[79] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.contents[79] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1093,9 +682,7 @@ public void test1() throws Throwable { } value = msg.contents[80]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[80] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.contents[80] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1103,9 +690,7 @@ public void test1() throws Throwable { } value = msg.contents[81]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[81] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.contents[81] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -1113,9 +698,7 @@ public void test1() throws Throwable { } value = msg.contents[82]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[82] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.contents[82] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1123,9 +706,7 @@ public void test1() throws Throwable { } value = msg.contents[83]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[83] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.contents[83] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1133,9 +714,7 @@ public void test1() throws Throwable { } value = msg.contents[84]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[84] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[84] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1143,9 +722,7 @@ public void test1() throws Throwable { } value = msg.contents[85]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[85] + "' != '" + 181 + "'", - value.equals(BigInteger.valueOf(181L))); + org.junit.Assert.assertTrue("'" + msg.contents[85] + "' != '" + 181 + "'", value.equals(BigInteger.valueOf( 181L ) ) ); } else { value = value.longValue(); expected = 181L; @@ -1153,9 +730,7 @@ public void test1() throws Throwable { } value = msg.contents[86]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[86] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.contents[86] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1163,9 +738,7 @@ public void test1() throws Throwable { } value = msg.contents[87]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[87] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.contents[87] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -1173,9 +746,7 @@ public void test1() throws Throwable { } value = msg.contents[88]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[88] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.contents[88] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1183,9 +754,7 @@ public void test1() throws Throwable { } value = msg.contents[89]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[89] + "' != '" + 23 + "'", - value.equals(BigInteger.valueOf(23L))); + org.junit.Assert.assertTrue("'" + msg.contents[89] + "' != '" + 23 + "'", value.equals(BigInteger.valueOf( 23L ) ) ); } else { value = value.longValue(); expected = 23L; @@ -1193,9 +762,7 @@ public void test1() throws Throwable { } value = msg.contents[90]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[90] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[90] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -1203,9 +770,7 @@ public void test1() throws Throwable { } value = msg.contents[91]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[91] + "' != '" + 119 + "'", - value.equals(BigInteger.valueOf(119L))); + org.junit.Assert.assertTrue("'" + msg.contents[91] + "' != '" + 119 + "'", value.equals(BigInteger.valueOf( 119L ) ) ); } else { value = value.longValue(); expected = 119L; @@ -1213,9 +778,7 @@ public void test1() throws Throwable { } value = msg.contents[92]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[92] + "' != '" + 136 + "'", - value.equals(BigInteger.valueOf(136L))); + org.junit.Assert.assertTrue("'" + msg.contents[92] + "' != '" + 136 + "'", value.equals(BigInteger.valueOf( 136L ) ) ); } else { value = value.longValue(); expected = 136L; @@ -1223,9 +786,7 @@ public void test1() throws Throwable { } value = msg.contents[93]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[93] + "' != '" + 231 + "'", - value.equals(BigInteger.valueOf(231L))); + org.junit.Assert.assertTrue("'" + msg.contents[93] + "' != '" + 231 + "'", value.equals(BigInteger.valueOf( 231L ) ) ); } else { value = value.longValue(); expected = 231L; @@ -1233,9 +794,7 @@ public void test1() throws Throwable { } value = msg.contents[94]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[94] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.contents[94] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1243,9 +802,7 @@ public void test1() throws Throwable { } value = msg.contents[95]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[95] + "' != '" + 26 + "'", - value.equals(BigInteger.valueOf(26L))); + org.junit.Assert.assertTrue("'" + msg.contents[95] + "' != '" + 26 + "'", value.equals(BigInteger.valueOf( 26L ) ) ); } else { value = value.longValue(); expected = 26L; @@ -1253,9 +810,7 @@ public void test1() throws Throwable { } value = msg.contents[96]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[96] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.contents[96] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -1263,9 +818,7 @@ public void test1() throws Throwable { } value = msg.contents[97]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[97] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.contents[97] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -1273,9 +826,7 @@ public void test1() throws Throwable { } value = msg.contents[98]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[98] + "' != '" + 93 + "'", - value.equals(BigInteger.valueOf(93L))); + org.junit.Assert.assertTrue("'" + msg.contents[98] + "' != '" + 93 + "'", value.equals(BigInteger.valueOf( 93L ) ) ); } else { value = value.longValue(); expected = 93L; @@ -1283,9 +834,7 @@ public void test1() throws Throwable { } value = msg.contents[99]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[99] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.contents[99] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1293,9 +842,7 @@ public void test1() throws Throwable { } value = msg.contents[100]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[100] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.contents[100] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -1303,9 +850,7 @@ public void test1() throws Throwable { } value = msg.contents[101]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[101] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.contents[101] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -1313,9 +858,7 @@ public void test1() throws Throwable { } value = msg.contents[102]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[102] + "' != '" + 109 + "'", - value.equals(BigInteger.valueOf(109L))); + org.junit.Assert.assertTrue("'" + msg.contents[102] + "' != '" + 109 + "'", value.equals(BigInteger.valueOf( 109L ) ) ); } else { value = value.longValue(); expected = 109L; @@ -1323,9 +866,7 @@ public void test1() throws Throwable { } value = msg.contents[103]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[103] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.contents[103] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1333,9 +874,7 @@ public void test1() throws Throwable { } value = msg.contents[104]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[104] + "' != '" + 81 + "'", - value.equals(BigInteger.valueOf(81L))); + org.junit.Assert.assertTrue("'" + msg.contents[104] + "' != '" + 81 + "'", value.equals(BigInteger.valueOf( 81L ) ) ); } else { value = value.longValue(); expected = 81L; @@ -1343,9 +882,7 @@ public void test1() throws Throwable { } value = msg.contents[105]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[105] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.contents[105] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -1353,9 +890,7 @@ public void test1() throws Throwable { } value = msg.contents[106]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[106] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[106] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -1363,9 +898,7 @@ public void test1() throws Throwable { } value = msg.contents[107]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[107] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.contents[107] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -1373,9 +906,7 @@ public void test1() throws Throwable { } value = msg.contents[108]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[108] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.contents[108] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1383,9 +914,7 @@ public void test1() throws Throwable { } value = msg.contents[109]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[109] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.contents[109] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -1393,9 +922,7 @@ public void test1() throws Throwable { } value = msg.contents[110]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[110] + "' != '" + 133 + "'", - value.equals(BigInteger.valueOf(133L))); + org.junit.Assert.assertTrue("'" + msg.contents[110] + "' != '" + 133 + "'", value.equals(BigInteger.valueOf( 133L ) ) ); } else { value = value.longValue(); expected = 133L; @@ -1403,9 +930,7 @@ public void test1() throws Throwable { } value = msg.contents[111]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[111] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.contents[111] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1413,9 +938,7 @@ public void test1() throws Throwable { } value = msg.contents[112]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[112] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.contents[112] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -1423,9 +946,7 @@ public void test1() throws Throwable { } value = msg.contents[113]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[113] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.contents[113] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1433,9 +954,7 @@ public void test1() throws Throwable { } value = msg.contents[114]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[114] + "' != '" + 140 + "'", - value.equals(BigInteger.valueOf(140L))); + org.junit.Assert.assertTrue("'" + msg.contents[114] + "' != '" + 140 + "'", value.equals(BigInteger.valueOf( 140L ) ) ); } else { value = value.longValue(); expected = 140L; @@ -1443,9 +962,7 @@ public void test1() throws Throwable { } value = msg.contents[115]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[115] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.contents[115] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1453,9 +970,7 @@ public void test1() throws Throwable { } value = msg.contents[116]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[116] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.contents[116] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -1463,9 +978,7 @@ public void test1() throws Throwable { } value = msg.contents[117]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[117] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.contents[117] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1473,9 +986,7 @@ public void test1() throws Throwable { } value = msg.contents[118]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[118] + "' != '" + 108 + "'", - value.equals(BigInteger.valueOf(108L))); + org.junit.Assert.assertTrue("'" + msg.contents[118] + "' != '" + 108 + "'", value.equals(BigInteger.valueOf( 108L ) ) ); } else { value = value.longValue(); expected = 108L; @@ -1483,9 +994,7 @@ public void test1() throws Throwable { } value = msg.contents[119]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[119] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.contents[119] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -1493,9 +1002,7 @@ public void test1() throws Throwable { } value = msg.contents[120]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[120] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.contents[120] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1503,9 +1010,7 @@ public void test1() throws Throwable { } value = msg.contents[121]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[121] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.contents[121] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -1513,9 +1018,7 @@ public void test1() throws Throwable { } value = msg.contents[122]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[122] + "' != '" + 238 + "'", - value.equals(BigInteger.valueOf(238L))); + org.junit.Assert.assertTrue("'" + msg.contents[122] + "' != '" + 238 + "'", value.equals(BigInteger.valueOf( 238L ) ) ); } else { value = value.longValue(); expected = 238L; @@ -1523,9 +1026,7 @@ public void test1() throws Throwable { } value = msg.contents[123]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[123] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.contents[123] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -1533,9 +1034,7 @@ public void test1() throws Throwable { } value = msg.contents[124]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[124] + "' != '" + 220 + "'", - value.equals(BigInteger.valueOf(220L))); + org.junit.Assert.assertTrue("'" + msg.contents[124] + "' != '" + 220 + "'", value.equals(BigInteger.valueOf( 220L ) ) ); } else { value = value.longValue(); expected = 220L; @@ -1543,9 +1042,7 @@ public void test1() throws Throwable { } value = msg.contents[125]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[125] + "' != '" + 30 + "'", - value.equals(BigInteger.valueOf(30L))); + org.junit.Assert.assertTrue("'" + msg.contents[125] + "' != '" + 30 + "'", value.equals(BigInteger.valueOf( 30L ) ) ); } else { value = value.longValue(); expected = 30L; @@ -1553,9 +1050,7 @@ public void test1() throws Throwable { } value = msg.contents[126]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[126] + "' != '" + 228 + "'", - value.equals(BigInteger.valueOf(228L))); + org.junit.Assert.assertTrue("'" + msg.contents[126] + "' != '" + 228 + "'", value.equals(BigInteger.valueOf( 228L ) ) ); } else { value = value.longValue(); expected = 228L; @@ -1563,9 +1058,7 @@ public void test1() throws Throwable { } value = msg.contents[127]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[127] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.contents[127] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -1573,9 +1066,7 @@ public void test1() throws Throwable { } value = msg.contents[128]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[128] + "' != '" + 50 + "'", - value.equals(BigInteger.valueOf(50L))); + org.junit.Assert.assertTrue("'" + msg.contents[128] + "' != '" + 50 + "'", value.equals(BigInteger.valueOf( 50L ) ) ); } else { value = value.longValue(); expected = 50L; @@ -1583,9 +1074,7 @@ public void test1() throws Throwable { } value = msg.contents[129]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[129] + "' != '" + 182 + "'", - value.equals(BigInteger.valueOf(182L))); + org.junit.Assert.assertTrue("'" + msg.contents[129] + "' != '" + 182 + "'", value.equals(BigInteger.valueOf( 182L ) ) ); } else { value = value.longValue(); expected = 182L; @@ -1593,9 +1082,7 @@ public void test1() throws Throwable { } value = msg.contents[130]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[130] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.contents[130] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1603,9 +1090,7 @@ public void test1() throws Throwable { } value = msg.contents[131]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[131] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.contents[131] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -1613,9 +1098,7 @@ public void test1() throws Throwable { } value = msg.contents[132]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[132] + "' != '" + 41 + "'", - value.equals(BigInteger.valueOf(41L))); + org.junit.Assert.assertTrue("'" + msg.contents[132] + "' != '" + 41 + "'", value.equals(BigInteger.valueOf( 41L ) ) ); } else { value = value.longValue(); expected = 41L; @@ -1623,9 +1106,7 @@ public void test1() throws Throwable { } value = msg.contents[133]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[133] + "' != '" + 76 + "'", - value.equals(BigInteger.valueOf(76L))); + org.junit.Assert.assertTrue("'" + msg.contents[133] + "' != '" + 76 + "'", value.equals(BigInteger.valueOf( 76L ) ) ); } else { value = value.longValue(); expected = 76L; @@ -1633,9 +1114,7 @@ public void test1() throws Throwable { } value = msg.contents[134]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[134] + "' != '" + 227 + "'", - value.equals(BigInteger.valueOf(227L))); + org.junit.Assert.assertTrue("'" + msg.contents[134] + "' != '" + 227 + "'", value.equals(BigInteger.valueOf( 227L ) ) ); } else { value = value.longValue(); expected = 227L; @@ -1643,9 +1122,7 @@ public void test1() throws Throwable { } value = msg.contents[135]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[135] + "' != '" + 88 + "'", - value.equals(BigInteger.valueOf(88L))); + org.junit.Assert.assertTrue("'" + msg.contents[135] + "' != '" + 88 + "'", value.equals(BigInteger.valueOf( 88L ) ) ); } else { value = value.longValue(); expected = 88L; @@ -1653,9 +1130,7 @@ public void test1() throws Throwable { } value = msg.contents[136]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[136] + "' != '" + 12 + "'", - value.equals(BigInteger.valueOf(12L))); + org.junit.Assert.assertTrue("'" + msg.contents[136] + "' != '" + 12 + "'", value.equals(BigInteger.valueOf( 12L ) ) ); } else { value = value.longValue(); expected = 12L; @@ -1663,9 +1138,7 @@ public void test1() throws Throwable { } value = msg.contents[137]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[137] + "' != '" + 95 + "'", - value.equals(BigInteger.valueOf(95L))); + org.junit.Assert.assertTrue("'" + msg.contents[137] + "' != '" + 95 + "'", value.equals(BigInteger.valueOf( 95L ) ) ); } else { value = value.longValue(); expected = 95L; @@ -1673,9 +1146,7 @@ public void test1() throws Throwable { } value = msg.contents[138]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[138] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.contents[138] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -1683,9 +1154,7 @@ public void test1() throws Throwable { } value = msg.contents[139]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[139] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.contents[139] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1693,9 +1162,7 @@ public void test1() throws Throwable { } value = msg.contents[140]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[140] + "' != '" + 183 + "'", - value.equals(BigInteger.valueOf(183L))); + org.junit.Assert.assertTrue("'" + msg.contents[140] + "' != '" + 183 + "'", value.equals(BigInteger.valueOf( 183L ) ) ); } else { value = value.longValue(); expected = 183L; @@ -1703,9 +1170,7 @@ public void test1() throws Throwable { } value = msg.contents[141]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[141] + "' != '" + 127 + "'", - value.equals(BigInteger.valueOf(127L))); + org.junit.Assert.assertTrue("'" + msg.contents[141] + "' != '" + 127 + "'", value.equals(BigInteger.valueOf( 127L ) ) ); } else { value = value.longValue(); expected = 127L; @@ -1713,9 +1178,7 @@ public void test1() throws Throwable { } value = msg.contents[142]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[142] + "' != '" + 4 + "'", - value.equals(BigInteger.valueOf(4L))); + org.junit.Assert.assertTrue("'" + msg.contents[142] + "' != '" + 4 + "'", value.equals(BigInteger.valueOf( 4L ) ) ); } else { value = value.longValue(); expected = 4L; @@ -1723,9 +1186,7 @@ public void test1() throws Throwable { } value = msg.contents[143]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[143] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.contents[143] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -1733,9 +1194,7 @@ public void test1() throws Throwable { } value = msg.contents[144]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[144] + "' != '" + 189 + "'", - value.equals(BigInteger.valueOf(189L))); + org.junit.Assert.assertTrue("'" + msg.contents[144] + "' != '" + 189 + "'", value.equals(BigInteger.valueOf( 189L ) ) ); } else { value = value.longValue(); expected = 189L; @@ -1743,9 +1202,7 @@ public void test1() throws Throwable { } value = msg.contents[145]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[145] + "' != '" + 44 + "'", - value.equals(BigInteger.valueOf(44L))); + org.junit.Assert.assertTrue("'" + msg.contents[145] + "' != '" + 44 + "'", value.equals(BigInteger.valueOf( 44L ) ) ); } else { value = value.longValue(); expected = 44L; @@ -1753,9 +1210,7 @@ public void test1() throws Throwable { } value = msg.contents[146]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[146] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.contents[146] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -1763,9 +1218,7 @@ public void test1() throws Throwable { } value = msg.contents[147]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[147] + "' != '" + 232 + "'", - value.equals(BigInteger.valueOf(232L))); + org.junit.Assert.assertTrue("'" + msg.contents[147] + "' != '" + 232 + "'", value.equals(BigInteger.valueOf( 232L ) ) ); } else { value = value.longValue(); expected = 232L; @@ -1773,9 +1226,7 @@ public void test1() throws Throwable { } value = msg.contents[148]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[148] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.contents[148] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -1783,9 +1234,7 @@ public void test1() throws Throwable { } value = msg.contents[149]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[149] + "' != '" + 9 + "'", - value.equals(BigInteger.valueOf(9L))); + org.junit.Assert.assertTrue("'" + msg.contents[149] + "' != '" + 9 + "'", value.equals(BigInteger.valueOf( 9L ) ) ); } else { value = value.longValue(); expected = 9L; @@ -1793,9 +1242,7 @@ public void test1() throws Throwable { } value = msg.contents[150]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[150] + "' != '" + 114 + "'", - value.equals(BigInteger.valueOf(114L))); + org.junit.Assert.assertTrue("'" + msg.contents[150] + "' != '" + 114 + "'", value.equals(BigInteger.valueOf( 114L ) ) ); } else { value = value.longValue(); expected = 114L; @@ -1803,9 +1250,7 @@ public void test1() throws Throwable { } value = msg.contents[151]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[151] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.contents[151] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -1813,9 +1258,7 @@ public void test1() throws Throwable { } value = msg.contents[152]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[152] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.contents[152] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -1823,9 +1266,7 @@ public void test1() throws Throwable { } value = msg.contents[153]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[153] + "' != '" + 208 + "'", - value.equals(BigInteger.valueOf(208L))); + org.junit.Assert.assertTrue("'" + msg.contents[153] + "' != '" + 208 + "'", value.equals(BigInteger.valueOf( 208L ) ) ); } else { value = value.longValue(); expected = 208L; @@ -1833,9 +1274,7 @@ public void test1() throws Throwable { } value = msg.contents[154]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[154] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.contents[154] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -1843,9 +1282,7 @@ public void test1() throws Throwable { } value = msg.contents[155]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[155] + "' != '" + 194 + "'", - value.equals(BigInteger.valueOf(194L))); + org.junit.Assert.assertTrue("'" + msg.contents[155] + "' != '" + 194 + "'", value.equals(BigInteger.valueOf( 194L ) ) ); } else { value = value.longValue(); expected = 194L; @@ -1853,9 +1290,7 @@ public void test1() throws Throwable { } value = msg.contents[156]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[156] + "' != '" + 250 + "'", - value.equals(BigInteger.valueOf(250L))); + org.junit.Assert.assertTrue("'" + msg.contents[156] + "' != '" + 250 + "'", value.equals(BigInteger.valueOf( 250L ) ) ); } else { value = value.longValue(); expected = 250L; @@ -1863,9 +1298,7 @@ public void test1() throws Throwable { } value = msg.contents[157]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[157] + "' != '" + 2 + "'", - value.equals(BigInteger.valueOf(2L))); + org.junit.Assert.assertTrue("'" + msg.contents[157] + "' != '" + 2 + "'", value.equals(BigInteger.valueOf( 2L ) ) ); } else { value = value.longValue(); expected = 2L; @@ -1873,9 +1306,7 @@ public void test1() throws Throwable { } value = msg.contents[158]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[158] + "' != '" + 97 + "'", - value.equals(BigInteger.valueOf(97L))); + org.junit.Assert.assertTrue("'" + msg.contents[158] + "' != '" + 97 + "'", value.equals(BigInteger.valueOf( 97L ) ) ); } else { value = value.longValue(); expected = 97L; @@ -1883,9 +1314,7 @@ public void test1() throws Throwable { } value = msg.contents[159]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[159] + "' != '" + 173 + "'", - value.equals(BigInteger.valueOf(173L))); + org.junit.Assert.assertTrue("'" + msg.contents[159] + "' != '" + 173 + "'", value.equals(BigInteger.valueOf( 173L ) ) ); } else { value = value.longValue(); expected = 173L; @@ -1893,9 +1322,7 @@ public void test1() throws Throwable { } value = msg.contents[160]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[160] + "' != '" + 157 + "'", - value.equals(BigInteger.valueOf(157L))); + org.junit.Assert.assertTrue("'" + msg.contents[160] + "' != '" + 157 + "'", value.equals(BigInteger.valueOf( 157L ) ) ); } else { value = value.longValue(); expected = 157L; @@ -1903,9 +1330,7 @@ public void test1() throws Throwable { } value = msg.contents[161]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[161] + "' != '" + 202 + "'", - value.equals(BigInteger.valueOf(202L))); + org.junit.Assert.assertTrue("'" + msg.contents[161] + "' != '" + 202 + "'", value.equals(BigInteger.valueOf( 202L ) ) ); } else { value = value.longValue(); expected = 202L; @@ -1913,9 +1338,7 @@ public void test1() throws Throwable { } value = msg.contents[162]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[162] + "' != '" + 172 + "'", - value.equals(BigInteger.valueOf(172L))); + org.junit.Assert.assertTrue("'" + msg.contents[162] + "' != '" + 172 + "'", value.equals(BigInteger.valueOf( 172L ) ) ); } else { value = value.longValue(); expected = 172L; @@ -1923,9 +1346,7 @@ public void test1() throws Throwable { } value = msg.contents[163]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[163] + "' != '" + 180 + "'", - value.equals(BigInteger.valueOf(180L))); + org.junit.Assert.assertTrue("'" + msg.contents[163] + "' != '" + 180 + "'", value.equals(BigInteger.valueOf( 180L ) ) ); } else { value = value.longValue(); expected = 180L; @@ -1933,9 +1354,7 @@ public void test1() throws Throwable { } value = msg.contents[164]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[164] + "' != '" + 150 + "'", - value.equals(BigInteger.valueOf(150L))); + org.junit.Assert.assertTrue("'" + msg.contents[164] + "' != '" + 150 + "'", value.equals(BigInteger.valueOf( 150L ) ) ); } else { value = value.longValue(); expected = 150L; @@ -1943,9 +1362,7 @@ public void test1() throws Throwable { } value = msg.contents[165]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[165] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.contents[165] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -1953,9 +1370,7 @@ public void test1() throws Throwable { } value = msg.contents[166]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[166] + "' != '" + 193 + "'", - value.equals(BigInteger.valueOf(193L))); + org.junit.Assert.assertTrue("'" + msg.contents[166] + "' != '" + 193 + "'", value.equals(BigInteger.valueOf( 193L ) ) ); } else { value = value.longValue(); expected = 193L; @@ -1963,9 +1378,7 @@ public void test1() throws Throwable { } value = msg.contents[167]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[167] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.contents[167] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -1973,9 +1386,7 @@ public void test1() throws Throwable { } value = msg.contents[168]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[168] + "' != '" + 209 + "'", - value.equals(BigInteger.valueOf(209L))); + org.junit.Assert.assertTrue("'" + msg.contents[168] + "' != '" + 209 + "'", value.equals(BigInteger.valueOf( 209L ) ) ); } else { value = value.longValue(); expected = 209L; @@ -1983,9 +1394,7 @@ public void test1() throws Throwable { } value = msg.contents[169]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[169] + "' != '" + 156 + "'", - value.equals(BigInteger.valueOf(156L))); + org.junit.Assert.assertTrue("'" + msg.contents[169] + "' != '" + 156 + "'", value.equals(BigInteger.valueOf( 156L ) ) ); } else { value = value.longValue(); expected = 156L; @@ -1993,9 +1402,7 @@ public void test1() throws Throwable { } value = msg.contents[170]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[170] + "' != '" + 20 + "'", - value.equals(BigInteger.valueOf(20L))); + org.junit.Assert.assertTrue("'" + msg.contents[170] + "' != '" + 20 + "'", value.equals(BigInteger.valueOf( 20L ) ) ); } else { value = value.longValue(); expected = 20L; @@ -2003,9 +1410,7 @@ public void test1() throws Throwable { } value = msg.contents[171]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[171] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.contents[171] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2013,9 +1418,7 @@ public void test1() throws Throwable { } value = msg.contents[172]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[172] + "' != '" + 18 + "'", - value.equals(BigInteger.valueOf(18L))); + org.junit.Assert.assertTrue("'" + msg.contents[172] + "' != '" + 18 + "'", value.equals(BigInteger.valueOf( 18L ) ) ); } else { value = value.longValue(); expected = 18L; @@ -2023,9 +1426,7 @@ public void test1() throws Throwable { } value = msg.contents[173]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[173] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[173] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -2033,9 +1434,7 @@ public void test1() throws Throwable { } value = msg.contents[174]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[174] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.contents[174] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2043,9 +1442,7 @@ public void test1() throws Throwable { } value = msg.contents[175]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[175] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.contents[175] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2053,9 +1450,7 @@ public void test1() throws Throwable { } value = msg.contents[176]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[176] + "' != '" + 115 + "'", - value.equals(BigInteger.valueOf(115L))); + org.junit.Assert.assertTrue("'" + msg.contents[176] + "' != '" + 115 + "'", value.equals(BigInteger.valueOf( 115L ) ) ); } else { value = value.longValue(); expected = 115L; @@ -2063,9 +1458,7 @@ public void test1() throws Throwable { } value = msg.contents[177]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[177] + "' != '" + 128 + "'", - value.equals(BigInteger.valueOf(128L))); + org.junit.Assert.assertTrue("'" + msg.contents[177] + "' != '" + 128 + "'", value.equals(BigInteger.valueOf( 128L ) ) ); } else { value = value.longValue(); expected = 128L; @@ -2073,9 +1466,7 @@ public void test1() throws Throwable { } value = msg.contents[178]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[178] + "' != '" + 175 + "'", - value.equals(BigInteger.valueOf(175L))); + org.junit.Assert.assertTrue("'" + msg.contents[178] + "' != '" + 175 + "'", value.equals(BigInteger.valueOf( 175L ) ) ); } else { value = value.longValue(); expected = 175L; @@ -2083,9 +1474,7 @@ public void test1() throws Throwable { } value = msg.contents[179]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[179] + "' != '" + 169 + "'", - value.equals(BigInteger.valueOf(169L))); + org.junit.Assert.assertTrue("'" + msg.contents[179] + "' != '" + 169 + "'", value.equals(BigInteger.valueOf( 169L ) ) ); } else { value = value.longValue(); expected = 169L; @@ -2093,9 +1482,7 @@ public void test1() throws Throwable { } value = msg.contents[180]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[180] + "' != '" + 116 + "'", - value.equals(BigInteger.valueOf(116L))); + org.junit.Assert.assertTrue("'" + msg.contents[180] + "' != '" + 116 + "'", value.equals(BigInteger.valueOf( 116L ) ) ); } else { value = value.longValue(); expected = 116L; @@ -2103,9 +1490,7 @@ public void test1() throws Throwable { } value = msg.contents[181]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[181] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.contents[181] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2113,9 +1498,7 @@ public void test1() throws Throwable { } value = msg.contents[182]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[182] + "' != '" + 100 + "'", - value.equals(BigInteger.valueOf(100L))); + org.junit.Assert.assertTrue("'" + msg.contents[182] + "' != '" + 100 + "'", value.equals(BigInteger.valueOf( 100L ) ) ); } else { value = value.longValue(); expected = 100L; @@ -2123,9 +1506,7 @@ public void test1() throws Throwable { } value = msg.contents[183]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[183] + "' != '" + 72 + "'", - value.equals(BigInteger.valueOf(72L))); + org.junit.Assert.assertTrue("'" + msg.contents[183] + "' != '" + 72 + "'", value.equals(BigInteger.valueOf( 72L ) ) ); } else { value = value.longValue(); expected = 72L; @@ -2133,9 +1514,7 @@ public void test1() throws Throwable { } value = msg.contents[184]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[184] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.contents[184] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2143,9 +1522,7 @@ public void test1() throws Throwable { } value = msg.contents[185]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[185] + "' != '" + 25 + "'", - value.equals(BigInteger.valueOf(25L))); + org.junit.Assert.assertTrue("'" + msg.contents[185] + "' != '" + 25 + "'", value.equals(BigInteger.valueOf( 25L ) ) ); } else { value = value.longValue(); expected = 25L; @@ -2153,9 +1530,7 @@ public void test1() throws Throwable { } value = msg.contents[186]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[186] + "' != '" + 14 + "'", - value.equals(BigInteger.valueOf(14L))); + org.junit.Assert.assertTrue("'" + msg.contents[186] + "' != '" + 14 + "'", value.equals(BigInteger.valueOf( 14L ) ) ); } else { value = value.longValue(); expected = 14L; @@ -2163,9 +1538,7 @@ public void test1() throws Throwable { } value = msg.contents[187]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[187] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.contents[187] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -2173,9 +1546,7 @@ public void test1() throws Throwable { } value = msg.contents[188]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[188] + "' != '" + 213 + "'", - value.equals(BigInteger.valueOf(213L))); + org.junit.Assert.assertTrue("'" + msg.contents[188] + "' != '" + 213 + "'", value.equals(BigInteger.valueOf( 213L ) ) ); } else { value = value.longValue(); expected = 213L; @@ -2183,9 +1554,7 @@ public void test1() throws Throwable { } value = msg.contents[189]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[189] + "' != '" + 145 + "'", - value.equals(BigInteger.valueOf(145L))); + org.junit.Assert.assertTrue("'" + msg.contents[189] + "' != '" + 145 + "'", value.equals(BigInteger.valueOf( 145L ) ) ); } else { value = value.longValue(); expected = 145L; @@ -2193,9 +1562,7 @@ public void test1() throws Throwable { } value = msg.contents[190]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[190] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.contents[190] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2203,9 +1570,7 @@ public void test1() throws Throwable { } value = msg.contents[191]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[191] + "' != '" + 137 + "'", - value.equals(BigInteger.valueOf(137L))); + org.junit.Assert.assertTrue("'" + msg.contents[191] + "' != '" + 137 + "'", value.equals(BigInteger.valueOf( 137L ) ) ); } else { value = value.longValue(); expected = 137L; @@ -2213,9 +1578,7 @@ public void test1() throws Throwable { } value = msg.contents[192]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[192] + "' != '" + 249 + "'", - value.equals(BigInteger.valueOf(249L))); + org.junit.Assert.assertTrue("'" + msg.contents[192] + "' != '" + 249 + "'", value.equals(BigInteger.valueOf( 249L ) ) ); } else { value = value.longValue(); expected = 249L; @@ -2223,9 +1586,7 @@ public void test1() throws Throwable { } value = msg.contents[193]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[193] + "' != '" + 54 + "'", - value.equals(BigInteger.valueOf(54L))); + org.junit.Assert.assertTrue("'" + msg.contents[193] + "' != '" + 54 + "'", value.equals(BigInteger.valueOf( 54L ) ) ); } else { value = value.longValue(); expected = 54L; @@ -2233,9 +1594,7 @@ public void test1() throws Throwable { } value = msg.contents[194]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[194] + "' != '" + 40 + "'", - value.equals(BigInteger.valueOf(40L))); + org.junit.Assert.assertTrue("'" + msg.contents[194] + "' != '" + 40 + "'", value.equals(BigInteger.valueOf( 40L ) ) ); } else { value = value.longValue(); expected = 40L; @@ -2243,9 +1602,7 @@ public void test1() throws Throwable { } value = msg.contents[195]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[195] + "' != '" + 174 + "'", - value.equals(BigInteger.valueOf(174L))); + org.junit.Assert.assertTrue("'" + msg.contents[195] + "' != '" + 174 + "'", value.equals(BigInteger.valueOf( 174L ) ) ); } else { value = value.longValue(); expected = 174L; @@ -2253,9 +1610,7 @@ public void test1() throws Throwable { } value = msg.contents[196]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[196] + "' != '" + 215 + "'", - value.equals(BigInteger.valueOf(215L))); + org.junit.Assert.assertTrue("'" + msg.contents[196] + "' != '" + 215 + "'", value.equals(BigInteger.valueOf( 215L ) ) ); } else { value = value.longValue(); expected = 215L; @@ -2263,9 +1618,7 @@ public void test1() throws Throwable { } value = msg.contents[197]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[197] + "' != '" + 148 + "'", - value.equals(BigInteger.valueOf(148L))); + org.junit.Assert.assertTrue("'" + msg.contents[197] + "' != '" + 148 + "'", value.equals(BigInteger.valueOf( 148L ) ) ); } else { value = value.longValue(); expected = 148L; @@ -2273,9 +1626,7 @@ public void test1() throws Throwable { } value = msg.contents[198]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[198] + "' != '" + 166 + "'", - value.equals(BigInteger.valueOf(166L))); + org.junit.Assert.assertTrue("'" + msg.contents[198] + "' != '" + 166 + "'", value.equals(BigInteger.valueOf( 166L ) ) ); } else { value = value.longValue(); expected = 166L; @@ -2283,9 +1634,7 @@ public void test1() throws Throwable { } value = msg.contents[199]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[199] + "' != '" + 190 + "'", - value.equals(BigInteger.valueOf(190L))); + org.junit.Assert.assertTrue("'" + msg.contents[199] + "' != '" + 190 + "'", value.equals(BigInteger.valueOf( 190L ) ) ); } else { value = value.longValue(); expected = 190L; @@ -2293,9 +1642,7 @@ public void test1() throws Throwable { } value = msg.contents[200]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[200] + "' != '" + 63 + "'", - value.equals(BigInteger.valueOf(63L))); + org.junit.Assert.assertTrue("'" + msg.contents[200] + "' != '" + 63 + "'", value.equals(BigInteger.valueOf( 63L ) ) ); } else { value = value.longValue(); expected = 63L; @@ -2303,9 +1650,7 @@ public void test1() throws Throwable { } value = msg.contents[201]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[201] + "' != '" + 118 + "'", - value.equals(BigInteger.valueOf(118L))); + org.junit.Assert.assertTrue("'" + msg.contents[201] + "' != '" + 118 + "'", value.equals(BigInteger.valueOf( 118L ) ) ); } else { value = value.longValue(); expected = 118L; @@ -2313,9 +1658,7 @@ public void test1() throws Throwable { } value = msg.contents[202]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[202] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.contents[202] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2323,9 +1666,7 @@ public void test1() throws Throwable { } value = msg.contents[203]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[203] + "' != '" + 165 + "'", - value.equals(BigInteger.valueOf(165L))); + org.junit.Assert.assertTrue("'" + msg.contents[203] + "' != '" + 165 + "'", value.equals(BigInteger.valueOf( 165L ) ) ); } else { value = value.longValue(); expected = 165L; @@ -2333,9 +1674,7 @@ public void test1() throws Throwable { } value = msg.contents[204]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[204] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.contents[204] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2343,9 +1682,7 @@ public void test1() throws Throwable { } value = msg.contents[205]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[205] + "' != '" + 74 + "'", - value.equals(BigInteger.valueOf(74L))); + org.junit.Assert.assertTrue("'" + msg.contents[205] + "' != '" + 74 + "'", value.equals(BigInteger.valueOf( 74L ) ) ); } else { value = value.longValue(); expected = 74L; @@ -2353,9 +1690,7 @@ public void test1() throws Throwable { } value = msg.contents[206]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[206] + "' != '" + 68 + "'", - value.equals(BigInteger.valueOf(68L))); + org.junit.Assert.assertTrue("'" + msg.contents[206] + "' != '" + 68 + "'", value.equals(BigInteger.valueOf( 68L ) ) ); } else { value = value.longValue(); expected = 68L; @@ -2363,9 +1698,7 @@ public void test1() throws Throwable { } value = msg.contents[207]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[207] + "' != '" + 200 + "'", - value.equals(BigInteger.valueOf(200L))); + org.junit.Assert.assertTrue("'" + msg.contents[207] + "' != '" + 200 + "'", value.equals(BigInteger.valueOf( 200L ) ) ); } else { value = value.longValue(); expected = 200L; @@ -2373,9 +1706,7 @@ public void test1() throws Throwable { } value = msg.contents[208]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[208] + "' != '" + 38 + "'", - value.equals(BigInteger.valueOf(38L))); + org.junit.Assert.assertTrue("'" + msg.contents[208] + "' != '" + 38 + "'", value.equals(BigInteger.valueOf( 38L ) ) ); } else { value = value.longValue(); expected = 38L; @@ -2383,9 +1714,7 @@ public void test1() throws Throwable { } value = msg.contents[209]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[209] + "' != '" + 139 + "'", - value.equals(BigInteger.valueOf(139L))); + org.junit.Assert.assertTrue("'" + msg.contents[209] + "' != '" + 139 + "'", value.equals(BigInteger.valueOf( 139L ) ) ); } else { value = value.longValue(); expected = 139L; @@ -2393,9 +1722,7 @@ public void test1() throws Throwable { } value = msg.contents[210]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[210] + "' != '" + 212 + "'", - value.equals(BigInteger.valueOf(212L))); + org.junit.Assert.assertTrue("'" + msg.contents[210] + "' != '" + 212 + "'", value.equals(BigInteger.valueOf( 212L ) ) ); } else { value = value.longValue(); expected = 212L; @@ -2403,9 +1730,7 @@ public void test1() throws Throwable { } value = msg.contents[211]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[211] + "' != '" + 112 + "'", - value.equals(BigInteger.valueOf(112L))); + org.junit.Assert.assertTrue("'" + msg.contents[211] + "' != '" + 112 + "'", value.equals(BigInteger.valueOf( 112L ) ) ); } else { value = value.longValue(); expected = 112L; @@ -2413,9 +1738,7 @@ public void test1() throws Throwable { } value = msg.contents[212]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[212] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.contents[212] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2423,9 +1746,7 @@ public void test1() throws Throwable { } value = msg.contents[213]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[213] + "' != '" + 167 + "'", - value.equals(BigInteger.valueOf(167L))); + org.junit.Assert.assertTrue("'" + msg.contents[213] + "' != '" + 167 + "'", value.equals(BigInteger.valueOf( 167L ) ) ); } else { value = value.longValue(); expected = 167L; @@ -2433,9 +1754,7 @@ public void test1() throws Throwable { } value = msg.contents[214]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[214] + "' != '" + 236 + "'", - value.equals(BigInteger.valueOf(236L))); + org.junit.Assert.assertTrue("'" + msg.contents[214] + "' != '" + 236 + "'", value.equals(BigInteger.valueOf( 236L ) ) ); } else { value = value.longValue(); expected = 236L; @@ -2443,9 +1762,7 @@ public void test1() throws Throwable { } value = msg.contents[215]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[215] + "' != '" + 255 + "'", - value.equals(BigInteger.valueOf(255L))); + org.junit.Assert.assertTrue("'" + msg.contents[215] + "' != '" + 255 + "'", value.equals(BigInteger.valueOf( 255L ) ) ); } else { value = value.longValue(); expected = 255L; @@ -2453,9 +1770,7 @@ public void test1() throws Throwable { } value = msg.contents[216]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[216] + "' != '" + 106 + "'", - value.equals(BigInteger.valueOf(106L))); + org.junit.Assert.assertTrue("'" + msg.contents[216] + "' != '" + 106 + "'", value.equals(BigInteger.valueOf( 106L ) ) ); } else { value = value.longValue(); expected = 106L; @@ -2463,9 +1778,7 @@ public void test1() throws Throwable { } value = msg.contents[217]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[217] + "' != '" + 92 + "'", - value.equals(BigInteger.valueOf(92L))); + org.junit.Assert.assertTrue("'" + msg.contents[217] + "' != '" + 92 + "'", value.equals(BigInteger.valueOf( 92L ) ) ); } else { value = value.longValue(); expected = 92L; @@ -2473,9 +1786,7 @@ public void test1() throws Throwable { } value = msg.contents[218]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[218] + "' != '" + 132 + "'", - value.equals(BigInteger.valueOf(132L))); + org.junit.Assert.assertTrue("'" + msg.contents[218] + "' != '" + 132 + "'", value.equals(BigInteger.valueOf( 132L ) ) ); } else { value = value.longValue(); expected = 132L; @@ -2483,9 +1794,7 @@ public void test1() throws Throwable { } value = msg.contents[219]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[219] + "' != '" + 59 + "'", - value.equals(BigInteger.valueOf(59L))); + org.junit.Assert.assertTrue("'" + msg.contents[219] + "' != '" + 59 + "'", value.equals(BigInteger.valueOf( 59L ) ) ); } else { value = value.longValue(); expected = 59L; @@ -2493,9 +1802,7 @@ public void test1() throws Throwable { } value = msg.contents[220]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[220] + "' != '" + 61 + "'", - value.equals(BigInteger.valueOf(61L))); + org.junit.Assert.assertTrue("'" + msg.contents[220] + "' != '" + 61 + "'", value.equals(BigInteger.valueOf( 61L ) ) ); } else { value = value.longValue(); expected = 61L; @@ -2503,9 +1810,7 @@ public void test1() throws Throwable { } value = msg.contents[221]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[221] + "' != '" + 233 + "'", - value.equals(BigInteger.valueOf(233L))); + org.junit.Assert.assertTrue("'" + msg.contents[221] + "' != '" + 233 + "'", value.equals(BigInteger.valueOf( 233L ) ) ); } else { value = value.longValue(); expected = 233L; @@ -2513,9 +1818,7 @@ public void test1() throws Throwable { } value = msg.contents[222]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[222] + "' != '" + 3 + "'", - value.equals(BigInteger.valueOf(3L))); + org.junit.Assert.assertTrue("'" + msg.contents[222] + "' != '" + 3 + "'", value.equals(BigInteger.valueOf( 3L ) ) ); } else { value = value.longValue(); expected = 3L; @@ -2523,9 +1826,7 @@ public void test1() throws Throwable { } value = msg.contents[223]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[223] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.contents[223] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -2533,9 +1834,7 @@ public void test1() throws Throwable { } value = msg.contents[224]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[224] + "' != '" + 158 + "'", - value.equals(BigInteger.valueOf(158L))); + org.junit.Assert.assertTrue("'" + msg.contents[224] + "' != '" + 158 + "'", value.equals(BigInteger.valueOf( 158L ) ) ); } else { value = value.longValue(); expected = 158L; @@ -2543,9 +1842,7 @@ public void test1() throws Throwable { } value = msg.contents[225]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[225] + "' != '" + 83 + "'", - value.equals(BigInteger.valueOf(83L))); + org.junit.Assert.assertTrue("'" + msg.contents[225] + "' != '" + 83 + "'", value.equals(BigInteger.valueOf( 83L ) ) ); } else { value = value.longValue(); expected = 83L; @@ -2553,9 +1850,7 @@ public void test1() throws Throwable { } value = msg.contents[226]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[226] + "' != '" + 134 + "'", - value.equals(BigInteger.valueOf(134L))); + org.junit.Assert.assertTrue("'" + msg.contents[226] + "' != '" + 134 + "'", value.equals(BigInteger.valueOf( 134L ) ) ); } else { value = value.longValue(); expected = 134L; @@ -2563,9 +1858,7 @@ public void test1() throws Throwable { } value = msg.contents[227]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[227] + "' != '" + 246 + "'", - value.equals(BigInteger.valueOf(246L))); + org.junit.Assert.assertTrue("'" + msg.contents[227] + "' != '" + 246 + "'", value.equals(BigInteger.valueOf( 246L ) ) ); } else { value = value.longValue(); expected = 246L; @@ -2573,9 +1866,7 @@ public void test1() throws Throwable { } value = msg.contents[228]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[228] + "' != '" + 154 + "'", - value.equals(BigInteger.valueOf(154L))); + org.junit.Assert.assertTrue("'" + msg.contents[228] + "' != '" + 154 + "'", value.equals(BigInteger.valueOf( 154L ) ) ); } else { value = value.longValue(); expected = 154L; @@ -2583,9 +1874,7 @@ public void test1() throws Throwable { } value = msg.contents[229]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[229] + "' != '" + 17 + "'", - value.equals(BigInteger.valueOf(17L))); + org.junit.Assert.assertTrue("'" + msg.contents[229] + "' != '" + 17 + "'", value.equals(BigInteger.valueOf( 17L ) ) ); } else { value = value.longValue(); expected = 17L; @@ -2593,9 +1882,7 @@ public void test1() throws Throwable { } value = msg.contents[230]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[230] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.contents[230] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2603,9 +1890,7 @@ public void test1() throws Throwable { } value = msg.contents[231]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[231] + "' != '" + 6 + "'", - value.equals(BigInteger.valueOf(6L))); + org.junit.Assert.assertTrue("'" + msg.contents[231] + "' != '" + 6 + "'", value.equals(BigInteger.valueOf( 6L ) ) ); } else { value = value.longValue(); expected = 6L; @@ -2613,9 +1898,7 @@ public void test1() throws Throwable { } value = msg.contents[232]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[232] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.contents[232] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2623,9 +1906,7 @@ public void test1() throws Throwable { } value = msg.contents[233]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[233] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.contents[233] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -2633,9 +1914,7 @@ public void test1() throws Throwable { } value = msg.contents[234]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[234] + "' != '" + 19 + "'", - value.equals(BigInteger.valueOf(19L))); + org.junit.Assert.assertTrue("'" + msg.contents[234] + "' != '" + 19 + "'", value.equals(BigInteger.valueOf( 19L ) ) ); } else { value = value.longValue(); expected = 19L; @@ -2643,9 +1922,7 @@ public void test1() throws Throwable { } value = msg.contents[235]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[235] + "' != '" + 216 + "'", - value.equals(BigInteger.valueOf(216L))); + org.junit.Assert.assertTrue("'" + msg.contents[235] + "' != '" + 216 + "'", value.equals(BigInteger.valueOf( 216L ) ) ); } else { value = value.longValue(); expected = 216L; @@ -2653,9 +1930,7 @@ public void test1() throws Throwable { } value = msg.contents[236]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[236] + "' != '" + 70 + "'", - value.equals(BigInteger.valueOf(70L))); + org.junit.Assert.assertTrue("'" + msg.contents[236] + "' != '" + 70 + "'", value.equals(BigInteger.valueOf( 70L ) ) ); } else { value = value.longValue(); expected = 70L; @@ -2663,9 +1938,7 @@ public void test1() throws Throwable { } value = msg.contents[237]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[237] + "' != '" + 71 + "'", - value.equals(BigInteger.valueOf(71L))); + org.junit.Assert.assertTrue("'" + msg.contents[237] + "' != '" + 71 + "'", value.equals(BigInteger.valueOf( 71L ) ) ); } else { value = value.longValue(); expected = 71L; @@ -2673,9 +1946,7 @@ public void test1() throws Throwable { } value = msg.contents[238]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[238] + "' != '" + 161 + "'", - value.equals(BigInteger.valueOf(161L))); + org.junit.Assert.assertTrue("'" + msg.contents[238] + "' != '" + 161 + "'", value.equals(BigInteger.valueOf( 161L ) ) ); } else { value = value.longValue(); expected = 161L; @@ -2683,9 +1954,7 @@ public void test1() throws Throwable { } value = msg.contents[239]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[239] + "' != '" + 184 + "'", - value.equals(BigInteger.valueOf(184L))); + org.junit.Assert.assertTrue("'" + msg.contents[239] + "' != '" + 184 + "'", value.equals(BigInteger.valueOf( 184L ) ) ); } else { value = value.longValue(); expected = 184L; @@ -2693,9 +1962,7 @@ public void test1() throws Throwable { } value = msg.contents[240]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[240] + "' != '" + 5 + "'", - value.equals(BigInteger.valueOf(5L))); + org.junit.Assert.assertTrue("'" + msg.contents[240] + "' != '" + 5 + "'", value.equals(BigInteger.valueOf( 5L ) ) ); } else { value = value.longValue(); expected = 5L; @@ -2703,9 +1970,7 @@ public void test1() throws Throwable { } value = msg.contents[241]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[241] + "' != '" + 177 + "'", - value.equals(BigInteger.valueOf(177L))); + org.junit.Assert.assertTrue("'" + msg.contents[241] + "' != '" + 177 + "'", value.equals(BigInteger.valueOf( 177L ) ) ); } else { value = value.longValue(); expected = 177L; @@ -2713,9 +1978,7 @@ public void test1() throws Throwable { } value = msg.contents[242]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[242] + "' != '" + 45 + "'", - value.equals(BigInteger.valueOf(45L))); + org.junit.Assert.assertTrue("'" + msg.contents[242] + "' != '" + 45 + "'", value.equals(BigInteger.valueOf( 45L ) ) ); } else { value = value.longValue(); expected = 45L; @@ -2723,9 +1986,7 @@ public void test1() throws Throwable { } value = msg.contents[243]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[243] + "' != '" + 37 + "'", - value.equals(BigInteger.valueOf(37L))); + org.junit.Assert.assertTrue("'" + msg.contents[243] + "' != '" + 37 + "'", value.equals(BigInteger.valueOf( 37L ) ) ); } else { value = value.longValue(); expected = 37L; @@ -2733,9 +1994,7 @@ public void test1() throws Throwable { } value = msg.contents[244]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[244] + "' != '" + 98 + "'", - value.equals(BigInteger.valueOf(98L))); + org.junit.Assert.assertTrue("'" + msg.contents[244] + "' != '" + 98 + "'", value.equals(BigInteger.valueOf( 98L ) ) ); } else { value = value.longValue(); expected = 98L; @@ -2743,9 +2002,7 @@ public void test1() throws Throwable { } value = msg.contents[245]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[245] + "' != '" + 56 + "'", - value.equals(BigInteger.valueOf(56L))); + org.junit.Assert.assertTrue("'" + msg.contents[245] + "' != '" + 56 + "'", value.equals(BigInteger.valueOf( 56L ) ) ); } else { value = value.longValue(); expected = 56L; @@ -2753,9 +2010,7 @@ public void test1() throws Throwable { } value = msg.contents[246]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[246] + "' != '" + 149 + "'", - value.equals(BigInteger.valueOf(149L))); + org.junit.Assert.assertTrue("'" + msg.contents[246] + "' != '" + 149 + "'", value.equals(BigInteger.valueOf( 149L ) ) ); } else { value = value.longValue(); expected = 149L; @@ -2763,9 +2018,7 @@ public void test1() throws Throwable { } value = msg.contents[247]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[247] + "' != '" + 0 + "'", - value.equals(BigInteger.valueOf(0L))); + org.junit.Assert.assertTrue("'" + msg.contents[247] + "' != '" + 0 + "'", value.equals(BigInteger.valueOf( 0L ) ) ); } else { value = value.longValue(); expected = 0L; @@ -2773,9 +2026,7 @@ public void test1() throws Throwable { } value = msg.contents[248]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[248] + "' != '" + 73 + "'", - value.equals(BigInteger.valueOf(73L))); + org.junit.Assert.assertTrue("'" + msg.contents[248] + "' != '" + 73 + "'", value.equals(BigInteger.valueOf( 73L ) ) ); } else { value = value.longValue(); expected = 73L; @@ -2783,9 +2034,7 @@ public void test1() throws Throwable { } value = msg.contents[249]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[249] + "' != '" + 221 + "'", - value.equals(BigInteger.valueOf(221L))); + org.junit.Assert.assertTrue("'" + msg.contents[249] + "' != '" + 221 + "'", value.equals(BigInteger.valueOf( 221L ) ) ); } else { value = value.longValue(); expected = 221L; @@ -2793,9 +2042,7 @@ public void test1() throws Throwable { } value = msg.contents[250]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[250] + "' != '" + 105 + "'", - value.equals(BigInteger.valueOf(105L))); + org.junit.Assert.assertTrue("'" + msg.contents[250] + "' != '" + 105 + "'", value.equals(BigInteger.valueOf( 105L ) ) ); } else { value = value.longValue(); expected = 105L; @@ -2803,9 +2050,7 @@ public void test1() throws Throwable { } value = msg.contents[251]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[251] + "' != '" + 239 + "'", - value.equals(BigInteger.valueOf(239L))); + org.junit.Assert.assertTrue("'" + msg.contents[251] + "' != '" + 239 + "'", value.equals(BigInteger.valueOf( 239L ) ) ); } else { value = value.longValue(); expected = 239L; @@ -2813,9 +2058,7 @@ public void test1() throws Throwable { } value = msg.contents[252]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[252] + "' != '" + 168 + "'", - value.equals(BigInteger.valueOf(168L))); + org.junit.Assert.assertTrue("'" + msg.contents[252] + "' != '" + 168 + "'", value.equals(BigInteger.valueOf( 168L ) ) ); } else { value = value.longValue(); expected = 168L; @@ -2823,9 +2066,7 @@ public void test1() throws Throwable { } value = msg.contents[253]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[253] + "' != '" + 205 + "'", - value.equals(BigInteger.valueOf(205L))); + org.junit.Assert.assertTrue("'" + msg.contents[253] + "' != '" + 205 + "'", value.equals(BigInteger.valueOf( 205L ) ) ); } else { value = value.longValue(); expected = 205L; @@ -2833,9 +2074,7 @@ public void test1() throws Throwable { } value = msg.contents[254]; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.contents[254] + "' != '" + 85 + "'", - value.equals(BigInteger.valueOf(85L))); + org.junit.Assert.assertTrue("'" + msg.contents[254] + "' != '" + 85 + "'", value.equals(BigInteger.valueOf( 85L ) ) ); } else { value = value.longValue(); expected = 85L; diff --git a/java/test/auto_check_sbp_vehicle_MsgOdometryTest.java b/java/test/auto_check_sbp_vehicle_MsgOdometryTest.java index 99e29c52b5..6cb273f6d3 100644 --- a/java/test/auto_check_sbp_vehicle_MsgOdometryTest.java +++ b/java/test/auto_check_sbp_vehicle_MsgOdometryTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/vehicle/test_MsgOdometry.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/vehicle/test_MsgOdometry.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.vehicle.MsgOdometry; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_vehicle_MsgOdometryTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_vehicle_MsgOdometryTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_vehicle_MsgOdometryTest.test1"); - byte[] payload = - new byte[] { - (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 7, (byte) 0, (byte) 0, (byte) 0, - (byte) 1, - }; - SBPMessage sbp = new SBPMessage(0x42, 0x903, payload); - MsgOdometry msg = new MsgOdometry(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_vehicle_MsgOdometryTest.test1"); + byte[] payload = new byte[] {(byte)8,(byte)0,(byte)0,(byte)0,(byte)7,(byte)0,(byte)0,(byte)0,(byte)1, }; + SBPMessage sbp = new SBPMessage( 0x42, 0x903, payload ); + MsgOdometry msg = new MsgOdometry( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -49,8 +50,7 @@ public void test1() throws Throwable { } value = msg.tow; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.tow + "' != '" + 8 + "'", value.equals(BigInteger.valueOf(8L))); + org.junit.Assert.assertTrue("'" + msg.tow + "' != '" + 8 + "'", value.equals(BigInteger.valueOf( 8L ) ) ); } else { value = value.longValue(); expected = 8L; @@ -58,8 +58,7 @@ public void test1() throws Throwable { } value = msg.velocity; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.velocity + "' != '" + 7 + "'", value.equals(BigInteger.valueOf(7L))); + org.junit.Assert.assertTrue("'" + msg.velocity + "' != '" + 7 + "'", value.equals(BigInteger.valueOf( 7L ) ) ); } else { value = value.longValue(); expected = 7L; diff --git a/java/test/auto_check_sbp_vehicle_MsgWheeltickTest.java b/java/test/auto_check_sbp_vehicle_MsgWheeltickTest.java index d7407fbded..0ae9ccd19b 100644 --- a/java/test/auto_check_sbp_vehicle_MsgWheeltickTest.java +++ b/java/test/auto_check_sbp_vehicle_MsgWheeltickTest.java @@ -1,4 +1,5 @@ -/* Copyright (C) 2015-2022 Swift Navigation Inc. +/* + * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must @@ -8,17 +9,21 @@ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. */ + package com.swiftnav.sbp.test; -// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/vehicle/test_MsgWheeltick.yaml by -// generate.py. Do not modify by hand! +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/vehicle/test_MsgWheeltick.yaml by generate.py. Do not modify by hand! + +import java.math.BigInteger; + +import org.junit.Test; +import org.json.JSONObject; import com.swiftnav.sbp.SBPMessage; + import com.swiftnav.sbp.vehicle.MsgWheeltick; -import java.math.BigInteger; -import org.json.JSONObject; -import org.junit.Test; + public class auto_check_sbp_vehicle_MsgWheeltickTest { @@ -27,21 +32,17 @@ public class auto_check_sbp_vehicle_MsgWheeltickTest { @Test public void test1() throws Throwable { - if (debug) System.out.format("%n%s%n", "auto_check_sbp_vehicle_MsgWheeltickTest.test1"); - byte[] payload = - new byte[] { - (byte) 254, (byte) 27, (byte) 114, (byte) 44, (byte) 26, (byte) 0, (byte) 0, - (byte) 0, (byte) 1, (byte) 146, (byte) 225, (byte) 51, (byte) 9, (byte) 210, - }; - SBPMessage sbp = new SBPMessage(0x456b, 0x904, payload); - MsgWheeltick msg = new MsgWheeltick(sbp); + if (debug) + System.out.format("%n%s%n", "auto_check_sbp_vehicle_MsgWheeltickTest.test1"); + byte[] payload = new byte[] {(byte)254,(byte)27,(byte)114,(byte)44,(byte)26,(byte)0,(byte)0,(byte)0,(byte)1,(byte)146,(byte)225,(byte)51,(byte)9,(byte)210, }; + SBPMessage sbp = new SBPMessage( 0x456b, 0x904, payload ); + MsgWheeltick msg = new MsgWheeltick( sbp ); JSONObject json = msg.toJSON(); Number value; Number expected; value = msg.flags; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf(1L))); + org.junit.Assert.assertTrue("'" + msg.flags + "' != '" + 1 + "'", value.equals(BigInteger.valueOf( 1L ) ) ); } else { value = value.longValue(); expected = 1L; @@ -49,9 +50,7 @@ public void test1() throws Throwable { } value = msg.source; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.source + "' != '" + 146 + "'", - value.equals(BigInteger.valueOf(146L))); + org.junit.Assert.assertTrue("'" + msg.source + "' != '" + 146 + "'", value.equals(BigInteger.valueOf( 146L ) ) ); } else { value = value.longValue(); expected = 146L; @@ -59,9 +58,7 @@ public void test1() throws Throwable { } value = msg.ticks; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.ticks + "' != '" + -771148831 + "'", - value.equals(BigInteger.valueOf(-771148831L))); + org.junit.Assert.assertTrue("'" + msg.ticks + "' != '" + -771148831 + "'", value.equals(BigInteger.valueOf( -771148831L ) ) ); } else { value = value.longValue(); expected = -771148831L; @@ -69,9 +66,7 @@ public void test1() throws Throwable { } value = msg.time; if (value instanceof BigInteger) { - org.junit.Assert.assertTrue( - "'" + msg.time + "' != '" + 112414825470L + "'", - value.equals(new BigInteger("112414825470"))); + org.junit.Assert.assertTrue("'" + msg.time + "' != '" + 112414825470L + "'", value.equals( new BigInteger( "112414825470" ) ) ); } else { value = value.longValue(); expected = 112414825470L; diff --git a/javascript/sbp/integrity.js b/javascript/sbp/integrity.js index 883971014a..3f2bb99333 100644 --- a/javascript/sbp/integrity.js +++ b/javascript/sbp/integrity.js @@ -74,7 +74,76 @@ IntegritySSRHeader.prototype.fieldSpec.push(['tile_id', 'writeUInt16LE', 2]); IntegritySSRHeader.prototype.fieldSpec.push(['chain_id', 'writeUInt8', 1]); /** - * SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BB9). + * SBP class for message MSG_SSR_FLAG_HIGH_LEVEL_DEP_A (0x0BB9). + * + * Deprecated. + * + * Fields in the SBP payload (`sbp.payload`): + * @field obs_time GPSTimeSec GNSS reference time of the observation used to generate the flag. + * @field corr_time GPSTimeSec GNSS reference time of the correction associated to the flag. + * @field ssr_sol_id number (unsigned 8-bit int, 1 byte) SSR Solution ID. + * @field tile_set_id number (unsigned 16-bit int, 2 bytes) Unique identifier of the set this tile belongs to. + * @field tile_id number (unsigned 16-bit int, 2 bytes) Unique identifier of this tile in the tile set. + * @field chain_id number (unsigned 8-bit int, 1 byte) Chain and type of flag. + * @field use_gps_sat number (unsigned 8-bit int, 1 byte) Use GPS satellites. + * @field use_gal_sat number (unsigned 8-bit int, 1 byte) Use GAL satellites. + * @field use_bds_sat number (unsigned 8-bit int, 1 byte) Use BDS satellites. + * @field use_qzss_sat number (unsigned 8-bit int, 1 byte) Use QZSS satellites. + * @field reserved array Reserved + * @field use_tropo_grid_points number (unsigned 8-bit int, 1 byte) Use tropo grid points. + * @field use_iono_grid_points number (unsigned 8-bit int, 1 byte) Use iono grid points. + * @field use_iono_tile_sat_los number (unsigned 8-bit int, 1 byte) Use iono tile satellite LoS. + * @field use_iono_grid_point_sat_los number (unsigned 8-bit int, 1 byte) Use iono grid point satellite LoS. + * + * @param sbp An SBP object with a payload to be decoded. + */ +let MsgSsrFlagHighLevelDepA = function (sbp, fields) { + SBP.call(this, sbp); + this.messageType = "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"; + this.fields = (fields || this.parser.parse(sbp.payload)); + + return this; +}; +MsgSsrFlagHighLevelDepA.prototype = Object.create(SBP.prototype); +MsgSsrFlagHighLevelDepA.prototype.messageType = "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"; +MsgSsrFlagHighLevelDepA.prototype.msg_type = 0x0BB9; +MsgSsrFlagHighLevelDepA.prototype.constructor = MsgSsrFlagHighLevelDepA; +MsgSsrFlagHighLevelDepA.prototype.parser = new Parser() + .endianess('little') + .nest('obs_time', { type: GPSTimeSec.prototype.parser }) + .nest('corr_time', { type: GPSTimeSec.prototype.parser }) + .uint8('ssr_sol_id') + .uint16('tile_set_id') + .uint16('tile_id') + .uint8('chain_id') + .uint8('use_gps_sat') + .uint8('use_gal_sat') + .uint8('use_bds_sat') + .uint8('use_qzss_sat') + .array('reserved', { length: 5, type: 'uint8' }) + .uint8('use_tropo_grid_points') + .uint8('use_iono_grid_points') + .uint8('use_iono_tile_sat_los') + .uint8('use_iono_grid_point_sat_los'); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec = []; +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['obs_time', GPSTimeSec.prototype.fieldSpec]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['corr_time', GPSTimeSec.prototype.fieldSpec]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['ssr_sol_id', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['tile_set_id', 'writeUInt16LE', 2]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['tile_id', 'writeUInt16LE', 2]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['chain_id', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_gps_sat', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_gal_sat', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_bds_sat', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_qzss_sat', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['reserved', 'array', 'writeUInt8', function () { return 1; }, 5]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_tropo_grid_points', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_iono_grid_points', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_iono_tile_sat_los', 'writeUInt8', 1]); +MsgSsrFlagHighLevelDepA.prototype.fieldSpec.push(['use_iono_grid_point_sat_los', 'writeUInt8', 1]); + +/** + * SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BBA). * * Integrity monitoring flags for multiple aggregated elements. An element could be * a satellite, SSR grid point, or SSR tile. A group of aggregated elements being @@ -93,7 +162,8 @@ IntegritySSRHeader.prototype.fieldSpec.push(['chain_id', 'writeUInt8', 1]); * * Fields in the SBP payload (`sbp.payload`): * @field obs_time GPSTimeSec GNSS reference time of the observation used to generate the flag. - * @field corr_time GPSTimeSec GNSS reference time of the correction associated to the flag. + * @field iono_corr_time GPSTimeSec GNSS reference time of the ionospheric correction associated to the flag. + * @field sat_corr_time GPSTimeSec GNSS reference time of the satellite correction associated to the flag. * @field ssr_sol_id number (unsigned 8-bit int, 1 byte) SSR Solution ID. * @field tile_set_id number (unsigned 16-bit int, 2 bytes) Unique identifier of the set this tile belongs to. * @field tile_id number (unsigned 16-bit int, 2 bytes) Unique identifier of this tile in the tile set. @@ -119,12 +189,13 @@ let MsgSsrFlagHighLevel = function (sbp, fields) { }; MsgSsrFlagHighLevel.prototype = Object.create(SBP.prototype); MsgSsrFlagHighLevel.prototype.messageType = "MSG_SSR_FLAG_HIGH_LEVEL"; -MsgSsrFlagHighLevel.prototype.msg_type = 0x0BB9; +MsgSsrFlagHighLevel.prototype.msg_type = 0x0BBA; MsgSsrFlagHighLevel.prototype.constructor = MsgSsrFlagHighLevel; MsgSsrFlagHighLevel.prototype.parser = new Parser() .endianess('little') .nest('obs_time', { type: GPSTimeSec.prototype.parser }) - .nest('corr_time', { type: GPSTimeSec.prototype.parser }) + .nest('iono_corr_time', { type: GPSTimeSec.prototype.parser }) + .nest('sat_corr_time', { type: GPSTimeSec.prototype.parser }) .uint8('ssr_sol_id') .uint16('tile_set_id') .uint16('tile_id') @@ -140,7 +211,8 @@ MsgSsrFlagHighLevel.prototype.parser = new Parser() .uint8('use_iono_grid_point_sat_los'); MsgSsrFlagHighLevel.prototype.fieldSpec = []; MsgSsrFlagHighLevel.prototype.fieldSpec.push(['obs_time', GPSTimeSec.prototype.fieldSpec]); -MsgSsrFlagHighLevel.prototype.fieldSpec.push(['corr_time', GPSTimeSec.prototype.fieldSpec]); +MsgSsrFlagHighLevel.prototype.fieldSpec.push(['iono_corr_time', GPSTimeSec.prototype.fieldSpec]); +MsgSsrFlagHighLevel.prototype.fieldSpec.push(['sat_corr_time', GPSTimeSec.prototype.fieldSpec]); MsgSsrFlagHighLevel.prototype.fieldSpec.push(['ssr_sol_id', 'writeUInt8', 1]); MsgSsrFlagHighLevel.prototype.fieldSpec.push(['tile_set_id', 'writeUInt16LE', 2]); MsgSsrFlagHighLevel.prototype.fieldSpec.push(['tile_id', 'writeUInt16LE', 2]); @@ -379,7 +451,9 @@ MsgAcknowledge.prototype.fieldSpec.push(['solution_id', 'writeUInt8', 1]); module.exports = { IntegritySSRHeader: IntegritySSRHeader, - 0x0BB9: MsgSsrFlagHighLevel, + 0x0BB9: MsgSsrFlagHighLevelDepA, + MsgSsrFlagHighLevelDepA: MsgSsrFlagHighLevelDepA, + 0x0BBA: MsgSsrFlagHighLevel, MsgSsrFlagHighLevel: MsgSsrFlagHighLevel, 0x0BBD: MsgSsrFlagSatellites, MsgSsrFlagSatellites: MsgSsrFlagSatellites, diff --git a/jsonschema/MsgSsrFlagHighLevel.json b/jsonschema/MsgSsrFlagHighLevel.json index 70005ae4a3..8a5090a8ef 100644 --- a/jsonschema/MsgSsrFlagHighLevel.json +++ b/jsonschema/MsgSsrFlagHighLevel.json @@ -12,28 +12,30 @@ ], "$schema": "http://json-schema.org/draft-06/schema#", "$id": "#MsgSsrFlagHighLevel", - "title":"MsgSsrFlagHighLevel", - "description":"Integrity monitoring flags for multiple aggregated elements. An element could be a satellite, SSR grid point, or SSR tile. A group of aggregated elements being monitored for integrity could refer to:,\n,\n- Satellites in a particular {GPS, GAL, BDS, QZSS} constellation.,\n,\n- Satellites in the line-of-sight of a particular SSR tile.,\n,\n- Satellites in the line-of-sight of a particular SSR grid point.,\n,\nThe integrity usage for a group of aggregated elements varies according to the integrity flag of the satellites comprising that group.,\n,\nSSR_INTEGRITY_USAGE_NOMINAL: All satellites received passed the integrity check and have flag INTEGRITY_FLAG_OK.,\n,\nSSR_INTEGRITY_USAGE_WARNING: A limited number of elements in the group failed the integrity check. Refer to more granular integrity messages for details on the specific failing elements.,\n,\nSSR_INTEGRITY_USAGE_ALERT: Most elements in the group failed the integrity check, do not use for positioning.,\n,\nSSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of elements in the group.\n", + "title": "MsgSsrFlagHighLevel", + "description": "Integrity monitoring flags for multiple aggregated elements. An element could be a satellite, SSR grid point, or SSR tile. A group of aggregated elements being monitored for integrity could refer to:,\n,\n- Satellites in a particular {GPS, GAL, BDS, QZSS} constellation.,\n,\n- Satellites in the line-of-sight of a particular SSR tile.,\n,\n- Satellites in the line-of-sight of a particular SSR grid point.,\n,\nThe integrity usage for a group of aggregated elements varies according to the integrity flag of the satellites comprising that group.,\n,\nSSR_INTEGRITY_USAGE_NOMINAL: All satellites received passed the integrity check and have flag INTEGRITY_FLAG_OK.,\n,\nSSR_INTEGRITY_USAGE_WARNING: A limited number of elements in the group failed the integrity check. Refer to more granular integrity messages for details on the specific failing elements.,\n,\nSSR_INTEGRITY_USAGE_ALERT: Most elements in the group failed the integrity check, do not use for positioning.,\n,\nSSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of elements in the group.\n", "type": "object", "properties": { - "obs_time": {"$ref": "GpsTimeSec.json"}, - "corr_time": {"$ref": "GpsTimeSec.json"}, - "ssr_sol_id": {"type": "integer"}, - "tile_set_id": {"type": "integer"}, - "tile_id": {"type": "integer"}, - "chain_id": {"type": "integer"}, - "use_gps_sat": {"type": "integer"}, - "use_gal_sat": {"type": "integer"}, - "use_bds_sat": {"type": "integer"}, - "use_qzss_sat": {"type": "integer"}, - "use_tropo_grid_points": {"type": "integer"}, - "use_iono_grid_points": {"type": "integer"}, - "use_iono_tile_sat_los": {"type": "integer"}, - "use_iono_grid_point_sat_los": {"type": "integer"} + "obs_time": { "$ref": "GpsTimeSec.json" }, + "iono_corr_time": { "$ref": "GpsTimeSec.json" }, + "sat_corr_time": { "$ref": "GpsTimeSec.json" }, + "ssr_sol_id": { "type": "integer" }, + "tile_set_id": { "type": "integer" }, + "tile_id": { "type": "integer" }, + "chain_id": { "type": "integer" }, + "use_gps_sat": { "type": "integer" }, + "use_gal_sat": { "type": "integer" }, + "use_bds_sat": { "type": "integer" }, + "use_qzss_sat": { "type": "integer" }, + "use_tropo_grid_points": { "type": "integer" }, + "use_iono_grid_points": { "type": "integer" }, + "use_iono_tile_sat_los": { "type": "integer" }, + "use_iono_grid_point_sat_los": { "type": "integer" } }, "required": [ "obs_time", - "corr_time", + "iono_corr_time", + "sat_corr_time", "ssr_sol_id", "tile_set_id", "tile_id", diff --git a/kaitai/ksy/integrity.ksy b/kaitai/ksy/integrity.ksy index bb34cfda71..a74112ff3e 100644 --- a/kaitai/ksy/integrity.ksy +++ b/kaitai/ksy/integrity.ksy @@ -50,7 +50,74 @@ types: doc: | Chain and type of flag. type: u1 - + + msg_ssr_flag_high_level_dep_a: + doc: | + Deprecated. + seq: + - id: obs_time + doc: | + GNSS reference time of the observation used to generate the flag. + type: gnss::gps_time_sec + - id: corr_time + doc: | + GNSS reference time of the correction associated to the flag. + type: gnss::gps_time_sec + - id: ssr_sol_id + doc: | + SSR Solution ID. + type: u1 + - id: tile_set_id + doc: | + Unique identifier of the set this tile belongs to. + type: u2 + - id: tile_id + doc: | + Unique identifier of this tile in the tile set. + type: u2 + - id: chain_id + doc: | + Chain and type of flag. + type: u1 + - id: use_gps_sat + doc: | + Use GPS satellites. + type: u1 + - id: use_gal_sat + doc: | + Use GAL satellites. + type: u1 + - id: use_bds_sat + doc: | + Use BDS satellites. + type: u1 + - id: use_qzss_sat + doc: | + Use QZSS satellites. + type: u1 + - id: reserved + doc: | + Reserved + type: u1 + repeat: expr + repeat-expr: 5 + - id: use_tropo_grid_points + doc: | + Use tropo grid points. + type: u1 + - id: use_iono_grid_points + doc: | + Use iono grid points. + type: u1 + - id: use_iono_tile_sat_los + doc: | + Use iono tile satellite LoS. + type: u1 + - id: use_iono_grid_point_sat_los + doc: | + Use iono grid point satellite LoS. + type: u1 + msg_ssr_flag_high_level: doc: | Integrity monitoring flags for multiple aggregated elements. An element @@ -83,9 +150,15 @@ types: doc: | GNSS reference time of the observation used to generate the flag. type: gnss::gps_time_sec - - id: corr_time + - id: iono_corr_time doc: | - GNSS reference time of the correction associated to the flag. + GNSS reference time of the atmospheric correction associated to the + flag. + type: gnss::gps_time_sec + - id: sat_corr_time + doc: | + GNSS reference time of the satellite correction associated to the + flag. type: gnss::gps_time_sec - id: ssr_sol_id doc: | @@ -141,7 +214,7 @@ types: doc: | Use iono grid point satellite LoS. type: u1 - + msg_ssr_flag_satellites: seq: - id: obs_time @@ -177,7 +250,7 @@ types: List of faulty satellites. type: u1 repeat: eos - + msg_ssr_flag_tropo_grid_points: seq: - id: header @@ -193,7 +266,7 @@ types: List of faulty grid points. type: u2 repeat: eos - + msg_ssr_flag_iono_grid_points: seq: - id: header @@ -209,7 +282,7 @@ types: List of faulty grid points. type: u2 repeat: eos - + msg_ssr_flag_iono_tile_sat_los: seq: - id: header @@ -225,7 +298,7 @@ types: List of faulty LOS type: gnss::sv_id repeat: eos - + msg_ssr_flag_iono_grid_point_sat_los: seq: - id: header @@ -245,7 +318,7 @@ types: List of faulty LOS type: gnss::sv_id repeat: eos - + msg_acknowledge: seq: - id: request_id @@ -275,4 +348,4 @@ types: doc: | The solution ID of the instance providing the corrections. type: u1 - + diff --git a/kaitai/ksy/sbp.ksy b/kaitai/ksy/sbp.ksy index 870563ca55..846496fb39 100644 --- a/kaitai/ksy/sbp.ksy +++ b/kaitai/ksy/sbp.ksy @@ -97,7 +97,8 @@ enums: 2305: msg_imu_aux 2309: msg_imu_comp - 3001: msg_ssr_flag_high_level + 3001: msg_ssr_flag_high_level_dep_a + 3002: msg_ssr_flag_high_level 3005: msg_ssr_flag_satellites 3011: msg_ssr_flag_tropo_grid_points 3015: msg_ssr_flag_iono_grid_points @@ -381,7 +382,8 @@ types: 2305: imu::msg_imu_aux 2309: imu::msg_imu_comp - 3001: integrity::msg_ssr_flag_high_level + 3001: integrity::msg_ssr_flag_high_level_dep_a + 3002: integrity::msg_ssr_flag_high_level 3005: integrity::msg_ssr_flag_satellites 3011: integrity::msg_ssr_flag_tropo_grid_points 3015: integrity::msg_ssr_flag_iono_grid_points diff --git a/kaitai/perl/KaitaiSbp/Integrity.pm b/kaitai/perl/KaitaiSbp/Integrity.pm index a522c9bcea..f88e6f1bbc 100644 --- a/kaitai/perl/KaitaiSbp/Integrity.pm +++ b/kaitai/perl/KaitaiSbp/Integrity.pm @@ -481,7 +481,7 @@ sub faulty_points { } ######################################################################## -package Integrity::MsgSsrFlagHighLevel; +package Integrity::MsgSsrFlagHighLevelDepA; our @ISA = 'IO::KaitaiStruct::Struct'; @@ -606,4 +606,136 @@ sub use_iono_grid_point_sat_los { return $self->{use_iono_grid_point_sat_los}; } +######################################################################## +package Integrity::MsgSsrFlagHighLevel; + +our @ISA = 'IO::KaitaiStruct::Struct'; + +sub from_file { + my ($class, $filename) = @_; + my $fd; + + open($fd, '<', $filename) or return undef; + binmode($fd); + return new($class, IO::KaitaiStruct::Stream->new($fd)); +} + +sub new { + my ($class, $_io, $_parent, $_root) = @_; + my $self = IO::KaitaiStruct::Struct->new($_io); + + bless $self, $class; + $self->{_parent} = $_parent; + $self->{_root} = $_root || $self;; + + $self->_read(); + + return $self; +} + +sub _read { + my ($self) = @_; + + $self->{obs_time} = Gnss::GpsTimeSec->new($self->{_io}, $self, $self->{_root}); + $self->{iono_corr_time} = Gnss::GpsTimeSec->new($self->{_io}, $self, $self->{_root}); + $self->{sat_corr_time} = Gnss::GpsTimeSec->new($self->{_io}, $self, $self->{_root}); + $self->{ssr_sol_id} = $self->{_io}->read_u1(); + $self->{tile_set_id} = $self->{_io}->read_u2le(); + $self->{tile_id} = $self->{_io}->read_u2le(); + $self->{chain_id} = $self->{_io}->read_u1(); + $self->{use_gps_sat} = $self->{_io}->read_u1(); + $self->{use_gal_sat} = $self->{_io}->read_u1(); + $self->{use_bds_sat} = $self->{_io}->read_u1(); + $self->{use_qzss_sat} = $self->{_io}->read_u1(); + $self->{reserved} = []; + my $n_reserved = 5; + for (my $i = 0; $i < $n_reserved; $i++) { + push @{$self->{reserved}}, $self->{_io}->read_u1(); + } + $self->{use_tropo_grid_points} = $self->{_io}->read_u1(); + $self->{use_iono_grid_points} = $self->{_io}->read_u1(); + $self->{use_iono_tile_sat_los} = $self->{_io}->read_u1(); + $self->{use_iono_grid_point_sat_los} = $self->{_io}->read_u1(); +} + +sub obs_time { + my ($self) = @_; + return $self->{obs_time}; +} + +sub iono_corr_time { + my ($self) = @_; + return $self->{iono_corr_time}; +} + +sub sat_corr_time { + my ($self) = @_; + return $self->{sat_corr_time}; +} + +sub ssr_sol_id { + my ($self) = @_; + return $self->{ssr_sol_id}; +} + +sub tile_set_id { + my ($self) = @_; + return $self->{tile_set_id}; +} + +sub tile_id { + my ($self) = @_; + return $self->{tile_id}; +} + +sub chain_id { + my ($self) = @_; + return $self->{chain_id}; +} + +sub use_gps_sat { + my ($self) = @_; + return $self->{use_gps_sat}; +} + +sub use_gal_sat { + my ($self) = @_; + return $self->{use_gal_sat}; +} + +sub use_bds_sat { + my ($self) = @_; + return $self->{use_bds_sat}; +} + +sub use_qzss_sat { + my ($self) = @_; + return $self->{use_qzss_sat}; +} + +sub reserved { + my ($self) = @_; + return $self->{reserved}; +} + +sub use_tropo_grid_points { + my ($self) = @_; + return $self->{use_tropo_grid_points}; +} + +sub use_iono_grid_points { + my ($self) = @_; + return $self->{use_iono_grid_points}; +} + +sub use_iono_tile_sat_los { + my ($self) = @_; + return $self->{use_iono_tile_sat_los}; +} + +sub use_iono_grid_point_sat_los { + my ($self) = @_; + return $self->{use_iono_grid_point_sat_los}; +} + 1; diff --git a/kaitai/perl/KaitaiSbp/Sbp.pm b/kaitai/perl/KaitaiSbp/Sbp.pm index 0f3f1be210..980f6db294 100644 --- a/kaitai/perl/KaitaiSbp/Sbp.pm +++ b/kaitai/perl/KaitaiSbp/Sbp.pm @@ -234,7 +234,8 @@ our $MSG_IDS_MSG_MAG_RAW = 2306; our $MSG_IDS_MSG_ODOMETRY = 2307; our $MSG_IDS_MSG_WHEELTICK = 2308; our $MSG_IDS_MSG_IMU_COMP = 2309; -our $MSG_IDS_MSG_SSR_FLAG_HIGH_LEVEL = 3001; +our $MSG_IDS_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A = 3001; +our $MSG_IDS_MSG_SSR_FLAG_HIGH_LEVEL = 3002; our $MSG_IDS_MSG_SSR_FLAG_SATELLITES = 3005; our $MSG_IDS_MSG_SSR_FLAG_TROPO_GRID_POINTS = 3011; our $MSG_IDS_MSG_SSR_FLAG_IONO_GRID_POINTS = 3015; @@ -1510,7 +1511,7 @@ sub _read { elsif ($_on == 3001) { $self->{_raw_payload} = $self->{_io}->read_bytes($self->length()); my $io__raw_payload = IO::KaitaiStruct::Stream->new($self->{_raw_payload}); - $self->{payload} = Integrity::MsgSsrFlagHighLevel->new($io__raw_payload, $self, $self->{_root}); + $self->{payload} = Integrity::MsgSsrFlagHighLevelDepA->new($io__raw_payload, $self, $self->{_root}); } elsif ($_on == 30) { $self->{_raw_payload} = $self->{_io}->read_bytes($self->length()); @@ -1542,6 +1543,11 @@ sub _read { my $io__raw_payload = IO::KaitaiStruct::Stream->new($self->{_raw_payload}); $self->{payload} = Bootload::MsgNapDeviceDnaReq->new($io__raw_payload, $self, $self->{_root}); } + elsif ($_on == 3002) { + $self->{_raw_payload} = $self->{_io}->read_bytes($self->length()); + my $io__raw_payload = IO::KaitaiStruct::Stream->new($self->{_raw_payload}); + $self->{payload} = Integrity::MsgSsrFlagHighLevel->new($io__raw_payload, $self, $self->{_root}); + } else { $self->{payload} = $self->{_io}->read_bytes($self->length()); } diff --git a/kaitai/perl/KaitaiSbp/Table.pm b/kaitai/perl/KaitaiSbp/Table.pm index 2f69d8e287..5f12a5de43 100644 --- a/kaitai/perl/KaitaiSbp/Table.pm +++ b/kaitai/perl/KaitaiSbp/Table.pm @@ -91,7 +91,8 @@ our %TABLE = ( 2305 => sub{Imu::MsgImuAux->new(@_)}, 2309 => sub{Imu::MsgImuComp->new(@_)}, - 3001 => sub{Integrity::MsgSsrFlagHighLevel->new(@_)}, + 3001 => sub{Integrity::MsgSsrFlagHighLevelDepA->new(@_)}, + 3002 => sub{Integrity::MsgSsrFlagHighLevel->new(@_)}, 3005 => sub{Integrity::MsgSsrFlagSatellites->new(@_)}, 3011 => sub{Integrity::MsgSsrFlagTropoGridPoints->new(@_)}, 3015 => sub{Integrity::MsgSsrFlagIonoGridPoints->new(@_)}, diff --git a/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevel.t b/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevel.t index 2e66aa82db..d80b5b1149 100644 --- a/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevel.t +++ b/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevel.t @@ -32,52 +32,54 @@ sub test_auto_check_sbp_integrity_msg_ssr_flag_high_level_1() { my $buf = decode_base64("VbkLQgAftAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCGkD"); my $stream = IO::KaitaiStruct::Stream->new($buf); my $msg = ParseUtils::get_flattened_msg(Sbp::SbpMessage->new($stream)); - + is($msg->{'preamble'}, 0x55, "preamble"); - - is($msg->{'msg_type'}, 0x0BB9, "msg_type"); - + + is($msg->{'msg_type'}, 0x0BBA, "msg_type"); + is($msg->{'sender'}, 0x0042, "sender"); - + is($msg->{'length'}, 31, "length"); - - is($msg->{'payload'}, "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "payload"); - - is($msg->{'crc'}, 0x0369, "crc"); + + is($msg->{'payload'}, "tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "payload"); + + is($msg->{'crc'}, 0xBE9D, "crc"); my $json = JSON::PP->new->convert_blessed->canonical; - + + is($json->encode($msg->iono_corr_time()), $json->encode($json->decode(q{{"tow":365,"wn":6}})), "iono_corr_time"); + is($msg->chain_id(), 40, "chain_id"); - - is($json->encode($msg->corr_time()), $json->encode($json->decode(q{{"tow":360,"wn":6}})), "corr_time"); - + is($json->encode($msg->obs_time()), $json->encode($json->decode(q{{"tow":180,"wn":3}})), "obs_time"); - + is($json->encode($msg->reserved()), $json->encode($json->decode(q{[0,0,0,0,0]})), "reserved"); - + + is($json->encode($msg->sat_corr_time()), $json->encode($json->decode(q{{"tow":360,"wn":6}})), "sat_corr_time"); + is($msg->ssr_sol_id(), 10, "ssr_sol_id"); - + is($msg->tile_id(), 30, "tile_id"); - + is($msg->tile_set_id(), 20, "tile_set_id"); - + is($msg->use_bds_sat(), 3, "use_bds_sat"); - + is($msg->use_gal_sat(), 2, "use_gal_sat"); - + is($msg->use_gps_sat(), 1, "use_gps_sat"); - + is($msg->use_iono_grid_point_sat_los(), 8, "use_iono_grid_point_sat_los"); - + is($msg->use_iono_grid_points(), 6, "use_iono_grid_points"); - + is($msg->use_iono_tile_sat_los(), 7, "use_iono_tile_sat_los"); - + is($msg->use_qzss_sat(), 4, "use_qzss_sat"); - + is($msg->use_tropo_grid_points(), 5, "use_tropo_grid_points"); - is($json->encode($msg), $json->encode($json->decode(q{{"chain_id":40,"corr_time":{"tow":360,"wn":6},"crc":873,"length":31,"msg_type":3001,"obs_time":{"tow":180,"wn":3},"payload":"tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==","preamble":85,"reserved":[0,0,0,0,0],"sender":66,"ssr_sol_id":10,"tile_id":30,"tile_set_id":20,"use_bds_sat":3,"use_gal_sat":2,"use_gps_sat":1,"use_iono_grid_point_sat_los":8,"use_iono_grid_points":6,"use_iono_tile_sat_los":7,"use_qzss_sat":4,"use_tropo_grid_points":5}})), "raw_json"); + is($json->encode($msg), $json->encode($json->decode(q{{"iono_corr_time":{"tow":365,"wn":6},"chain_id":40,"crc":48797,"length":31,"msg_type":3001,"obs_time":{"tow":180,"wn":3},"payload":"tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==","preamble":85,"reserved":[0,0,0,0,0],"sat_corr_time":{"tow":360,"wn":6},"sender":66,"ssr_sol_id":10,"tile_id":30,"tile_set_id":20,"use_bds_sat":3,"use_gal_sat":2,"use_gps_sat":1,"use_iono_grid_point_sat_los":8,"use_iono_grid_points":6,"use_iono_tile_sat_los":7,"use_qzss_sat":4,"use_tropo_grid_points":5}})), "raw_json"); } test_auto_check_sbp_integrity_msg_ssr_flag_high_level_1(); diff --git a/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.t b/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.t new file mode 100644 index 0000000000..c0eeddbbbf --- /dev/null +++ b/kaitai/perl/KaitaiSbp/t/auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.t @@ -0,0 +1,84 @@ +#!/usr/bin/perl -w +# +# Copyright (C) 2015-2023 Swift Navigation Inc. +# Contact: https://support.swiftnav.com +# +# This source is subject to the license found in the file 'LICENSE' which must +# be distributed together with this source. All other rights reserved. +# +# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. +# +# Test cases automatically generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml +# with generate.py. Do not modify by hand! + +use strict; + +BEGIN { + # add grandparent directory to include path + use Cwd qw(realpath); + use File::Basename; + unshift @INC, realpath(dirname($0))."/../../"; +} + +use KaitaiSbp::Sbp; +use KaitaiSbp::ParseUtils; +use IO::KaitaiStruct; +use Test::More; +use JSON::PP; +use MIME::Base64; +sub test_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a_1() { + my $buf = decode_base64("VbkLQgAftAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCGkD"); + my $stream = IO::KaitaiStruct::Stream->new($buf); + my $msg = ParseUtils::get_flattened_msg(Sbp::SbpMessage->new($stream)); + + is($msg->{'preamble'}, 0x55, "preamble"); + + is($msg->{'msg_type'}, 0x0BB9, "msg_type"); + + is($msg->{'sender'}, 0x0042, "sender"); + + is($msg->{'length'}, 31, "length"); + + is($msg->{'payload'}, "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "payload"); + + is($msg->{'crc'}, 0x0369, "crc"); + + my $json = JSON::PP->new->convert_blessed->canonical; + + is($msg->chain_id(), 40, "chain_id"); + + is($json->encode($msg->corr_time()), $json->encode($json->decode(q{{"tow":360,"wn":6}})), "corr_time"); + + is($json->encode($msg->obs_time()), $json->encode($json->decode(q{{"tow":180,"wn":3}})), "obs_time"); + + is($json->encode($msg->reserved()), $json->encode($json->decode(q{[0,0,0,0,0]})), "reserved"); + + is($msg->ssr_sol_id(), 10, "ssr_sol_id"); + + is($msg->tile_id(), 30, "tile_id"); + + is($msg->tile_set_id(), 20, "tile_set_id"); + + is($msg->use_bds_sat(), 3, "use_bds_sat"); + + is($msg->use_gal_sat(), 2, "use_gal_sat"); + + is($msg->use_gps_sat(), 1, "use_gps_sat"); + + is($msg->use_iono_grid_point_sat_los(), 8, "use_iono_grid_point_sat_los"); + + is($msg->use_iono_grid_points(), 6, "use_iono_grid_points"); + + is($msg->use_iono_tile_sat_los(), 7, "use_iono_tile_sat_los"); + + is($msg->use_qzss_sat(), 4, "use_qzss_sat"); + + is($msg->use_tropo_grid_points(), 5, "use_tropo_grid_points"); + + is($json->encode($msg), $json->encode($json->decode(q{{"chain_id":40,"corr_time":{"tow":360,"wn":6},"crc":873,"length":31,"msg_type":3001,"obs_time":{"tow":180,"wn":3},"payload":"tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==","preamble":85,"reserved":[0,0,0,0,0],"sender":66,"ssr_sol_id":10,"tile_id":30,"tile_set_id":20,"use_bds_sat":3,"use_gal_sat":2,"use_gps_sat":1,"use_iono_grid_point_sat_los":8,"use_iono_grid_points":6,"use_iono_tile_sat_los":7,"use_qzss_sat":4,"use_tropo_grid_points":5}})), "raw_json"); +} +test_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a_1(); + +done_testing(); diff --git a/kaitai/python/kaitai_sbp/integrity.py b/kaitai/python/kaitai_sbp/integrity.py index 7fcf216f63..a4cc93a601 100644 --- a/kaitai/python/kaitai_sbp/integrity.py +++ b/kaitai/python/kaitai_sbp/integrity.py @@ -147,30 +147,60 @@ def _read(self): + class MsgSsrFlagHighLevelDepA(KaitaiStruct): + """Deprecated. + """ + def __init__(self, _io, _parent=None, _root=None): + self._io = _io + self._parent = _parent + self._root = _root if _root else self + self._read() + + def _read(self): + self.obs_time = Gnss.GpsTimeSec(self._io, self, self._root) + self.corr_time = Gnss.GpsTimeSec(self._io, self, self._root) + self.ssr_sol_id = self._io.read_u1() + self.tile_set_id = self._io.read_u2le() + self.tile_id = self._io.read_u2le() + self.chain_id = self._io.read_u1() + self.use_gps_sat = self._io.read_u1() + self.use_gal_sat = self._io.read_u1() + self.use_bds_sat = self._io.read_u1() + self.use_qzss_sat = self._io.read_u1() + self.reserved = [] + for i in range(5): + self.reserved.append(self._io.read_u1()) + + self.use_tropo_grid_points = self._io.read_u1() + self.use_iono_grid_points = self._io.read_u1() + self.use_iono_tile_sat_los = self._io.read_u1() + self.use_iono_grid_point_sat_los = self._io.read_u1() + + class MsgSsrFlagHighLevel(KaitaiStruct): """Integrity monitoring flags for multiple aggregated elements. An element could be a satellite, SSR grid point, or SSR tile. A group of aggregated elements being monitored for integrity could refer to: - + - Satellites in a particular {GPS, GAL, BDS, QZSS} constellation. - + - Satellites in the line-of-sight of a particular SSR tile. - + - Satellites in the line-of-sight of a particular SSR grid point. - + The integrity usage for a group of aggregated elements varies according to the integrity flag of the satellites comprising that group. - + SSR_INTEGRITY_USAGE_NOMINAL: All satellites received passed the integrity check and have flag INTEGRITY_FLAG_OK. - + SSR_INTEGRITY_USAGE_WARNING: A limited number of elements in the group failed the integrity check. Refer to more granular integrity messages for details on the specific failing elements. - + SSR_INTEGRITY_USAGE_ALERT: Most elements in the group failed the integrity check, do not use for positioning. - + SSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of elements in the group. """ @@ -182,7 +212,8 @@ def __init__(self, _io, _parent=None, _root=None): def _read(self): self.obs_time = Gnss.GpsTimeSec(self._io, self, self._root) - self.corr_time = Gnss.GpsTimeSec(self._io, self, self._root) + self.iono_corr_time = Gnss.GpsTimeSec(self._io, self, self._root) + self.sat_corr_time = Gnss.GpsTimeSec(self._io, self, self._root) self.ssr_sol_id = self._io.read_u1() self.tile_set_id = self._io.read_u2le() self.tile_id = self._io.read_u2le() diff --git a/kaitai/python/kaitai_sbp/sbp.py b/kaitai/python/kaitai_sbp/sbp.py index 75d6ae8b82..5b7f5627f8 100644 --- a/kaitai/python/kaitai_sbp/sbp.py +++ b/kaitai/python/kaitai_sbp/sbp.py @@ -227,7 +227,8 @@ class MsgIds(Enum): msg_odometry = 2307 msg_wheeltick = 2308 msg_imu_comp = 2309 - msg_ssr_flag_high_level = 3001 + msg_ssr_flag_high_level_dep_a = 3001 + msg_ssr_flag_high_level = 3002 msg_ssr_flag_satellites = 3005 msg_ssr_flag_tropo_grid_points = 3011 msg_ssr_flag_iono_grid_points = 3015 @@ -1237,7 +1238,7 @@ def _read(self): elif _on == 3001: self._raw_payload = self._io.read_bytes(self.length) _io__raw_payload = KaitaiStream(BytesIO(self._raw_payload)) - self.payload = Integrity.MsgSsrFlagHighLevel(_io__raw_payload, self, self._root) + self.payload = Integrity.MsgSsrFlagHighLevelDepA(_io__raw_payload, self, self._root) elif _on == 30: self._raw_payload = self._io.read_bytes(self.length) _io__raw_payload = KaitaiStream(BytesIO(self._raw_payload)) @@ -1262,6 +1263,10 @@ def _read(self): self._raw_payload = self._io.read_bytes(self.length) _io__raw_payload = KaitaiStream(BytesIO(self._raw_payload)) self.payload = Bootload.MsgNapDeviceDnaReq(_io__raw_payload, self, self._root) + elif _on == 3002: + self._raw_payload = self._io.read_bytes(self.length) + _io__raw_payload = KaitaiStream(BytesIO(self._raw_payload)) + self.payload = Integrity.MsgSsrFlagHighLevel(_io__raw_payload, self, self._root) else: self.payload = self._io.read_bytes(self.length) self.crc = self._io.read_u2le() diff --git a/kaitai/python/kaitai_sbp/table.py b/kaitai/python/kaitai_sbp/table.py index 1685d44394..17ab1718a0 100644 --- a/kaitai/python/kaitai_sbp/table.py +++ b/kaitai/python/kaitai_sbp/table.py @@ -85,7 +85,8 @@ 2305: Imu.MsgImuAux, 2309: Imu.MsgImuComp, - 3001: Integrity.MsgSsrFlagHighLevel, + 3001: Integrity.MsgSsrFlagHighLevelDepA, + 3002: Integrity.MsgSsrFlagHighLevel, 3005: Integrity.MsgSsrFlagSatellites, 3011: Integrity.MsgSsrFlagTropoGridPoints, 3015: Integrity.MsgSsrFlagIonoGridPoints, diff --git a/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevel.py b/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevel.py index 8a9739e187..a873043323 100644 --- a/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevel.py +++ b/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevel.py @@ -23,47 +23,49 @@ def test_auto_check_sbp_integrity_msg_ssr_flag_high_level_1(): stream = KaitaiStream(io.BytesIO(buf)) msg = get_flattened_msg(sbp.Sbp.SbpMessage(stream)) - + assert msg.preamble == 0x55 - - assert msg.msg_type == 0x0BB9 - + + assert msg.msg_type == 0x0BBA + assert msg.sender == 0x0042 - + assert msg.length == 31 - - assert msg.payload == "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==" - - assert msg.crc == 0x0369 - + + assert msg.payload == "tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==" + + assert msg.crc == 0xBE9D + + assert dictify(msg.iono_corr_time) == {'tow': 365, 'wn': 6} + assert dictify(msg.chain_id) == 40 - - assert dictify(msg.corr_time) == {'tow': 360, 'wn': 6} - + assert dictify(msg.obs_time) == {'tow': 180, 'wn': 3} - + assert dictify(msg.reserved) == [0, 0, 0, 0, 0] - + + assert dictify(msg.sat_corr_time) == {'tow': 360, 'wn': 6} + assert dictify(msg.ssr_sol_id) == 10 - + assert dictify(msg.tile_id) == 30 - + assert dictify(msg.tile_set_id) == 20 - + assert dictify(msg.use_bds_sat) == 3 - + assert dictify(msg.use_gal_sat) == 2 - + assert dictify(msg.use_gps_sat) == 1 - + assert dictify(msg.use_iono_grid_point_sat_los) == 8 - + assert dictify(msg.use_iono_grid_points) == 6 - + assert dictify(msg.use_iono_tile_sat_los) == 7 - + assert dictify(msg.use_qzss_sat) == 4 - + assert dictify(msg.use_tropo_grid_points) == 5 - assert dictify(msg) == {'obs_time': {'tow': 180, 'wn': 3}, 'corr_time': {'tow': 360, 'wn': 6}, 'ssr_sol_id': 10, 'tile_set_id': 20, 'tile_id': 30, 'chain_id': 40, 'use_gps_sat': 1, 'use_gal_sat': 2, 'use_bds_sat': 3, 'use_qzss_sat': 4, 'reserved': [0, 0, 0, 0, 0], 'use_tropo_grid_points': 5, 'use_iono_grid_points': 6, 'use_iono_tile_sat_los': 7, 'use_iono_grid_point_sat_los': 8, 'preamble': 85, 'msg_type': 3001, 'sender': 66, 'length': 31, 'payload': 'tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==', 'crc': 873} + assert dictify(msg) == {'obs_time': {'tow': 180, 'wn': 3}, 'sat_corr_time': {'tow': 360, 'wn': 6}, 'iono_corr_time': {'tow': 365, 'wn': 6}, 'ssr_sol_id': 10, 'tile_set_id': 20, 'tile_id': 30, 'chain_id': 40, 'use_gps_sat': 1, 'use_gal_sat': 2, 'use_bds_sat': 3, 'use_qzss_sat': 4, 'reserved': [0, 0, 0, 0, 0], 'use_tropo_grid_points': 5, 'use_iono_grid_points': 6, 'use_iono_tile_sat_los': 7, 'use_iono_grid_point_sat_los': 8, 'preamble': 85, 'msg_type': 3001, 'sender': 66, 'length': 31, 'payload': 'tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==', 'crc': 48797} diff --git a/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.py b/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.py new file mode 100644 index 0000000000..0c1a6bf544 --- /dev/null +++ b/kaitai/python/kaitai_sbp/tests/test_auto_check_sbp_integrity_MsgSsrFlagHighLevelDepA.py @@ -0,0 +1,69 @@ +# Copyright (C) 2015-2023 Swift Navigation Inc. +# Contact: https://support.swiftnav.com +# +# This source is subject to the license found in the file 'LICENSE' which must +# be distributed together with this source. All other rights reserved. +# +# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. +# +# Test cases automatically generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml +# with generate.py. Do not modify by hand! + +import kaitai_sbp.sbp as sbp +from kaitai_sbp.parse_utils import get_flattened_msg +from kaitai_sbp.tests.utils import dictify +from kaitaistruct import KaitaiStream +import io +import base64 + +def test_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a_1(): + buf = base64.standard_b64decode("VbkLQgAftAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCGkD") + + stream = KaitaiStream(io.BytesIO(buf)) + msg = get_flattened_msg(sbp.Sbp.SbpMessage(stream)) + + assert msg.preamble == 0x55 + + assert msg.msg_type == 0x0BB9 + + assert msg.sender == 0x0042 + + assert msg.length == 31 + + assert msg.payload == "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==" + + assert msg.crc == 0x0369 + + assert dictify(msg.chain_id) == 40 + + assert dictify(msg.corr_time) == {'tow': 360, 'wn': 6} + + assert dictify(msg.obs_time) == {'tow': 180, 'wn': 3} + + assert dictify(msg.reserved) == [0, 0, 0, 0, 0] + + assert dictify(msg.ssr_sol_id) == 10 + + assert dictify(msg.tile_id) == 30 + + assert dictify(msg.tile_set_id) == 20 + + assert dictify(msg.use_bds_sat) == 3 + + assert dictify(msg.use_gal_sat) == 2 + + assert dictify(msg.use_gps_sat) == 1 + + assert dictify(msg.use_iono_grid_point_sat_los) == 8 + + assert dictify(msg.use_iono_grid_points) == 6 + + assert dictify(msg.use_iono_tile_sat_los) == 7 + + assert dictify(msg.use_qzss_sat) == 4 + + assert dictify(msg.use_tropo_grid_points) == 5 + + assert dictify(msg) == {'obs_time': {'tow': 180, 'wn': 3}, 'corr_time': {'tow': 360, 'wn': 6}, 'ssr_sol_id': 10, 'tile_set_id': 20, 'tile_id': 30, 'chain_id': 40, 'use_gps_sat': 1, 'use_gal_sat': 2, 'use_bds_sat': 3, 'use_qzss_sat': 4, 'reserved': [0, 0, 0, 0, 0], 'use_tropo_grid_points': 5, 'use_iono_grid_points': 6, 'use_iono_tile_sat_los': 7, 'use_iono_grid_point_sat_los': 8, 'preamble': 85, 'msg_type': 3001, 'sender': 66, 'length': 31, 'payload': 'tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==', 'crc': 873} diff --git a/proto/integrity.proto b/proto/integrity.proto index 507a8b82f3..28ce64b5e1 100644 --- a/proto/integrity.proto +++ b/proto/integrity.proto @@ -65,19 +65,20 @@ message IntegritySSRHeader { */ message MsgSsrFlagHighLevel { gnss.GpsTimeSec obs_time = 1; - gnss.GpsTimeSec corr_time = 2; - uint32 ssr_sol_id = 3; - uint32 tile_set_id = 4; - uint32 tile_id = 5; - uint32 chain_id = 6; - uint32 use_gps_sat = 7; - uint32 use_gal_sat = 8; - uint32 use_bds_sat = 9; - uint32 use_qzss_sat = 10; - uint32 use_tropo_grid_points = 12; - uint32 use_iono_grid_points = 13; - uint32 use_iono_tile_sat_los = 14; - uint32 use_iono_grid_point_sat_los = 15; + gnss.GpsTimeSec iono_corr_time = 2; + gnss.GpsTimeSec sat_corr_time = 3; + uint32 ssr_sol_id = 4; + uint32 tile_set_id = 5; + uint32 tile_id = 6; + uint32 chain_id = 7; + uint32 use_gps_sat = 8; + uint32 use_gal_sat = 9; + uint32 use_bds_sat = 10; + uint32 use_qzss_sat = 11; + uint32 use_tropo_grid_points = 13; + uint32 use_iono_grid_points = 14; + uint32 use_iono_tile_sat_los = 15; + uint32 use_iono_grid_point_sat_los = 16; } /** List of satellites which are faulty, per constellation diff --git a/python/sbp/integrity.py b/python/sbp/integrity.py index 47983388d8..3f344f7211 100644 --- a/python/sbp/integrity.py +++ b/python/sbp/integrity.py @@ -86,9 +86,174 @@ def from_binary(self, d): for n in self.__class__.__slots__: setattr(self, n, getattr(p, n)) -SBP_MSG_SSR_FLAG_HIGH_LEVEL = 0x0BB9 +SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A = 0x0BB9 +class MsgSsrFlagHighLevelDepA(SBP): + """SBP class for message MSG_SSR_FLAG_HIGH_LEVEL_DEP_A (0x0BB9). + + You can have MSG_SSR_FLAG_HIGH_LEVEL_DEP_A inherit its fields directly + from an inherited SBP object, or construct it inline using a dict + of its fields. + + + Deprecated. + + Parameters + ---------- + sbp : SBP + SBP parent object to inherit from. + obs_time : GPSTimeSec + GNSS reference time of the observation used to generate the flag. + corr_time : GPSTimeSec + GNSS reference time of the correction associated to the flag. + ssr_sol_id : int + SSR Solution ID. + tile_set_id : int + Unique identifier of the set this tile belongs to. + tile_id : int + Unique identifier of this tile in the tile set. + chain_id : int + Chain and type of flag. + use_gps_sat : int + Use GPS satellites. + use_gal_sat : int + Use GAL satellites. + use_bds_sat : int + Use BDS satellites. + use_qzss_sat : int + Use QZSS satellites. + reserved : array + Reserved + use_tropo_grid_points : int + Use tropo grid points. + use_iono_grid_points : int + Use iono grid points. + use_iono_tile_sat_los : int + Use iono tile satellite LoS. + use_iono_grid_point_sat_los : int + Use iono grid point satellite LoS. + sender : int + Optional sender ID, defaults to SENDER_ID (see sbp/msg.py). + + """ + _parser = construct.Struct( + 'obs_time' / GPSTimeSec._parser, + 'corr_time' / GPSTimeSec._parser, + 'ssr_sol_id' / construct.Int8ul, + 'tile_set_id' / construct.Int16ul, + 'tile_id' / construct.Int16ul, + 'chain_id' / construct.Int8ul, + 'use_gps_sat' / construct.Int8ul, + 'use_gal_sat' / construct.Int8ul, + 'use_bds_sat' / construct.Int8ul, + 'use_qzss_sat' / construct.Int8ul, + 'reserved' / construct.Array(5, construct.Int8ul), + 'use_tropo_grid_points' / construct.Int8ul, + 'use_iono_grid_points' / construct.Int8ul, + 'use_iono_tile_sat_los' / construct.Int8ul, + 'use_iono_grid_point_sat_los' / construct.Int8ul,) + __slots__ = [ + 'obs_time', + 'corr_time', + 'ssr_sol_id', + 'tile_set_id', + 'tile_id', + 'chain_id', + 'use_gps_sat', + 'use_gal_sat', + 'use_bds_sat', + 'use_qzss_sat', + 'reserved', + 'use_tropo_grid_points', + 'use_iono_grid_points', + 'use_iono_tile_sat_los', + 'use_iono_grid_point_sat_los', + ] + + def __init__(self, sbp=None, **kwargs): + if sbp: + super( MsgSsrFlagHighLevelDepA, + self).__init__(sbp.msg_type, sbp.sender, sbp.length, + sbp.payload, sbp.crc) + self.from_binary(sbp.payload) + else: + super( MsgSsrFlagHighLevelDepA, self).__init__() + self.msg_type = SBP_MSG_SSR_FLAG_HIGH_LEVEL_DEP_A + self.sender = kwargs.pop('sender', SENDER_ID) + self.obs_time = kwargs.pop('obs_time') + self.corr_time = kwargs.pop('corr_time') + self.ssr_sol_id = kwargs.pop('ssr_sol_id') + self.tile_set_id = kwargs.pop('tile_set_id') + self.tile_id = kwargs.pop('tile_id') + self.chain_id = kwargs.pop('chain_id') + self.use_gps_sat = kwargs.pop('use_gps_sat') + self.use_gal_sat = kwargs.pop('use_gal_sat') + self.use_bds_sat = kwargs.pop('use_bds_sat') + self.use_qzss_sat = kwargs.pop('use_qzss_sat') + self.reserved = kwargs.pop('reserved') + self.use_tropo_grid_points = kwargs.pop('use_tropo_grid_points') + self.use_iono_grid_points = kwargs.pop('use_iono_grid_points') + self.use_iono_tile_sat_los = kwargs.pop('use_iono_tile_sat_los') + self.use_iono_grid_point_sat_los = kwargs.pop('use_iono_grid_point_sat_los') + + def __repr__(self): + return fmt_repr(self) + + @staticmethod + def from_json(s): + """Given a JSON-encoded string s, build a message object. + + """ + d = json.loads(s) + return MsgSsrFlagHighLevelDepA.from_json_dict(d) + + @staticmethod + def from_json_dict(d): + sbp = SBP.from_json_dict(d) + return MsgSsrFlagHighLevelDepA(sbp, **d) + + + def from_binary(self, d): + """Given a binary payload d, update the appropriate payload fields of + the message. + + """ + p = MsgSsrFlagHighLevelDepA._parser.parse(d) + for n in self.__class__.__slots__: + setattr(self, n, getattr(p, n)) + + def to_binary(self): + """Produce a framed/packed SBP message. + + """ + c = containerize(exclude_fields(self)) + self.payload = MsgSsrFlagHighLevelDepA._parser.build(c) + return self.pack() + + def friendly_name(self): + """Produces friendly human-readable name for this message + + """ + return "SSR FLAG HIGH LEVEL DEP A" + + def into_buffer(self, buf, offset): + """Produce a framed/packed SBP message into the provided buffer and offset. + + """ + self.payload = containerize(exclude_fields(self)) + self.parser = MsgSsrFlagHighLevelDepA._parser + self.stream_payload.reset(buf, offset) + return self.pack_into(buf, offset, self._build_payload) + + def to_json_dict(self): + self.to_binary() + d = super( MsgSsrFlagHighLevelDepA, self).to_json_dict() + j = walk_json_dict(exclude_fields(self)) + d.update(j) + return d + +SBP_MSG_SSR_FLAG_HIGH_LEVEL = 0x0BBA class MsgSsrFlagHighLevel(SBP): - """SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BB9). + """SBP class for message MSG_SSR_FLAG_HIGH_LEVEL (0x0BBA). You can have MSG_SSR_FLAG_HIGH_LEVEL inherit its fields directly from an inherited SBP object, or construct it inline using a dict @@ -127,8 +292,10 @@ class MsgSsrFlagHighLevel(SBP): SBP parent object to inherit from. obs_time : GPSTimeSec GNSS reference time of the observation used to generate the flag. - corr_time : GPSTimeSec - GNSS reference time of the correction associated to the flag. + iono_corr_time : GPSTimeSec + GNSS reference time of the ionospheric correction associated to the flag. + sat_corr_time : GPSTimeSec + GNSS reference time of the satellite correction associated to the flag. ssr_sol_id : int SSR Solution ID. tile_set_id : int @@ -161,7 +328,8 @@ class MsgSsrFlagHighLevel(SBP): """ _parser = construct.Struct( 'obs_time' / GPSTimeSec._parser, - 'corr_time' / GPSTimeSec._parser, + 'iono_corr_time' / GPSTimeSec._parser, + 'sat_corr_time' / GPSTimeSec._parser, 'ssr_sol_id' / construct.Int8ul, 'tile_set_id' / construct.Int16ul, 'tile_id' / construct.Int16ul, @@ -177,7 +345,8 @@ class MsgSsrFlagHighLevel(SBP): 'use_iono_grid_point_sat_los' / construct.Int8ul,) __slots__ = [ 'obs_time', - 'corr_time', + 'iono_corr_time', + 'sat_corr_time', 'ssr_sol_id', 'tile_set_id', 'tile_id', @@ -204,7 +373,8 @@ def __init__(self, sbp=None, **kwargs): self.msg_type = SBP_MSG_SSR_FLAG_HIGH_LEVEL self.sender = kwargs.pop('sender', SENDER_ID) self.obs_time = kwargs.pop('obs_time') - self.corr_time = kwargs.pop('corr_time') + self.iono_corr_time = kwargs.pop('iono_corr_time') + self.sat_corr_time = kwargs.pop('sat_corr_time') self.ssr_sol_id = kwargs.pop('ssr_sol_id') self.tile_set_id = kwargs.pop('tile_set_id') self.tile_id = kwargs.pop('tile_id') @@ -949,7 +1119,8 @@ def to_json_dict(self): msg_classes = { - 0x0BB9: MsgSsrFlagHighLevel, + 0x0BB9: MsgSsrFlagHighLevelDepA, + 0x0BBA: MsgSsrFlagHighLevel, 0x0BBD: MsgSsrFlagSatellites, 0x0BC3: MsgSsrFlagTropoGridPoints, 0x0BC7: MsgSsrFlagIonoGridPoints, diff --git a/python/tests/sbp/test_table.py b/python/tests/sbp/test_table.py index 23f36a99da..62ca338f6a 100644 --- a/python/tests/sbp/test_table.py +++ b/python/tests/sbp/test_table.py @@ -8,95 +8,105 @@ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. -from sbp.msg import SBP -from sbp.table import _SBP_TABLE, dispatch +import warnings + from sbp import acquisition as acq from sbp import bootload as boot +from sbp import ext_events as ext_events from sbp import file_io as file_io from sbp import flash as flash +from sbp import imu as imu +from sbp import integrity as integrity from sbp import linux as linux from sbp import logging as log +from sbp import mag as mag from sbp import navigation as nav +from sbp import ndb as ndb from sbp import observation as obs +from sbp import orientation as orientation from sbp import piksi as piksi +from sbp import profiling as profiling +from sbp import sbas as sbas from sbp import settings as settings +from sbp import signing as signing +from sbp import solution_meta as solmeta +from sbp import ssr as ssr from sbp import system as sys +from sbp import telemetry as telemetry from sbp import tracking as trac from sbp import user as user -from sbp import imu as imu -from sbp import integrity as integrity -from sbp import ext_events as ext_events -from sbp import ndb as ndb -from sbp import mag as mag from sbp import vehicle as vehicle -from sbp import orientation as orientation -from sbp import sbas as sbas -from sbp import ssr as ssr -from sbp import solution_meta as solmeta -from sbp import signing as signing -from sbp import telemetry as telemetry -from sbp import profiling as profiling +from sbp.msg import SBP +from sbp.table import _SBP_TABLE, dispatch -import warnings def test_table_count(): - """ - Test number of available messages to deserialize. + """ + Test number of available messages to deserialize. + + """ + number_of_messages = 240 + assert len(_SBP_TABLE) == number_of_messages - """ - number_of_messages = 239 - assert len(_SBP_TABLE) == number_of_messages def test_table_unqiue_count(): - """ - Test number of messages in packages equals total number of messages. - """ - number_of_messages = (len(acq.msg_classes) - + len(boot.msg_classes) - + len(file_io.msg_classes) - + len(flash.msg_classes) - + len(linux.msg_classes) - + len(log.msg_classes) - + len(nav.msg_classes) - + len(obs.msg_classes) - + len(piksi.msg_classes) - + len(settings.msg_classes) - + len(sys.msg_classes) - + len(trac.msg_classes) - + len(user.msg_classes) - + len(imu.msg_classes) - + len(integrity.msg_classes) - + len(ext_events.msg_classes) - + len(ndb.msg_classes) - + len(mag.msg_classes) - + len(vehicle.msg_classes) - + len(orientation.msg_classes) - + len(sbas.msg_classes) - + len(ssr.msg_classes) - + len(solmeta.msg_classes) - + len(signing.msg_classes) - + len(telemetry.msg_classes) - + len(profiling.msg_classes) - ) - assert len(_SBP_TABLE) == number_of_messages + """ + Test number of messages in packages equals total number of messages. + """ + number_of_messages = ( + len(acq.msg_classes) + + len(boot.msg_classes) + + len(file_io.msg_classes) + + len(flash.msg_classes) + + len(linux.msg_classes) + + len(log.msg_classes) + + len(nav.msg_classes) + + len(obs.msg_classes) + + len(piksi.msg_classes) + + len(settings.msg_classes) + + len(sys.msg_classes) + + len(trac.msg_classes) + + len(user.msg_classes) + + len(imu.msg_classes) + + len(integrity.msg_classes) + + len(ext_events.msg_classes) + + len(ndb.msg_classes) + + len(mag.msg_classes) + + len(vehicle.msg_classes) + + len(orientation.msg_classes) + + len(sbas.msg_classes) + + len(ssr.msg_classes) + + len(solmeta.msg_classes) + + len(signing.msg_classes) + + len(telemetry.msg_classes) + + len(profiling.msg_classes) + ) + assert len(_SBP_TABLE) == number_of_messages + def test_available_messages(): - """ - Simple example with a limited dispatch table. + """ + Simple example with a limited dispatch table. - """ - table = {acq.SBP_MSG_ACQ_RESULT_DEP_A: acq.MsgAcqResultDepA, - log.SBP_MSG_PRINT_DEP: log.MsgPrintDep} - msg = SBP(msg_type=0x15, sender=1219, length=13, - payload=b'\x92$yA\x00\x00\xbcC\x81\xc1\xf9\xc5\x1d') - # TODO (Buro): Replace this message constructor once generated SBP - # can support kwargs for constructor, instead of requiring SBP - # object. - assert dispatch(msg, table) == acq.MsgAcqResultDepA(msg) - msg = SBP(msg_type=0xB0, sender=1219, length=4, payload='v1.2', crc=0xCE01) - with warnings.catch_warnings(record=True) as w: - dispatch(msg, table) - warnings.simplefilter("always") - assert len(w) == 1 - assert issubclass(w[0].category, RuntimeWarning) - assert str(w[0].message).find("No message found for msg_type id 176 for msg*") + """ + table = { + acq.SBP_MSG_ACQ_RESULT_DEP_A: acq.MsgAcqResultDepA, + log.SBP_MSG_PRINT_DEP: log.MsgPrintDep, + } + msg = SBP( + msg_type=0x15, + sender=1219, + length=13, + payload=b"\x92$yA\x00\x00\xbcC\x81\xc1\xf9\xc5\x1d", + ) + # TODO (Buro): Replace this message constructor once generated SBP + # can support kwargs for constructor, instead of requiring SBP + # object. + assert dispatch(msg, table) == acq.MsgAcqResultDepA(msg) + msg = SBP(msg_type=0xB0, sender=1219, length=4, payload="v1.2", crc=0xCE01) + with warnings.catch_warnings(record=True) as w: + dispatch(msg, table) + warnings.simplefilter("always") + assert len(w) == 1 + assert issubclass(w[0].category, RuntimeWarning) + assert str(w[0].message).find("No message found for msg_type id 176 for msg*") diff --git a/rust/sbp/src/messages/integrity.rs b/rust/sbp/src/messages/integrity.rs index ef9322b784..2f0ad929f5 100644 --- a/rust/sbp/src/messages/integrity.rs +++ b/rust/sbp/src/messages/integrity.rs @@ -16,6 +16,7 @@ pub use integrity_ssr_header::IntegritySSRHeader; pub use msg_acknowledge::MsgAcknowledge; pub use msg_ssr_flag_high_level::MsgSsrFlagHighLevel; +pub use msg_ssr_flag_high_level_dep_a::MsgSsrFlagHighLevelDepA; pub use msg_ssr_flag_iono_grid_point_sat_los::MsgSsrFlagIonoGridPointSatLos; pub use msg_ssr_flag_iono_grid_points::MsgSsrFlagIonoGridPoints; pub use msg_ssr_flag_iono_tile_sat_los::MsgSsrFlagIonoTileSatLos; @@ -888,9 +889,13 @@ pub mod msg_ssr_flag_high_level { /// GNSS reference time of the observation used to generate the flag. #[cfg_attr(feature = "serde", serde(rename = "obs_time"))] pub obs_time: GpsTimeSec, - /// GNSS reference time of the correction associated to the flag. - #[cfg_attr(feature = "serde", serde(rename = "corr_time"))] - pub corr_time: GpsTimeSec, + /// GNSS reference time of the ionospheric correction associated to the + /// flag. + #[cfg_attr(feature = "serde", serde(rename = "iono_corr_time"))] + pub iono_corr_time: GpsTimeSec, + /// GNSS reference time of the satellite correction associated to the flag. + #[cfg_attr(feature = "serde", serde(rename = "sat_corr_time"))] + pub sat_corr_time: GpsTimeSec, /// SSR Solution ID. #[cfg_attr(feature = "serde", serde(rename = "ssr_sol_id"))] pub ssr_sol_id: u8, @@ -1083,7 +1088,7 @@ pub mod msg_ssr_flag_high_level { } impl ConcreteMessage for MsgSsrFlagHighLevel { - const MESSAGE_TYPE: u16 = 3001; + const MESSAGE_TYPE: u16 = 3002; const MESSAGE_NAME: &'static str = "MSG_SSR_FLAG_HIGH_LEVEL"; } @@ -1129,6 +1134,7 @@ pub mod msg_ssr_flag_high_level { impl WireFormat for MsgSsrFlagHighLevel { const MIN_LEN: usize = ::MIN_LEN + + ::MIN_LEN + ::MIN_LEN + ::MIN_LEN + ::MIN_LEN @@ -1145,7 +1151,8 @@ pub mod msg_ssr_flag_high_level { + ::MIN_LEN; fn len(&self) -> usize { WireFormat::len(&self.obs_time) - + WireFormat::len(&self.corr_time) + + WireFormat::len(&self.iono_corr_time) + + WireFormat::len(&self.sat_corr_time) + WireFormat::len(&self.ssr_sol_id) + WireFormat::len(&self.tile_set_id) + WireFormat::len(&self.tile_id) @@ -1162,7 +1169,8 @@ pub mod msg_ssr_flag_high_level { } fn write(&self, buf: &mut B) { WireFormat::write(&self.obs_time, buf); - WireFormat::write(&self.corr_time, buf); + WireFormat::write(&self.iono_corr_time, buf); + WireFormat::write(&self.sat_corr_time, buf); WireFormat::write(&self.ssr_sol_id, buf); WireFormat::write(&self.tile_set_id, buf); WireFormat::write(&self.tile_id, buf); @@ -1179,6 +1187,660 @@ pub mod msg_ssr_flag_high_level { } fn parse_unchecked(buf: &mut B) -> Self { MsgSsrFlagHighLevel { + sender_id: None, + obs_time: WireFormat::parse_unchecked(buf), + iono_corr_time: WireFormat::parse_unchecked(buf), + sat_corr_time: WireFormat::parse_unchecked(buf), + ssr_sol_id: WireFormat::parse_unchecked(buf), + tile_set_id: WireFormat::parse_unchecked(buf), + tile_id: WireFormat::parse_unchecked(buf), + chain_id: WireFormat::parse_unchecked(buf), + use_gps_sat: WireFormat::parse_unchecked(buf), + use_gal_sat: WireFormat::parse_unchecked(buf), + use_bds_sat: WireFormat::parse_unchecked(buf), + use_qzss_sat: WireFormat::parse_unchecked(buf), + reserved: WireFormat::parse_unchecked(buf), + use_tropo_grid_points: WireFormat::parse_unchecked(buf), + use_iono_grid_points: WireFormat::parse_unchecked(buf), + use_iono_tile_sat_los: WireFormat::parse_unchecked(buf), + use_iono_grid_point_sat_los: WireFormat::parse_unchecked(buf), + } + } + } + + /// Use GPS satellites. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseGpsSatellites { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseGpsSatellites { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseGpsSatellites::Nominal => f.write_str("Nominal"), + UseGpsSatellites::Warning => f.write_str("Warning"), + UseGpsSatellites::Alert => f.write_str("Alert"), + UseGpsSatellites::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseGpsSatellites { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseGpsSatellites::Nominal), + 1 => Ok(UseGpsSatellites::Warning), + 2 => Ok(UseGpsSatellites::Alert), + 3 => Ok(UseGpsSatellites::NotMonitored), + i => Err(i), + } + } + } + + /// Use GAL satellites. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseGalSatellites { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseGalSatellites { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseGalSatellites::Nominal => f.write_str("Nominal"), + UseGalSatellites::Warning => f.write_str("Warning"), + UseGalSatellites::Alert => f.write_str("Alert"), + UseGalSatellites::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseGalSatellites { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseGalSatellites::Nominal), + 1 => Ok(UseGalSatellites::Warning), + 2 => Ok(UseGalSatellites::Alert), + 3 => Ok(UseGalSatellites::NotMonitored), + i => Err(i), + } + } + } + + /// Use BDS satellites. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseBdsSatellites { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseBdsSatellites { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseBdsSatellites::Nominal => f.write_str("Nominal"), + UseBdsSatellites::Warning => f.write_str("Warning"), + UseBdsSatellites::Alert => f.write_str("Alert"), + UseBdsSatellites::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseBdsSatellites { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseBdsSatellites::Nominal), + 1 => Ok(UseBdsSatellites::Warning), + 2 => Ok(UseBdsSatellites::Alert), + 3 => Ok(UseBdsSatellites::NotMonitored), + i => Err(i), + } + } + } + + /// Use QZSS satellites. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseQzssSatellites { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseQzssSatellites { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseQzssSatellites::Nominal => f.write_str("Nominal"), + UseQzssSatellites::Warning => f.write_str("Warning"), + UseQzssSatellites::Alert => f.write_str("Alert"), + UseQzssSatellites::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseQzssSatellites { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseQzssSatellites::Nominal), + 1 => Ok(UseQzssSatellites::Warning), + 2 => Ok(UseQzssSatellites::Alert), + 3 => Ok(UseQzssSatellites::NotMonitored), + i => Err(i), + } + } + } + + /// Use tropo grid points. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseTropoGridPoints { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseTropoGridPoints { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseTropoGridPoints::Nominal => f.write_str("Nominal"), + UseTropoGridPoints::Warning => f.write_str("Warning"), + UseTropoGridPoints::Alert => f.write_str("Alert"), + UseTropoGridPoints::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseTropoGridPoints { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseTropoGridPoints::Nominal), + 1 => Ok(UseTropoGridPoints::Warning), + 2 => Ok(UseTropoGridPoints::Alert), + 3 => Ok(UseTropoGridPoints::NotMonitored), + i => Err(i), + } + } + } + + /// Use iono grid points. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseIonoGridPoints { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseIonoGridPoints { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseIonoGridPoints::Nominal => f.write_str("Nominal"), + UseIonoGridPoints::Warning => f.write_str("Warning"), + UseIonoGridPoints::Alert => f.write_str("Alert"), + UseIonoGridPoints::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseIonoGridPoints { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseIonoGridPoints::Nominal), + 1 => Ok(UseIonoGridPoints::Warning), + 2 => Ok(UseIonoGridPoints::Alert), + 3 => Ok(UseIonoGridPoints::NotMonitored), + i => Err(i), + } + } + } + + /// Use iono tile satellite LoS. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseIonoTileSatelliteLoS { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseIonoTileSatelliteLoS { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseIonoTileSatelliteLoS::Nominal => f.write_str("Nominal"), + UseIonoTileSatelliteLoS::Warning => f.write_str("Warning"), + UseIonoTileSatelliteLoS::Alert => f.write_str("Alert"), + UseIonoTileSatelliteLoS::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseIonoTileSatelliteLoS { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseIonoTileSatelliteLoS::Nominal), + 1 => Ok(UseIonoTileSatelliteLoS::Warning), + 2 => Ok(UseIonoTileSatelliteLoS::Alert), + 3 => Ok(UseIonoTileSatelliteLoS::NotMonitored), + i => Err(i), + } + } + } + + /// Use iono grid point satellite LoS. + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] + pub enum UseIonoGridPointSatelliteLoS { + /// Nominal + Nominal = 0, + + /// Warning + Warning = 1, + + /// Alert + Alert = 2, + + /// Not monitored + NotMonitored = 3, + } + + impl std::fmt::Display for UseIonoGridPointSatelliteLoS { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + UseIonoGridPointSatelliteLoS::Nominal => f.write_str("Nominal"), + UseIonoGridPointSatelliteLoS::Warning => f.write_str("Warning"), + UseIonoGridPointSatelliteLoS::Alert => f.write_str("Alert"), + UseIonoGridPointSatelliteLoS::NotMonitored => f.write_str("Not monitored"), + } + } + } + + impl TryFrom for UseIonoGridPointSatelliteLoS { + type Error = u8; + fn try_from(i: u8) -> Result { + match i { + 0 => Ok(UseIonoGridPointSatelliteLoS::Nominal), + 1 => Ok(UseIonoGridPointSatelliteLoS::Warning), + 2 => Ok(UseIonoGridPointSatelliteLoS::Alert), + 3 => Ok(UseIonoGridPointSatelliteLoS::NotMonitored), + i => Err(i), + } + } + } +} + +pub mod msg_ssr_flag_high_level_dep_a { + #![allow(unused_imports)] + + use super::*; + use crate::messages::gnss::*; + use crate::messages::lib::*; + + /// Deprecated + /// + /// Deprecated. + /// + #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] + #[allow(clippy::derive_partial_eq_without_eq)] + #[derive(Debug, PartialEq, Clone)] + pub struct MsgSsrFlagHighLevelDepA { + /// The message sender_id + #[cfg_attr(feature = "serde", serde(skip_serializing, alias = "sender"))] + pub sender_id: Option, + /// GNSS reference time of the observation used to generate the flag. + #[cfg_attr(feature = "serde", serde(rename = "obs_time"))] + pub obs_time: GpsTimeSec, + /// GNSS reference time of the correction associated to the flag. + #[cfg_attr(feature = "serde", serde(rename = "corr_time"))] + pub corr_time: GpsTimeSec, + /// SSR Solution ID. + #[cfg_attr(feature = "serde", serde(rename = "ssr_sol_id"))] + pub ssr_sol_id: u8, + /// Unique identifier of the set this tile belongs to. + #[cfg_attr(feature = "serde", serde(rename = "tile_set_id"))] + pub tile_set_id: u16, + /// Unique identifier of this tile in the tile set. + #[cfg_attr(feature = "serde", serde(rename = "tile_id"))] + pub tile_id: u16, + /// Chain and type of flag. + #[cfg_attr(feature = "serde", serde(rename = "chain_id"))] + pub chain_id: u8, + /// Use GPS satellites. + #[cfg_attr(feature = "serde", serde(rename = "use_gps_sat"))] + pub use_gps_sat: u8, + /// Use GAL satellites. + #[cfg_attr(feature = "serde", serde(rename = "use_gal_sat"))] + pub use_gal_sat: u8, + /// Use BDS satellites. + #[cfg_attr(feature = "serde", serde(rename = "use_bds_sat"))] + pub use_bds_sat: u8, + /// Use QZSS satellites. + #[cfg_attr(feature = "serde", serde(rename = "use_qzss_sat"))] + pub use_qzss_sat: u8, + /// Reserved + #[cfg_attr(feature = "serde", serde(rename = "reserved"))] + pub reserved: [u8; 5], + /// Use tropo grid points. + #[cfg_attr(feature = "serde", serde(rename = "use_tropo_grid_points"))] + pub use_tropo_grid_points: u8, + /// Use iono grid points. + #[cfg_attr(feature = "serde", serde(rename = "use_iono_grid_points"))] + pub use_iono_grid_points: u8, + /// Use iono tile satellite LoS. + #[cfg_attr(feature = "serde", serde(rename = "use_iono_tile_sat_los"))] + pub use_iono_tile_sat_los: u8, + /// Use iono grid point satellite LoS. + #[cfg_attr(feature = "serde", serde(rename = "use_iono_grid_point_sat_los"))] + pub use_iono_grid_point_sat_los: u8, + } + + impl MsgSsrFlagHighLevelDepA { + /// Gets the [UseGpsSatellites][self::UseGpsSatellites] stored in the `use_gps_sat` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseGpsSatellites` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseGpsSatellites` were added. + pub fn use_gps_satellites(&self) -> Result { + get_bit_range!(self.use_gps_sat, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseGpsSatellites][UseGpsSatellites] of the `use_gps_sat` bitfield. + pub fn set_use_gps_satellites(&mut self, use_gps_satellites: UseGpsSatellites) { + set_bit_range!(&mut self.use_gps_sat, use_gps_satellites, u8, u8, 2, 0); + } + + /// Gets the [UseGalSatellites][self::UseGalSatellites] stored in the `use_gal_sat` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseGalSatellites` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseGalSatellites` were added. + pub fn use_gal_satellites(&self) -> Result { + get_bit_range!(self.use_gal_sat, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseGalSatellites][UseGalSatellites] of the `use_gal_sat` bitfield. + pub fn set_use_gal_satellites(&mut self, use_gal_satellites: UseGalSatellites) { + set_bit_range!(&mut self.use_gal_sat, use_gal_satellites, u8, u8, 2, 0); + } + + /// Gets the [UseBdsSatellites][self::UseBdsSatellites] stored in the `use_bds_sat` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseBdsSatellites` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseBdsSatellites` were added. + pub fn use_bds_satellites(&self) -> Result { + get_bit_range!(self.use_bds_sat, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseBdsSatellites][UseBdsSatellites] of the `use_bds_sat` bitfield. + pub fn set_use_bds_satellites(&mut self, use_bds_satellites: UseBdsSatellites) { + set_bit_range!(&mut self.use_bds_sat, use_bds_satellites, u8, u8, 2, 0); + } + + /// Gets the [UseQzssSatellites][self::UseQzssSatellites] stored in the `use_qzss_sat` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseQzssSatellites` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseQzssSatellites` were added. + pub fn use_qzss_satellites(&self) -> Result { + get_bit_range!(self.use_qzss_sat, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseQzssSatellites][UseQzssSatellites] of the `use_qzss_sat` bitfield. + pub fn set_use_qzss_satellites(&mut self, use_qzss_satellites: UseQzssSatellites) { + set_bit_range!(&mut self.use_qzss_sat, use_qzss_satellites, u8, u8, 2, 0); + } + + /// Gets the [UseTropoGridPoints][self::UseTropoGridPoints] stored in the `use_tropo_grid_points` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseTropoGridPoints` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseTropoGridPoints` were added. + pub fn use_tropo_grid_points(&self) -> Result { + get_bit_range!(self.use_tropo_grid_points, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseTropoGridPoints][UseTropoGridPoints] of the `use_tropo_grid_points` bitfield. + pub fn set_use_tropo_grid_points(&mut self, use_tropo_grid_points: UseTropoGridPoints) { + set_bit_range!( + &mut self.use_tropo_grid_points, + use_tropo_grid_points, + u8, + u8, + 2, + 0 + ); + } + + /// Gets the [UseIonoGridPoints][self::UseIonoGridPoints] stored in the `use_iono_grid_points` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseIonoGridPoints` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseIonoGridPoints` were added. + pub fn use_iono_grid_points(&self) -> Result { + get_bit_range!(self.use_iono_grid_points, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseIonoGridPoints][UseIonoGridPoints] of the `use_iono_grid_points` bitfield. + pub fn set_use_iono_grid_points(&mut self, use_iono_grid_points: UseIonoGridPoints) { + set_bit_range!( + &mut self.use_iono_grid_points, + use_iono_grid_points, + u8, + u8, + 2, + 0 + ); + } + + /// Gets the [UseIonoTileSatelliteLoS][self::UseIonoTileSatelliteLoS] stored in the `use_iono_tile_sat_los` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseIonoTileSatelliteLoS` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseIonoTileSatelliteLoS` were added. + pub fn use_iono_tile_satellite_lo_s(&self) -> Result { + get_bit_range!(self.use_iono_tile_sat_los, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseIonoTileSatelliteLoS][UseIonoTileSatelliteLoS] of the `use_iono_tile_sat_los` bitfield. + pub fn set_use_iono_tile_satellite_lo_s( + &mut self, + use_iono_tile_satellite_lo_s: UseIonoTileSatelliteLoS, + ) { + set_bit_range!( + &mut self.use_iono_tile_sat_los, + use_iono_tile_satellite_lo_s, + u8, + u8, + 2, + 0 + ); + } + + /// Gets the [UseIonoGridPointSatelliteLoS][self::UseIonoGridPointSatelliteLoS] stored in the `use_iono_grid_point_sat_los` bitfield. + /// + /// Returns `Ok` if the bitrange contains a known `UseIonoGridPointSatelliteLoS` variant. + /// Otherwise the value of the bitrange is returned as an `Err(u8)`. This may be because of a malformed message, + /// or because new variants of `UseIonoGridPointSatelliteLoS` were added. + pub fn use_iono_grid_point_satellite_lo_s( + &self, + ) -> Result { + get_bit_range!(self.use_iono_grid_point_sat_los, u8, u8, 2, 0).try_into() + } + + /// Set the bitrange corresponding to the [UseIonoGridPointSatelliteLoS][UseIonoGridPointSatelliteLoS] of the `use_iono_grid_point_sat_los` bitfield. + pub fn set_use_iono_grid_point_satellite_lo_s( + &mut self, + use_iono_grid_point_satellite_lo_s: UseIonoGridPointSatelliteLoS, + ) { + set_bit_range!( + &mut self.use_iono_grid_point_sat_los, + use_iono_grid_point_satellite_lo_s, + u8, + u8, + 2, + 0 + ); + } + } + + impl ConcreteMessage for MsgSsrFlagHighLevelDepA { + const MESSAGE_TYPE: u16 = 3001; + const MESSAGE_NAME: &'static str = "MSG_SSR_FLAG_HIGH_LEVEL_DEP_A"; + } + + impl SbpMessage for MsgSsrFlagHighLevelDepA { + fn message_name(&self) -> &'static str { + ::MESSAGE_NAME + } + fn message_type(&self) -> Option { + Some(::MESSAGE_TYPE) + } + fn sender_id(&self) -> Option { + self.sender_id + } + fn set_sender_id(&mut self, new_id: u16) { + self.sender_id = Some(new_id); + } + fn encoded_len(&self) -> usize { + WireFormat::len(self) + crate::HEADER_LEN + crate::CRC_LEN + } + fn is_valid(&self) -> bool { + true + } + fn into_valid_msg(self) -> Result { + Ok(self) + } + } + + impl FriendlyName for MsgSsrFlagHighLevelDepA { + fn friendly_name() -> &'static str { + "SSR FLAG HIGH LEVEL DEP A" + } + } + + impl TryFrom for MsgSsrFlagHighLevelDepA { + type Error = TryFromSbpError; + fn try_from(msg: Sbp) -> Result { + match msg { + Sbp::MsgSsrFlagHighLevelDepA(m) => Ok(m), + _ => Err(TryFromSbpError(msg)), + } + } + } + + impl WireFormat for MsgSsrFlagHighLevelDepA { + const MIN_LEN: usize = ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + <[u8; 5] as WireFormat>::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN + + ::MIN_LEN; + fn len(&self) -> usize { + WireFormat::len(&self.obs_time) + + WireFormat::len(&self.corr_time) + + WireFormat::len(&self.ssr_sol_id) + + WireFormat::len(&self.tile_set_id) + + WireFormat::len(&self.tile_id) + + WireFormat::len(&self.chain_id) + + WireFormat::len(&self.use_gps_sat) + + WireFormat::len(&self.use_gal_sat) + + WireFormat::len(&self.use_bds_sat) + + WireFormat::len(&self.use_qzss_sat) + + WireFormat::len(&self.reserved) + + WireFormat::len(&self.use_tropo_grid_points) + + WireFormat::len(&self.use_iono_grid_points) + + WireFormat::len(&self.use_iono_tile_sat_los) + + WireFormat::len(&self.use_iono_grid_point_sat_los) + } + fn write(&self, buf: &mut B) { + WireFormat::write(&self.obs_time, buf); + WireFormat::write(&self.corr_time, buf); + WireFormat::write(&self.ssr_sol_id, buf); + WireFormat::write(&self.tile_set_id, buf); + WireFormat::write(&self.tile_id, buf); + WireFormat::write(&self.chain_id, buf); + WireFormat::write(&self.use_gps_sat, buf); + WireFormat::write(&self.use_gal_sat, buf); + WireFormat::write(&self.use_bds_sat, buf); + WireFormat::write(&self.use_qzss_sat, buf); + WireFormat::write(&self.reserved, buf); + WireFormat::write(&self.use_tropo_grid_points, buf); + WireFormat::write(&self.use_iono_grid_points, buf); + WireFormat::write(&self.use_iono_tile_sat_los, buf); + WireFormat::write(&self.use_iono_grid_point_sat_los, buf); + } + fn parse_unchecked(buf: &mut B) -> Self { + MsgSsrFlagHighLevelDepA { sender_id: None, obs_time: WireFormat::parse_unchecked(buf), corr_time: WireFormat::parse_unchecked(buf), diff --git a/rust/sbp/src/messages/mod.rs b/rust/sbp/src/messages/mod.rs index e4c86f0d22..754cca7f6d 100644 --- a/rust/sbp/src/messages/mod.rs +++ b/rust/sbp/src/messages/mod.rs @@ -81,6 +81,7 @@ use self::imu::msg_imu_comp::MsgImuComp; use self::imu::msg_imu_raw::MsgImuRaw; use self::integrity::msg_acknowledge::MsgAcknowledge; use self::integrity::msg_ssr_flag_high_level::MsgSsrFlagHighLevel; +use self::integrity::msg_ssr_flag_high_level_dep_a::MsgSsrFlagHighLevelDepA; use self::integrity::msg_ssr_flag_iono_grid_point_sat_los::MsgSsrFlagIonoGridPointSatLos; use self::integrity::msg_ssr_flag_iono_grid_points::MsgSsrFlagIonoGridPoints; use self::integrity::msg_ssr_flag_iono_tile_sat_los::MsgSsrFlagIonoTileSatLos; @@ -769,6 +770,8 @@ pub enum Sbp { MsgWheeltick(MsgWheeltick), /// Compensated IMU data MsgImuComp(MsgImuComp), + /// Deprecated + MsgSsrFlagHighLevelDepA(MsgSsrFlagHighLevelDepA), /// High level integrity flags MsgSsrFlagHighLevel(MsgSsrFlagHighLevel), /// List of satellites which are faulty, per constellation @@ -1477,6 +1480,10 @@ impl<'de> serde::Deserialize<'de> for Sbp { Some(MsgImuComp::MESSAGE_TYPE) => { serde_json::from_value::(value).map(Sbp::MsgImuComp) } + Some(MsgSsrFlagHighLevelDepA::MESSAGE_TYPE) => { + serde_json::from_value::(value) + .map(Sbp::MsgSsrFlagHighLevelDepA) + } Some(MsgSsrFlagHighLevel::MESSAGE_TYPE) => { serde_json::from_value::(value).map(Sbp::MsgSsrFlagHighLevel) } @@ -2194,6 +2201,9 @@ impl Sbp { MsgOdometry::MESSAGE_TYPE => MsgOdometry::parse(&mut payload).map(Sbp::MsgOdometry), MsgWheeltick::MESSAGE_TYPE => MsgWheeltick::parse(&mut payload).map(Sbp::MsgWheeltick), MsgImuComp::MESSAGE_TYPE => MsgImuComp::parse(&mut payload).map(Sbp::MsgImuComp), + MsgSsrFlagHighLevelDepA::MESSAGE_TYPE => { + MsgSsrFlagHighLevelDepA::parse(&mut payload).map(Sbp::MsgSsrFlagHighLevelDepA) + } MsgSsrFlagHighLevel::MESSAGE_TYPE => { MsgSsrFlagHighLevel::parse(&mut payload).map(Sbp::MsgSsrFlagHighLevel) } @@ -2551,6 +2561,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.message_name(), Sbp::MsgWheeltick(msg) => msg.message_name(), Sbp::MsgImuComp(msg) => msg.message_name(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.message_name(), Sbp::MsgSsrFlagHighLevel(msg) => msg.message_name(), Sbp::MsgSsrFlagSatellites(msg) => msg.message_name(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.message_name(), @@ -2797,6 +2808,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.message_type(), Sbp::MsgWheeltick(msg) => msg.message_type(), Sbp::MsgImuComp(msg) => msg.message_type(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.message_type(), Sbp::MsgSsrFlagHighLevel(msg) => msg.message_type(), Sbp::MsgSsrFlagSatellites(msg) => msg.message_type(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.message_type(), @@ -3043,6 +3055,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.sender_id(), Sbp::MsgWheeltick(msg) => msg.sender_id(), Sbp::MsgImuComp(msg) => msg.sender_id(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.sender_id(), Sbp::MsgSsrFlagHighLevel(msg) => msg.sender_id(), Sbp::MsgSsrFlagSatellites(msg) => msg.sender_id(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.sender_id(), @@ -3289,6 +3302,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.set_sender_id(new_id), Sbp::MsgWheeltick(msg) => msg.set_sender_id(new_id), Sbp::MsgImuComp(msg) => msg.set_sender_id(new_id), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.set_sender_id(new_id), Sbp::MsgSsrFlagHighLevel(msg) => msg.set_sender_id(new_id), Sbp::MsgSsrFlagSatellites(msg) => msg.set_sender_id(new_id), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.set_sender_id(new_id), @@ -3535,6 +3549,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.encoded_len(), Sbp::MsgWheeltick(msg) => msg.encoded_len(), Sbp::MsgImuComp(msg) => msg.encoded_len(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.encoded_len(), Sbp::MsgSsrFlagHighLevel(msg) => msg.encoded_len(), Sbp::MsgSsrFlagSatellites(msg) => msg.encoded_len(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.encoded_len(), @@ -3784,6 +3799,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.gps_time(), Sbp::MsgWheeltick(msg) => msg.gps_time(), Sbp::MsgImuComp(msg) => msg.gps_time(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.gps_time(), Sbp::MsgSsrFlagHighLevel(msg) => msg.gps_time(), Sbp::MsgSsrFlagSatellites(msg) => msg.gps_time(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.gps_time(), @@ -4030,6 +4046,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.friendly_name(), Sbp::MsgWheeltick(msg) => msg.friendly_name(), Sbp::MsgImuComp(msg) => msg.friendly_name(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.friendly_name(), Sbp::MsgSsrFlagHighLevel(msg) => msg.friendly_name(), Sbp::MsgSsrFlagSatellites(msg) => msg.friendly_name(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.friendly_name(), @@ -4276,6 +4293,7 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => msg.is_valid(), Sbp::MsgWheeltick(msg) => msg.is_valid(), Sbp::MsgImuComp(msg) => msg.is_valid(), + Sbp::MsgSsrFlagHighLevelDepA(msg) => msg.is_valid(), Sbp::MsgSsrFlagHighLevel(msg) => msg.is_valid(), Sbp::MsgSsrFlagSatellites(msg) => msg.is_valid(), Sbp::MsgSsrFlagTropoGridPoints(msg) => msg.is_valid(), @@ -4583,6 +4601,9 @@ impl SbpMessage for Sbp { Sbp::MsgOdometry(msg) => Ok(Sbp::MsgOdometry(msg.into_valid_msg()?)), Sbp::MsgWheeltick(msg) => Ok(Sbp::MsgWheeltick(msg.into_valid_msg()?)), Sbp::MsgImuComp(msg) => Ok(Sbp::MsgImuComp(msg.into_valid_msg()?)), + Sbp::MsgSsrFlagHighLevelDepA(msg) => { + Ok(Sbp::MsgSsrFlagHighLevelDepA(msg.into_valid_msg()?)) + } Sbp::MsgSsrFlagHighLevel(msg) => Ok(Sbp::MsgSsrFlagHighLevel(msg.into_valid_msg()?)), Sbp::MsgSsrFlagSatellites(msg) => Ok(Sbp::MsgSsrFlagSatellites(msg.into_valid_msg()?)), Sbp::MsgSsrFlagTropoGridPoints(msg) => { @@ -4878,6 +4899,7 @@ impl WireFormat for Sbp { Sbp::MsgOdometry(msg) => WireFormat::write(msg, buf), Sbp::MsgWheeltick(msg) => WireFormat::write(msg, buf), Sbp::MsgImuComp(msg) => WireFormat::write(msg, buf), + Sbp::MsgSsrFlagHighLevelDepA(msg) => WireFormat::write(msg, buf), Sbp::MsgSsrFlagHighLevel(msg) => WireFormat::write(msg, buf), Sbp::MsgSsrFlagSatellites(msg) => WireFormat::write(msg, buf), Sbp::MsgSsrFlagTropoGridPoints(msg) => WireFormat::write(msg, buf), @@ -5124,6 +5146,7 @@ impl WireFormat for Sbp { Sbp::MsgOdometry(msg) => WireFormat::len(msg), Sbp::MsgWheeltick(msg) => WireFormat::len(msg), Sbp::MsgImuComp(msg) => WireFormat::len(msg), + Sbp::MsgSsrFlagHighLevelDepA(msg) => WireFormat::len(msg), Sbp::MsgSsrFlagHighLevel(msg) => WireFormat::len(msg), Sbp::MsgSsrFlagSatellites(msg) => WireFormat::len(msg), Sbp::MsgSsrFlagTropoGridPoints(msg) => WireFormat::len(msg), @@ -6314,6 +6337,12 @@ impl From for Sbp { } } +impl From for Sbp { + fn from(msg: MsgSsrFlagHighLevelDepA) -> Self { + Sbp::MsgSsrFlagHighLevelDepA(msg) + } +} + impl From for Sbp { fn from(msg: MsgSsrFlagHighLevel) -> Self { Sbp::MsgSsrFlagHighLevel(msg) diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs index cbccb955c2..6a735022ed 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs @@ -22,8 +22,8 @@ use crate::*; fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { { let mut payload = Cursor::new(vec![ - 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, - 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + 85, 186, 11, 66, 0, 37, 180, 0, 0, 0, 3, 0, 109, 1, 0, 0, 6, 0, 104, 1, 0, 0, 6, 0, 10, + 20, 0, 30, 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 177, 238, ]); // Test the round trip payload parsing @@ -37,8 +37,8 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { sbp::messages::Sbp::MsgSsrFlagHighLevel(msg) => { let msg_type = msg.message_type().unwrap(); assert_eq!( - msg_type, 3001, - "Incorrect message type, expected 3001, is {msg_type}" + msg_type, 3002, + "Incorrect message type, expected 3002, is {msg_type}" ); let sender_id = msg.sender_id().unwrap(); assert_eq!( @@ -46,19 +46,19 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( - msg.chain_id, 40, - "incorrect value for chain_id, expected 40, is {}", - msg.chain_id + msg.iono_corr_time.tow, 365, + "incorrect value for iono_corr_time.tow, expected 365, is {}", + msg.iono_corr_time.tow ); assert_eq!( - msg.corr_time.tow, 360, - "incorrect value for corr_time.tow, expected 360, is {}", - msg.corr_time.tow + msg.iono_corr_time.wn, 6, + "incorrect value for iono_corr_time.wn, expected 6, is {}", + msg.iono_corr_time.wn ); assert_eq!( - msg.corr_time.wn, 6, - "incorrect value for corr_time.wn, expected 6, is {}", - msg.corr_time.wn + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id ); assert_eq!( msg.obs_time.tow, 180, @@ -95,6 +95,16 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect value for reserved[4], expected 0, is {}", msg.reserved[4] ); + assert_eq!( + msg.sat_corr_time.tow, 360, + "incorrect value for sat_corr_time.tow, expected 360, is {}", + msg.sat_corr_time.tow + ); + assert_eq!( + msg.sat_corr_time.wn, 6, + "incorrect value for sat_corr_time.wn, expected 6, is {}", + msg.sat_corr_time.wn + ); assert_eq!( msg.ssr_sol_id, 10, "incorrect value for ssr_sol_id, expected 10, is {}", @@ -169,7 +179,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { #[cfg(feature = "json")] fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { { - let json_input = r#"{"obs_time": {"tow": 180, "wn": 3}, "corr_time": {"tow": 360, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, "preamble": 85, "msg_type": 3001, "sender": 66, "length": 31, "payload": "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 873}"#.as_bytes(); + let json_input = r#"{"obs_time": {"tow": 180, "wn": 3}, "sat_corr_time": {"tow": 360, "wn": 6}, "iono_corr_time": {"tow": 365, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, "preamble": 85, "msg_type": 3002, "sender": 66, "length": 37, "payload": "tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 61105}"#.as_bytes(); let sbp_msg = { // JSON to SBP message from payload @@ -193,8 +203,8 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { sbp::messages::Sbp::MsgSsrFlagHighLevel(msg) => { let msg_type = msg.message_type().unwrap(); assert_eq!( - msg_type, 3001, - "Incorrect message type, expected 3001, is {msg_type}" + msg_type, 3002, + "Incorrect message type, expected 3002, is {msg_type}" ); let sender_id = msg.sender_id().unwrap(); assert_eq!( @@ -202,19 +212,19 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( - msg.chain_id, 40, - "incorrect value for chain_id, expected 40, is {}", - msg.chain_id + msg.iono_corr_time.tow, 365, + "incorrect value for iono_corr_time.tow, expected 365, is {}", + msg.iono_corr_time.tow ); assert_eq!( - msg.corr_time.tow, 360, - "incorrect value for corr_time.tow, expected 360, is {}", - msg.corr_time.tow + msg.iono_corr_time.wn, 6, + "incorrect value for iono_corr_time.wn, expected 6, is {}", + msg.iono_corr_time.wn ); assert_eq!( - msg.corr_time.wn, 6, - "incorrect value for corr_time.wn, expected 6, is {}", - msg.corr_time.wn + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id ); assert_eq!( msg.obs_time.tow, 180, @@ -251,6 +261,16 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect value for reserved[4], expected 0, is {}", msg.reserved[4] ); + assert_eq!( + msg.sat_corr_time.tow, 360, + "incorrect value for sat_corr_time.tow, expected 360, is {}", + msg.sat_corr_time.tow + ); + assert_eq!( + msg.sat_corr_time.wn, 6, + "incorrect value for sat_corr_time.wn, expected 6, is {}", + msg.sat_corr_time.wn + ); assert_eq!( msg.ssr_sol_id, 10, "incorrect value for ssr_sol_id, expected 10, is {}", @@ -325,8 +345,8 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { { let mut payload = Cursor::new(vec![ - 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, - 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + 85, 186, 11, 66, 0, 37, 180, 0, 0, 0, 3, 0, 109, 1, 0, 0, 6, 0, 104, 1, 0, 0, 6, 0, 10, + 20, 0, 30, 0, 40, 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 177, 238, ]); // Construct sbp message @@ -357,8 +377,8 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { sbp::messages::Sbp::MsgSsrFlagHighLevel(msg) => { let msg_type = msg.message_type().unwrap(); assert_eq!( - msg_type, 3001, - "Incorrect message type, expected 3001, is {msg_type}" + msg_type, 3002, + "Incorrect message type, expected 3002, is {msg_type}" ); let sender_id = msg.sender_id().unwrap(); assert_eq!( @@ -366,19 +386,19 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( - msg.chain_id, 40, - "incorrect value for chain_id, expected 40, is {}", - msg.chain_id + msg.iono_corr_time.tow, 365, + "incorrect value for iono_corr_time.tow, expected 365, is {}", + msg.iono_corr_time.tow ); assert_eq!( - msg.corr_time.tow, 360, - "incorrect value for corr_time.tow, expected 360, is {}", - msg.corr_time.tow + msg.iono_corr_time.wn, 6, + "incorrect value for iono_corr_time.wn, expected 6, is {}", + msg.iono_corr_time.wn ); assert_eq!( - msg.corr_time.wn, 6, - "incorrect value for corr_time.wn, expected 6, is {}", - msg.corr_time.wn + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id ); assert_eq!( msg.obs_time.tow, 180, @@ -415,6 +435,16 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { "incorrect value for reserved[4], expected 0, is {}", msg.reserved[4] ); + assert_eq!( + msg.sat_corr_time.tow, 360, + "incorrect value for sat_corr_time.tow, expected 360, is {}", + msg.sat_corr_time.tow + ); + assert_eq!( + msg.sat_corr_time.wn, 6, + "incorrect value for sat_corr_time.wn, expected 6, is {}", + msg.sat_corr_time.wn + ); assert_eq!( msg.ssr_sol_id, 10, "incorrect value for ssr_sol_id, expected 10, is {}", diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a.rs new file mode 100644 index 0000000000..4d47bb0577 --- /dev/null +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a.rs @@ -0,0 +1,481 @@ +// +// Copyright (C) 2019-2021 Swift Navigation Inc. +// Contact: https://support.swiftnav.com +// +// This source is subject to the license found in the file 'LICENSE' which must +// be distributed together with this source. All other rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, +// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. + +// This file was auto-generated from spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml by generate.py. Do not modify by hand! + +use crate::*; + +/// Tests [`sbp::iter_messages`], from payload into SBP messages +/// +/// Asserts: +/// - SBP fields equates to that of the field +/// - Payload is identical +#[test] +fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a() { + { + let mut payload = Cursor::new(vec![ + 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, + 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + ]); + + // Test the round trip payload parsing + let sbp_msg = { + let mut msgs = iter_messages(&mut payload); + msgs.next() + .expect("no message found") + .expect("failed to parse message") + }; + match &sbp_msg { + sbp::messages::Sbp::MsgSsrFlagHighLevelDepA(msg) => { + let msg_type = msg.message_type().unwrap(); + assert_eq!( + msg_type, 3001, + "Incorrect message type, expected 3001, is {msg_type}" + ); + let sender_id = msg.sender_id().unwrap(); + assert_eq!( + sender_id, 0x0042, + "incorrect sender id, expected 0x0042, is {sender_id}" + ); + assert_eq!( + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id + ); + assert_eq!( + msg.corr_time.tow, 360, + "incorrect value for corr_time.tow, expected 360, is {}", + msg.corr_time.tow + ); + assert_eq!( + msg.corr_time.wn, 6, + "incorrect value for corr_time.wn, expected 6, is {}", + msg.corr_time.wn + ); + assert_eq!( + msg.obs_time.tow, 180, + "incorrect value for obs_time.tow, expected 180, is {}", + msg.obs_time.tow + ); + assert_eq!( + msg.obs_time.wn, 3, + "incorrect value for obs_time.wn, expected 3, is {}", + msg.obs_time.wn + ); + assert_eq!( + msg.reserved[0], 0, + "incorrect value for reserved[0], expected 0, is {}", + msg.reserved[0] + ); + assert_eq!( + msg.reserved[1], 0, + "incorrect value for reserved[1], expected 0, is {}", + msg.reserved[1] + ); + assert_eq!( + msg.reserved[2], 0, + "incorrect value for reserved[2], expected 0, is {}", + msg.reserved[2] + ); + assert_eq!( + msg.reserved[3], 0, + "incorrect value for reserved[3], expected 0, is {}", + msg.reserved[3] + ); + assert_eq!( + msg.reserved[4], 0, + "incorrect value for reserved[4], expected 0, is {}", + msg.reserved[4] + ); + assert_eq!( + msg.ssr_sol_id, 10, + "incorrect value for ssr_sol_id, expected 10, is {}", + msg.ssr_sol_id + ); + assert_eq!( + msg.tile_id, 30, + "incorrect value for tile_id, expected 30, is {}", + msg.tile_id + ); + assert_eq!( + msg.tile_set_id, 20, + "incorrect value for tile_set_id, expected 20, is {}", + msg.tile_set_id + ); + assert_eq!( + msg.use_bds_sat, 3, + "incorrect value for use_bds_sat, expected 3, is {}", + msg.use_bds_sat + ); + assert_eq!( + msg.use_gal_sat, 2, + "incorrect value for use_gal_sat, expected 2, is {}", + msg.use_gal_sat + ); + assert_eq!( + msg.use_gps_sat, 1, + "incorrect value for use_gps_sat, expected 1, is {}", + msg.use_gps_sat + ); + assert_eq!( + msg.use_iono_grid_point_sat_los, 8, + "incorrect value for use_iono_grid_point_sat_los, expected 8, is {}", + msg.use_iono_grid_point_sat_los + ); + assert_eq!( + msg.use_iono_grid_points, 6, + "incorrect value for use_iono_grid_points, expected 6, is {}", + msg.use_iono_grid_points + ); + assert_eq!( + msg.use_iono_tile_sat_los, 7, + "incorrect value for use_iono_tile_sat_los, expected 7, is {}", + msg.use_iono_tile_sat_los + ); + assert_eq!( + msg.use_qzss_sat, 4, + "incorrect value for use_qzss_sat, expected 4, is {}", + msg.use_qzss_sat + ); + assert_eq!( + msg.use_tropo_grid_points, 5, + "incorrect value for use_tropo_grid_points, expected 5, is {}", + msg.use_tropo_grid_points + ); + } + _ => panic!("Invalid message type! Expected a MsgSsrFlagHighLevelDepA"), + }; + let frame = sbp::to_vec(&sbp_msg).unwrap(); + assert_eq!(frame, payload.into_inner()); + } +} + +/// Tests [`sbp::json::iter_messages`] for JSON payload -> SBP message +/// and [`sbp::json::iter_messages_from_fields`] for JSON fields -> SBP message. +/// +/// Asserts: +/// - SBP message constructed via payload is identical to from fields +/// - SBP fields equates to that of the field +/// - Payload is identical +#[test] +#[cfg(feature = "json")] +fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a() { + { + let json_input = r#"{"obs_time": {"tow": 180, "wn": 3}, "corr_time": {"tow": 360, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, "preamble": 85, "msg_type": 3001, "sender": 66, "length": 31, "payload": "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 873}"#.as_bytes(); + + let sbp_msg = { + // JSON to SBP message from payload + let mut iter = json2sbp_iter_msg(json_input); + let from_payload = iter + .next() + .expect("no message found") + .expect("failed to parse message"); + + // JSON to SBP message from fields + let mut iter = iter_messages_from_fields(json_input); + let from_fields = iter + .next() + .expect("no message found") + .expect("failed to parse message"); + + assert_eq!(from_fields, from_payload); + from_fields + }; + match &sbp_msg { + sbp::messages::Sbp::MsgSsrFlagHighLevelDepA(msg) => { + let msg_type = msg.message_type().unwrap(); + assert_eq!( + msg_type, 3001, + "Incorrect message type, expected 3001, is {msg_type}" + ); + let sender_id = msg.sender_id().unwrap(); + assert_eq!( + sender_id, 0x0042, + "incorrect sender id, expected 0x0042, is {sender_id}" + ); + assert_eq!( + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id + ); + assert_eq!( + msg.corr_time.tow, 360, + "incorrect value for corr_time.tow, expected 360, is {}", + msg.corr_time.tow + ); + assert_eq!( + msg.corr_time.wn, 6, + "incorrect value for corr_time.wn, expected 6, is {}", + msg.corr_time.wn + ); + assert_eq!( + msg.obs_time.tow, 180, + "incorrect value for obs_time.tow, expected 180, is {}", + msg.obs_time.tow + ); + assert_eq!( + msg.obs_time.wn, 3, + "incorrect value for obs_time.wn, expected 3, is {}", + msg.obs_time.wn + ); + assert_eq!( + msg.reserved[0], 0, + "incorrect value for reserved[0], expected 0, is {}", + msg.reserved[0] + ); + assert_eq!( + msg.reserved[1], 0, + "incorrect value for reserved[1], expected 0, is {}", + msg.reserved[1] + ); + assert_eq!( + msg.reserved[2], 0, + "incorrect value for reserved[2], expected 0, is {}", + msg.reserved[2] + ); + assert_eq!( + msg.reserved[3], 0, + "incorrect value for reserved[3], expected 0, is {}", + msg.reserved[3] + ); + assert_eq!( + msg.reserved[4], 0, + "incorrect value for reserved[4], expected 0, is {}", + msg.reserved[4] + ); + assert_eq!( + msg.ssr_sol_id, 10, + "incorrect value for ssr_sol_id, expected 10, is {}", + msg.ssr_sol_id + ); + assert_eq!( + msg.tile_id, 30, + "incorrect value for tile_id, expected 30, is {}", + msg.tile_id + ); + assert_eq!( + msg.tile_set_id, 20, + "incorrect value for tile_set_id, expected 20, is {}", + msg.tile_set_id + ); + assert_eq!( + msg.use_bds_sat, 3, + "incorrect value for use_bds_sat, expected 3, is {}", + msg.use_bds_sat + ); + assert_eq!( + msg.use_gal_sat, 2, + "incorrect value for use_gal_sat, expected 2, is {}", + msg.use_gal_sat + ); + assert_eq!( + msg.use_gps_sat, 1, + "incorrect value for use_gps_sat, expected 1, is {}", + msg.use_gps_sat + ); + assert_eq!( + msg.use_iono_grid_point_sat_los, 8, + "incorrect value for use_iono_grid_point_sat_los, expected 8, is {}", + msg.use_iono_grid_point_sat_los + ); + assert_eq!( + msg.use_iono_grid_points, 6, + "incorrect value for use_iono_grid_points, expected 6, is {}", + msg.use_iono_grid_points + ); + assert_eq!( + msg.use_iono_tile_sat_los, 7, + "incorrect value for use_iono_tile_sat_los, expected 7, is {}", + msg.use_iono_tile_sat_los + ); + assert_eq!( + msg.use_qzss_sat, 4, + "incorrect value for use_qzss_sat, expected 4, is {}", + msg.use_qzss_sat + ); + assert_eq!( + msg.use_tropo_grid_points, 5, + "incorrect value for use_tropo_grid_points, expected 5, is {}", + msg.use_tropo_grid_points + ); + } + _ => panic!("Invalid message type! Expected a MsgSsrFlagHighLevelDepA"), + }; + } +} + +/// Tests [`sbp::json::JsonEncoder`] for roundtrip SBP message -> JSON +/// +/// Assumes: +/// - [`self::test_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a`] passes +/// +/// Asserts: +/// - SBP fields equates to that of the field +/// - Payload is identical +#[test] +#[cfg(feature = "json")] +fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a() { + { + let mut payload = Cursor::new(vec![ + 85, 185, 11, 66, 0, 31, 180, 0, 0, 0, 3, 0, 104, 1, 0, 0, 6, 0, 10, 20, 0, 30, 0, 40, + 1, 2, 3, 4, 0, 0, 0, 0, 0, 5, 6, 7, 8, 105, 3, + ]); + + // Construct sbp message + let sbp_msg = { + let mut msgs = iter_messages(&mut payload); + msgs.next() + .expect("no message found") + .expect("failed to parse message") + }; + + let mut json_buffer = vec![]; + // Populate json buffer, CompactFormatter + sbp::json::JsonEncoder::new(&mut json_buffer, sbp::json::CompactFormatter {}) + .send(&sbp_msg) + .unwrap(); + + // Reconstruct Sbp message from json fields, roundtrip + let sbp_msg = sbp::messages::Sbp::MsgSsrFlagHighLevelDepA( + serde_json::from_str( + std::str::from_utf8(json_buffer.as_slice()) + .unwrap() + .to_string() + .as_str(), + ) + .unwrap(), + ); + match &sbp_msg { + sbp::messages::Sbp::MsgSsrFlagHighLevelDepA(msg) => { + let msg_type = msg.message_type().unwrap(); + assert_eq!( + msg_type, 3001, + "Incorrect message type, expected 3001, is {msg_type}" + ); + let sender_id = msg.sender_id().unwrap(); + assert_eq!( + sender_id, 0x0042, + "incorrect sender id, expected 0x0042, is {sender_id}" + ); + assert_eq!( + msg.chain_id, 40, + "incorrect value for chain_id, expected 40, is {}", + msg.chain_id + ); + assert_eq!( + msg.corr_time.tow, 360, + "incorrect value for corr_time.tow, expected 360, is {}", + msg.corr_time.tow + ); + assert_eq!( + msg.corr_time.wn, 6, + "incorrect value for corr_time.wn, expected 6, is {}", + msg.corr_time.wn + ); + assert_eq!( + msg.obs_time.tow, 180, + "incorrect value for obs_time.tow, expected 180, is {}", + msg.obs_time.tow + ); + assert_eq!( + msg.obs_time.wn, 3, + "incorrect value for obs_time.wn, expected 3, is {}", + msg.obs_time.wn + ); + assert_eq!( + msg.reserved[0], 0, + "incorrect value for reserved[0], expected 0, is {}", + msg.reserved[0] + ); + assert_eq!( + msg.reserved[1], 0, + "incorrect value for reserved[1], expected 0, is {}", + msg.reserved[1] + ); + assert_eq!( + msg.reserved[2], 0, + "incorrect value for reserved[2], expected 0, is {}", + msg.reserved[2] + ); + assert_eq!( + msg.reserved[3], 0, + "incorrect value for reserved[3], expected 0, is {}", + msg.reserved[3] + ); + assert_eq!( + msg.reserved[4], 0, + "incorrect value for reserved[4], expected 0, is {}", + msg.reserved[4] + ); + assert_eq!( + msg.ssr_sol_id, 10, + "incorrect value for ssr_sol_id, expected 10, is {}", + msg.ssr_sol_id + ); + assert_eq!( + msg.tile_id, 30, + "incorrect value for tile_id, expected 30, is {}", + msg.tile_id + ); + assert_eq!( + msg.tile_set_id, 20, + "incorrect value for tile_set_id, expected 20, is {}", + msg.tile_set_id + ); + assert_eq!( + msg.use_bds_sat, 3, + "incorrect value for use_bds_sat, expected 3, is {}", + msg.use_bds_sat + ); + assert_eq!( + msg.use_gal_sat, 2, + "incorrect value for use_gal_sat, expected 2, is {}", + msg.use_gal_sat + ); + assert_eq!( + msg.use_gps_sat, 1, + "incorrect value for use_gps_sat, expected 1, is {}", + msg.use_gps_sat + ); + assert_eq!( + msg.use_iono_grid_point_sat_los, 8, + "incorrect value for use_iono_grid_point_sat_los, expected 8, is {}", + msg.use_iono_grid_point_sat_los + ); + assert_eq!( + msg.use_iono_grid_points, 6, + "incorrect value for use_iono_grid_points, expected 6, is {}", + msg.use_iono_grid_points + ); + assert_eq!( + msg.use_iono_tile_sat_los, 7, + "incorrect value for use_iono_tile_sat_los, expected 7, is {}", + msg.use_iono_tile_sat_los + ); + assert_eq!( + msg.use_qzss_sat, 4, + "incorrect value for use_qzss_sat, expected 4, is {}", + msg.use_qzss_sat + ); + assert_eq!( + msg.use_tropo_grid_points, 5, + "incorrect value for use_tropo_grid_points, expected 5, is {}", + msg.use_tropo_grid_points + ); + } + _ => panic!("Invalid message type! Expected a MsgSsrFlagHighLevelDepA"), + }; + + // Check payload is still identical + let frame = sbp::to_vec(&sbp_msg).unwrap(); + assert_eq!(frame, payload.into_inner()); + } +} diff --git a/rust/sbp/tests/integration/main.rs b/rust/sbp/tests/integration/main.rs index db3f62f8a8..9d03f17798 100644 --- a/rust/sbp/tests/integration/main.rs +++ b/rust/sbp/tests/integration/main.rs @@ -48,6 +48,7 @@ mod auto_check_sbp_imu_msg_imu_comp; mod auto_check_sbp_imu_msg_imu_raw; mod auto_check_sbp_integrity_msg_acknowledge; mod auto_check_sbp_integrity_msg_ssr_flag_high_level; +mod auto_check_sbp_integrity_msg_ssr_flag_high_level_dep_a; mod auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los; mod auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points; mod auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los; diff --git a/sbpjson/elm/SbpJson.elm b/sbpjson/elm/SbpJson.elm index 17b4fc6346..e44bcf73f1 100644 --- a/sbpjson/elm/SbpJson.elm +++ b/sbpjson/elm/SbpJson.elm @@ -2854,9 +2854,10 @@ SSR_INTEGRITY_USAGE_NOT_MONITORED: Unable to verify the integrity flag of elemen group. -} type alias MsgSsrFlagHighLevel = - { chainID : Int - , corrTime : GpsTimeSEC + { atmoCorrTime : GpsTimeSEC + , chainID : Int , obsTime : GpsTimeSEC + , satCorrTime : GpsTimeSEC , ssrSolID : Int , tileID : Int , tileSetID : Int @@ -7278,9 +7279,10 @@ encodeCodePhaseBiasesSatSig x = msgSsrFlagHighLevel : Jdec.Decoder MsgSsrFlagHighLevel msgSsrFlagHighLevel = Jpipe.decode MsgSsrFlagHighLevel + |> Jpipe.required "iono_corr_time" gpsTimeSEC |> Jpipe.required "chain_id" Jdec.int - |> Jpipe.required "corr_time" gpsTimeSEC |> Jpipe.required "obs_time" gpsTimeSEC + |> Jpipe.required "sat_corr_time" gpsTimeSEC |> Jpipe.required "ssr_sol_id" Jdec.int |> Jpipe.required "tile_id" Jdec.int |> Jpipe.required "tile_set_id" Jdec.int @@ -7296,9 +7298,10 @@ msgSsrFlagHighLevel = encodeMsgSsrFlagHighLevel : MsgSsrFlagHighLevel -> Jenc.Value encodeMsgSsrFlagHighLevel x = Jenc.object - [ ("chain_id", Jenc.int x.chainID) - , ("corr_time", encodeGpsTimeSEC x.corrTime) + [ ("iono_corr_time", encodeGpsTimeSEC x.atmoCorrTime) + , ("chain_id", Jenc.int x.chainID) , ("obs_time", encodeGpsTimeSEC x.obsTime) + , ("sat_corr_time", encodeGpsTimeSEC x.satCorrTime) , ("ssr_sol_id", Jenc.int x.ssrSolID) , ("tile_id", Jenc.int x.tileID) , ("tile_set_id", Jenc.int x.tileSetID) diff --git a/sbpjson/typescript/SbpJson.ts b/sbpjson/typescript/SbpJson.ts index 21d23c70d5..9b8e073b8e 100644 --- a/sbpjson/typescript/SbpJson.ts +++ b/sbpjson/typescript/SbpJson.ts @@ -2445,9 +2445,10 @@ export interface CodePhaseBiasesSatSig { * group. */ export interface MsgSsrFlagHighLevel { + iono_corr_time: GpsTimeSEC; chain_id: number; - corr_time: GpsTimeSEC; obs_time: GpsTimeSEC; + sat_corr_time: GpsTimeSEC; ssr_sol_id: number; tile_id: number; tile_set_id: number; @@ -6364,9 +6365,10 @@ const typeMap: any = { { json: "signal_id", js: "signal_id", typ: 0 }, ], "any"), "MsgSsrFlagHighLevel": o([ + { json: "iono_corr_time", js: "iono_corr_time", typ: r("GpsTimeSEC") }, { json: "chain_id", js: "chain_id", typ: 0 }, - { json: "corr_time", js: "corr_time", typ: r("GpsTimeSEC") }, { json: "obs_time", js: "obs_time", typ: r("GpsTimeSEC") }, + { json: "sat_corr_time", js: "sat_corr_time", typ: r("GpsTimeSEC") }, { json: "ssr_sol_id", js: "ssr_sol_id", typ: 0 }, { json: "tile_id", js: "tile_id", typ: 0 }, { json: "tile_set_id", js: "tile_set_id", typ: 0 }, diff --git a/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml b/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml index 699affdfcf..16710efd96 100644 --- a/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml +++ b/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevel.yaml @@ -1,46 +1,49 @@ description: Unit tests for swiftnav.sbp.integrity MsgSsrFlagHighLevel -generated_on: 2022-04-21 # manually generated +generated_on: 2025-07-09 # manually generated package: sbp.integrity tests: - -- msg: - fields: - obs_time: - tow: 180 - wn: 3 - corr_time: - tow: 360 - wn: 6 - ssr_sol_id: 10 - tile_set_id: 20 - tile_id: 30 - chain_id: 40 - use_gps_sat: 1 - use_gal_sat: 2 - use_bds_sat: 3 - use_qzss_sat: 4 - reserved: - - 0 - - 0 - - 0 - - 0 - - 0 - use_tropo_grid_points: 5 - use_iono_grid_points: 6 - use_iono_tile_sat_los: 7 - use_iono_grid_point_sat_los: 8 - module: sbp.integrity - name: MsgSsrFlagHighLevel - msg_type: '3001' - raw_json: '{"obs_time": {"tow": 180, "wn": 3}, "corr_time": {"tow": 360, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, - "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], - "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, - "preamble": 85, "msg_type": 3001, "sender": 66, "length": 31, "payload": "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 873}' - raw_packet: VbkLQgAftAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCGkD - sbp: - preamble: '0x55' - msg_type: '0x0BB9' - sender: '0x0042' - length: 31 - payload: tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA== - crc: '0x0369' + - msg: + fields: + obs_time: + tow: 180 + wn: 3 + sat_corr_time: + tow: 360 + wn: 6 + iono_corr_time: + tow: 365 + wn: 6 + ssr_sol_id: 10 + tile_set_id: 20 + tile_id: 30 + chain_id: 40 + use_gps_sat: 1 + use_gal_sat: 2 + use_bds_sat: 3 + use_qzss_sat: 4 + reserved: + - 0 + - 0 + - 0 + - 0 + - 0 + use_tropo_grid_points: 5 + use_iono_grid_points: 6 + use_iono_tile_sat_los: 7 + use_iono_grid_point_sat_los: 8 + module: sbp.integrity + name: MsgSsrFlagHighLevel + msg_type: "3002" + raw_json: + '{"obs_time": {"tow": 180, "wn": 3}, "sat_corr_time": {"tow": 360, "wn": 6}, "iono_corr_time": {"tow": 365, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, + "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], + "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, + "preamble": 85, "msg_type": 3002, "sender": 66, "length": 37, "payload": "tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 61105}' + raw_packet: VboLQgAltAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCLHu + sbp: + preamble: "0x55" + msg_type: "0x0BBA" + sender: "0x0042" + length: 37 + payload: tAAAAAMAbQEAAAYAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA== + crc: "0xEEB1" diff --git a/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml b/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml new file mode 100644 index 0000000000..91e5105370 --- /dev/null +++ b/spec/tests/yaml/swiftnav/sbp/integrity/test_MsgSsrFlagHighLevelDepA.yaml @@ -0,0 +1,46 @@ +description: Unit tests for swiftnav.sbp.integrity MsgSsrFlagHighLevelDepA +generated_on: 2025-07-09 # manually generated +package: sbp.integrity +tests: + - msg: + fields: + obs_time: + tow: 180 + wn: 3 + corr_time: + tow: 360 + wn: 6 + ssr_sol_id: 10 + tile_set_id: 20 + tile_id: 30 + chain_id: 40 + use_gps_sat: 1 + use_gal_sat: 2 + use_bds_sat: 3 + use_qzss_sat: 4 + reserved: + - 0 + - 0 + - 0 + - 0 + - 0 + use_tropo_grid_points: 5 + use_iono_grid_points: 6 + use_iono_tile_sat_los: 7 + use_iono_grid_point_sat_los: 8 + module: sbp.integrity + name: MsgSsrFlagHighLevelDepA + msg_type: "3001" + raw_json: + '{"obs_time": {"tow": 180, "wn": 3}, "corr_time": {"tow": 360, "wn": 6}, "ssr_sol_id": 10, "tile_set_id": 20, + "tile_id": 30, "chain_id": 40, "use_gps_sat": 1, "use_gal_sat": 2, "use_bds_sat": 3, "use_qzss_sat": 4, "reserved": [0,0,0,0,0], + "use_tropo_grid_points": 5, "use_iono_grid_points": 6, "use_iono_tile_sat_los": 7, "use_iono_grid_point_sat_los": 8, + "preamble": 85, "msg_type": 3001, "sender": 66, "length": 31, "payload": "tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA==", "crc": 873}' + raw_packet: VbkLQgAftAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCGkD + sbp: + preamble: "0x55" + msg_type: "0x0BB9" + sender: "0x0042" + length: 31 + payload: tAAAAAMAaAEAAAYAChQAHgAoAQIDBAAAAAAABQYHCA== + crc: "0x0369" diff --git a/spec/yaml/swiftnav/sbp/integrity.yaml b/spec/yaml/swiftnav/sbp/integrity.yaml index 3513885bd5..6777bcb8bd 100644 --- a/spec/yaml/swiftnav/sbp/integrity.yaml +++ b/spec/yaml/swiftnav/sbp/integrity.yaml @@ -41,8 +41,128 @@ definitions: type: u8 desc: Chain and type of flag. - - MSG_SSR_FLAG_HIGH_LEVEL: + - MSG_SSR_FLAG_HIGH_LEVEL_DEP_A: id: 0x0BB9 + short_desc: Deprecated + desc: Deprecated. + public: false + replaced_by: + - MSG_SSR_FLAG_HIGH_LEVEL + fields: + - obs_time: + type: GPSTimeSec + desc: GNSS reference time of the observation used to generate the flag. + - corr_time: + type: GPSTimeSec + desc: GNSS reference time of the correction associated to the flag. + - ssr_sol_id: + type: u8 + desc: SSR Solution ID. + - tile_set_id: + type: u16 + desc: Unique identifier of the set this tile belongs to. + - tile_id: + type: u16 + desc: Unique identifier of this tile in the tile set. + - chain_id: + type: u8 + desc: Chain and type of flag. + - use_gps_sat: + type: u8 + desc: Use GPS satellites. + fields: + - 0-2: + desc: Use GPS satellites. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_gal_sat: + type: u8 + desc: Use GAL satellites. + fields: + - 0-2: + desc: Use GAL satellites. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_bds_sat: + type: u8 + desc: Use BDS satellites. + fields: + - 0-2: + desc: Use BDS satellites. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_qzss_sat: + type: u8 + desc: Use QZSS satellites. + fields: + - 0-2: + desc: Use QZSS satellites. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - reserved: + type: array + size: 5 + fill: u8 + desc: Reserved + - use_tropo_grid_points: + type: u8 + desc: Use tropo grid points. + fields: + - 0-2: + desc: Use tropo grid points. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_iono_grid_points: + type: u8 + desc: Use iono grid points. + fields: + - 0-2: + desc: Use iono grid points. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_iono_tile_sat_los: + type: u8 + desc: Use iono tile satellite LoS. + fields: + - 0-2: + desc: Use iono tile satellite LoS. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + - use_iono_grid_point_sat_los: + type: u8 + desc: Use iono grid point satellite LoS. + fields: + - 0-2: + desc: Use iono grid point satellite LoS. + values: + - 0: Nominal + - 1: Warning + - 2: Alert + - 3: Not monitored + + - MSG_SSR_FLAG_HIGH_LEVEL: + id: 0x0BBA short_desc: High level integrity flags desc: > Integrity monitoring flags for multiple aggregated elements. @@ -82,9 +202,12 @@ definitions: - obs_time: type: GPSTimeSec desc: GNSS reference time of the observation used to generate the flag. - - corr_time: + - iono_corr_time: type: GPSTimeSec - desc: GNSS reference time of the correction associated to the flag. + desc: GNSS reference time of the ionospheric correction associated to the flag. + - sat_corr_time: + type: GPSTimeSec + desc: GNSS reference time of the satellite correction associated to the flag. - ssr_sol_id: type: u8 desc: SSR Solution ID.